Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

Annotation: How to get a sel_item for geometry selected by a ME10 Macro

thollerweger
10-Marble

Annotation: How to get a sel_item for geometry selected by a ME10 Macro

Hello,

 

I have a ME10 macro that selects all geometries from a view and returns the pointer and geometry properties as a list to LISP.
The pointer corresponds to the return value of the sd-get-annotator-reference function.

To continue working with the elements, I need the sel_items for the pointers. But I can't find an inverse function for sd-get-annotator-reference.
So far I have implemented this by using get_selection in LISP to get all sel_items and building a new list in which the pointers are added using sd-get-annotator-reference.
I then use this list to add the sel_items to the list returned by ME10. However, the last process is quite slow.

Does anyone have an idea how to do this efficiently?

BR

1 REPLY 1

Hi @thollerweger,

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Regards,

Vivek N
Community Moderation Team.

Announcements

Top Tags