Thanks @dale.
Then from an object I should test IsReference, and try to find the model it belongs to.
I think a must have would be a Layer.ReferenceIndex and RhinoObject.ReferenceIndex properties in relation to worksession.ModelPaths
I’m just researching this for a future project, so I’m not in a hurry. If needed I know that I can read the start of the layer path when it is a reference.
Hi @dale,
I’m still a bit lost with these worksessions:
There is doc.Worksession.ModelPaths() that gives me a list of documents, but how do I know which doc a layer belongs to?
You suggested to use RhinoObject.WorksessionReferenceSerialNumber to get a model’s a serial number, but doc.worksession does not have any serial number list to match this. As for layers there is only Layer.IsReference which is of limited use in my case.
I think your Rhino.Extra api might be the solution but I don’t see where it can be downloaded