i can get the selected object through
TaggedObject taggedObjectVector = BlockProperties.GetTaggedObjectVector("SelectedObjects");
In case of a part file, this is OK, but what if the user selects a point from an assembly.
How to get the actual point if point is selected from an assembly.
Tried to get the parent part from selectedPoint.Prototype.OwningPart and find the point by searching by the Point Name. But point name returned by properties.GetTaggedObject differs in many cases.
Is there any way to find out the actual point object.
If you perform selection in an assembly, it is likely that the thing you select will be the occurrence of the object in the assembly, rather than the original object in the component.
If your object is an occurrence - and you can determine this with IsOccurrence() - then you should just be able to ask for the Prototype. Note that you should NOT need the OwningPart - just the selectedPoint.Prototype() should give you the original point.
Thank you steve,
you just made my day, was trying the same since two days by going through the documentation