#1
|
|||
|
|||
Return value text reference
Hallo,
Does anyone know the lisp-code that returns the value of a text reference from for eg. (docu-register-tr-type "Sheet_local" "SHEET_SCALE" "???" 'docu::docu_inq_curr_sheet_scale_text) I want to see the value of the scale. Thanks |
#2
|
||||
|
||||
Re: Return value text reference
Quote:
To see the value (for test purpose??) you might want to call the function assignedto the text reference resp. specified during registration. PHP Code:
__________________
|
#3
|
|||
|
|||
Re: Return value text reference
Thanks, that works.
In am_environment, I register: (docu-register-tr-group "JDE" "TITLE") (docu-register-tr-type "JDE" "NAME" "???" 'NM) Now I want to display the falue of 'NM in annotation? |
#4
|
||||
|
||||
Re: Return value text reference
Just display or having a text in your sheet?
for 2nd.. 1st create a text as a place holder, choose location and properties as you want 2nd assign a text reference to it. in the text menu use the group and the name .. at select the text created in 1st step. you also have the choice to display the reference or their values. BTW: NM is a very short function name and I personally would not use such a short name fo a function which has a very specific functionality
__________________
|
#5
|
|||
|
|||
Re: Return value text reference
I just want to display, it is already assigned to a text with reference.
I want to get the value that is filled in. |
#6
|
||||
|
||||
Re: Return value text reference
Quote:
Quote:
Hmmmm.. it's still not clear to me what you want do.. continue guessing.. Call the function NM, but you have to pass in parameters then. Trace the function NM and see in console window what it is returning. Wild guessing: modify the function NM and add a (print result) at the end, where result is what the function does return normally.
__________________
|
#7
|
|||
|
|||
Re: Return value text reference
Hallo,
I wrote a macro so that we can fill in some text in the title in annotation like date, project number, client, ... with text references. Everithing works, but now I want to get the text back that is filled in. |
#8
|
||||
|
||||
Re: Return value text reference
Long story.. but now I got it... may be
Integration Kit function (sd-am-inq-text-strings text) The text contents you can get via (setq my-text (cd-call-cmds (get_selection .... x,y))) But this question has *nothing* to do with text references! This was wrong direction you pushed us to. Alternative you'll write an Annotator macro (in Drafting syntax) and you'll call it via Code:
(sd-execute-annotator-function :fnc "Jde_get_all_tr_contents_of_current_sheet")
__________________
|
#9
|
|||
|
|||
Re: Return value text reference
Ok thanks.
|
#10
|
|||
|
|||
Re: Return value text reference
Hello. I'm a new "Lisp Customizer". I have to format "PTC_WM_MODIFIED_ON" Workgroup Manager Attribute (WTtr text reference group) that is in Annotation. This is the drawing's modified date in WINDCHILL. I have to put this formatted date in an other text reference. I registered my Text Reference Type with my function.
In this function I have to read ptc value. No functions are associated at "PTC_WM_MODIFIED_ON". Ptc doesn't help me. Can you help me? How can I read existing Text reference type value from lisp? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|