View Single Post
  #6  
Old 11-20-2022, 05:41 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Arrow Re: Transfer attibute from CAD to MM

Quote:
Originally Posted by cacciatorino View Post
I made some improvements to my lisp based on the study of the integration kit and web searches, but it still not works.
I have attached a LISP snipped matching your original BOM utility (which is still fine for it's own!! 👍 ).

Instead of coding each and every detail for all of you 12 Attributes, I defined one Generic function and do call it 12 times with the attribute name as parameter. This saves you (in your original approach) around 120 lines of code to be maintained over time. It was shrinked to just 17 lines.

May be this gives you a little inspiration in addition. 😏
Attached Files
File Type: lsp cadde-216-000319_simplified_snippet.lsp (1.7 KB, 230 views)
Reply With Quote