CoCreate User Forum

CoCreate User Forum (https://www.cocreateusers.org/forum/index.php)
-   Annotator (https://www.cocreateusers.org/forum/forumdisplay.php?f=48)
-   -   Text-reference in annotation-module (https://www.cocreateusers.org/forum/showthread.php?t=2414)

Robert Aronsson 08-26-1998 11:58 PM

text-reference in annotation-module
 
What sort of info is it possible to put in a customized-frame with text-reference in annotation-module? Could I get partname? Date? Or...? What's the inq. to get this info? I have study the Customization pages for annotation in the html documentation but I can't find what I'm looking for. I have managed to get the sheet-scale in my frames! But to get more I need some help or info!

John van Doorn 03-02-1999 06:24 PM

re: text-reference in annotation-module
 
Hi Robert, Here is an example for putting the date and the username in the Title block table: This piece of code needs to placed in the am_customize file:

(docu-unregister-tr-group "Sheet_local")
(docu-register-tr-group "Sheet_local" "SHEET")
(docu-register-tr-type "Sheet_local" "SHEET_NO" "???" 'docu::docu-get-current-sheet-name)
(docu-register-tr-type "Sheet_local" "SHEET_SCALE" "???" 'docu::docu_inq_curr_sheet_scale_text)
(docu-unregister-tr-group "Sheet_global") (docu-register-tr-group "Sheet_global" "GLOBAL")
(docu-register-tr-type "Sheet_global" "SHEETS" "???" 'docu::docu-inq-highest-sheet-name)
(docu-register-tr-type "Sheet_global" "DRAWING_NO" "???" 'docu::docu_inq_drawing_number_text)
(docu-register-tr-type "Sheet_global" "DRAWN_BY" "???" 'my-get-username)
(docu-register-tr-type "Sheet_global" "DATE" "???" 'my-tr-get-date)
(defun my-get-username () (sd-sys-getenv "USERNAME"))
(defun my-tr-get-date () (multiple-value-bind (sec min hour day month year) (decode-universal-time (get-universal-time)) (declare (ignore sec) (ignore min) (ignore hour)) (format nil "~2,'0d-~2,'0d-~A" day month year) ) )

If you look to the integration kit manuals, you will find all kind of inq commands that you can use. Good luck


All times are GMT -8. The time now is 03:43 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.