PDA

View Full Version : Inquire title block info from WorkManager with in a Annotation Lisp routine


Thom Ivancso
08-14-2003, 10:35 AM
I have created a Lisp routine for Annotator running on HP-UX for plotting drawings to a pdf file. But I want to enhance this routine to pull the title block information form WorkManager to create a string that will be used as the name of the file. How do I go about this in Lisp to talk to WorkManager to gather this information, any hints or pointers would be great.

Cheers
Thom

Sinan
08-18-2003, 02:30 PM
Thom,

You should open a DDE (Windows) or INTERLINK (UX) link to Workmanager and call a macro which is defined inside Workmanager.

UX:

(setf command_call "your_wm_macro" )
(il-aip-ui::il-wm-cmd command_call)

This macro in reverse could pass the title block information via DDE/INTERLINK back to OSDM.

A second method would be that WM macro calls your LISP function inside OSDM.

Awm_t_m_sd_interlink
'(YOUR_PACKAGE::your_lisp_function title_ info )'


I did not try neither of the above methods because I am not sitting in front of the OSDM at the moment but I am pretty sure that they work like described.

Hope it helps

Sinan

http://www.solidgenius.com