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

nome del frame

  • Thread starter Thread starter micgiul
  • Start date Start date

micgiul

Guest
Hello everyone.. .

I am delighted to plan in lisp and I have a question to which for the moment I have not been able to find answer. . .

Automatic loading my carts with this command line.

(docu-register-frame :ui-name "a0" :wm-name ") :file "<unita>:<percorso>)

All right.

now I would like a function that returns me the name of the currently loaded frame.
i.e. for the above line I would like to return the :ui-name "a0".

I tried with sd-am-frame-p functions etc... and all those like that but I don't get back the string I want.. .

thanks as always for the collaboration.

Michael</percorso></unita>
 
but to fill out the paper?
Hello everyone.. .

I am delighted to plan in lisp and I have a question to which for the moment I have not been able to find answer. . .

Automatic loading my carts with this command line.

(docu-register-frame :ui-name "a0" :wm-name ") :file "<unita>:<percorso>)

All right.

now I would like a function that returns me the name of the currently loaded frame.
i.e. for the above line I would like to return the :ui-name "a0".

I tried with sd-am-frame-p functions etc... and all those like that but I don't get back the string I want.. .

thanks as always for the collaboration.

Michael</percorso></unita>
 
I can fill out the cartilage automatically with the indications that you already gave me in your time. . .

now I want to add also the possibility to put revision by adding lines to the cartiglio itself according to the revision number. . .

only that the size of my cartilages vary if they are a3, a2 etc...

So I wanted to know if there was a function that comes back to me the name of the cartouche.

for now I do with the sd-am-sheet-struct-corners function that returns the coordinates of the two points of the cartiglio and quinidi I can understand what size it has.

thanks for the collaboration.

Michael
 
You could get it from the name of the cart. if you edit it from osd_drafting (me10) you can associate to the top part the name of the cartiglio. You should be able to get your name back.
 
I tried how you told me and I finally managed to make macros in me10 drafting.. .

the macro me10 neat here and there and definitely to optimize is the following:

(sd-execute-annotator-command :cmd (format nil; frame name

"define am_inq_name_of_frame"
"parameter target_pid"
"local name"
"local output"
"inq_part target_pid"
"let name (inq 301)"
"let output (format_message '{1}'" (str name)"
"the output (docu_cstring_to_lstring output)"
(docu_open_connection_to_sd)
"(docu_add_line_to_sd output)"
(docu_close_connection_to_sd)
"end_define"
)
)

and to call it back I used this code:


(setq sheet (sd-am-inq-curr-sheet))
(setf list_object (sd-am-inq-sheet) sheet)
(setf dim_frame (sd-execute-annotator-function :fnc (format nil "am_inq_name_of_frame \'~a\'" (sd-am-sheet-struct-frame list_object))))

This is the name I gave in me10 to the frame.

greetings
Michael
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top