cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. 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

ACCEPTED SOLUTION

Accepted Solutions

a) there is no function sd-annotator-reference-to-sel-item available.

 


the last process is quite slow.

b) This was discussed on cad.de, where it was determined that the cause of the low performance was the LISP implementation and program structure.


● PE80+90@home ● W10 Pro Build19045.6466 ● Drafting 20.6 + Modeling V20.6+7 + Windchill 12.1.2.6@job ● brain 6.3 ● Stift+Zettel V8.42

View solution in original post

3 REPLIES 3

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.

a) there is no function sd-annotator-reference-to-sel-item available.

 


the last process is quite slow.

b) This was discussed on cad.de, where it was determined that the cause of the low performance was the LISP implementation and program structure.


● PE80+90@home ● W10 Pro Build19045.6466 ● Drafting 20.6 + Modeling V20.6+7 + Windchill 12.1.2.6@job ● brain 6.3 ● Stift+Zettel V8.42

Sorry, I forgot that I created this thread in this forum.
Thanks again to der_Wolfgang for the detailed explanation!

Announcements

Top Tags