Object selector from 3D environment to get component URI

How do I write a Python script to allow user to select an object in the 3D environment in order to get the component URI? As you would typically assign an object to a product type in process modeling by selecting it in the environment, I want to know how to create that interface using a Python script


You can create a property with type Ref<Component.>
^I had to add a dot at the end to make the text visible. I guess otherwise the browser thinks that it’s HTML ¯\(ツ)

Got it, Thanks for your reply!