• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

lisp command to get model name part/current group

  • Thread starter Thread starter ferro.84
  • Start date Start date

ferro.84

Guest
Good morning.
have patience with a newborn:-)

I found a lisp command to get the current workbook (sd-get-current-working-directory).
Is there a similar command to get the name of the model of the active part/group, of which the board is being made in annotation?
I searched on the net, but without success.

Thanks for the help, good day.
 
Good morning.
have patience with a newborn:)

I found a lisp command to get the current workbook (sd-get-current-working-directory).
Is there a similar command to get the name of the model of the active part/group, of which the board is being made in annotation?
I searched on the net, but without success.

Thanks for the help, good day.
I can't help you on programming. Are you writing a macro or do you just want to know what the 3d model you're making the table is, in case it's a shared object?
 
Good morning.
I'm trying to write a macro for saving table 2d and I'd need the name of the model.
 
Unfortunately this command returns the design name in the list drawings in annotation, not the model name of the part/group.
that is a setting on annotation, if the set correctly you will find the design name with the model name.
 
Unfortunately this command returns the design name in the list drawings in annotation, not the model name of the part/group.

prova a lavorare su questo
(dolist (owner (sd-am-inq-all-3d-owners)) (display (sd-inq-obj-contents-name (second owner))))
 
Good morning!
I finally managed to cut out time at work and thanks to your help I solved!
I managed to save the code of the owner of the set of views in a variable, defining a function made like this:
Code:
(def_prop)
(setf owner1 (sd-am-inq-all-3d-owners))
(setf variable (first owner1 )
(setf code (sd-inq-obj-contents-name))
(salva_mi)
)
and it works!
Thanks again.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top