i need some Help with my c# code and hope that sombody could help me
I want to create a UI with the Block Styler.
The idea is to select multiple Curves (Splines) and then list their Parents (Features) automatically by pressing an Action Button in a ListBox.
1. Which Function could i use to select all Parents of the Spline. I tried with AskObjectFeature(), but the method is only to get one Feature:/ Is there any alternative ?
2.How do i list for example all selected Curves (or their Parents) from the Curve Selector in a List Box ? Is there a Function which i could use ? Because all the Methods i would use are protected Internal :/
3. i created a Tagged Object where i saved all selected Curves from the Curve Selector. Is there a posibility to get the Strings (Names) of the Curves in the Tagged Object ? i tried with .toString but i always get an error message.
thanks for every answer
Try using 'UF_SO_ask_parents(...) function to get the parent objects.
You can populate the list box by the tags. Use curve.tag.toString method. If the curves have names use taggedobject.name method.
thanks for your answer and help.
Get Parents objects :
I have some Problems with the AskParents Method.
What is the meaning of the int options in the Declaration Sytax.
When i use the AskParents Method i get a Null Reference Exception. I think because of the wrong usage of the int Options.
could you give me an example for the int option ?