Hello,
I am writing some code to manage blocks. I have a WPF panel added to the ObjectProperties pages that has a TreeView showing all the elements of a nested block on selection. From the context menu of the TreeViewItems, I need to preview the SubObject that I selected in the block. I tried these methods for this - Select and Highlight.
But I noticed that the ComponentIndex for all the subobjects are 0 by default. So tried assigning indices with RhinoObject.Index and InstanceObject.Index properties SetIndex.
I get the error that the object is document controlled and cannot be modified when I try to assign the index. Does anyone have a solution? Or another way to highlight subobjects ? I guess a conduit could be used. Any other SDK methods?
I am using this sample to work with nested blocks SampleLink
Thank you