erikkooyman
01-26-2004, 05:50 AM
I want to know in my macro of an annotationdrawing exist or not exist as document in workmanager.
The only solution I know is the command SD-AM-INQ-GLOBAL-INFO-ATTRIBUTES.
The returnvalue is a list of info's.
When the info "EDM-P:" exist 2 times, then the drawing exist in workmanager. When the info "EDM-P:" exist 1 time, the drawing exist NOT in workmanager.
This is a complex solution.
The command "get_info_wmdrawing" gives only the editor and not a returnvalue.
Is there a better solution ?
Thanks.
An example how I get the information :
(setf Counter 0)
(setf InfoList (SD-AM-INQ-GLOBAL-INFO-ATTRIBUTES))
(dolist (info_item InfoList)
(if (search "EDM-P:" info_item)
(progn
(setf Counter (+ 1 Counter))
(if (= Counter 2)
(display "Annotationdrawing exist in WorkManager")
);if
);progn
);if
);dolist
The only solution I know is the command SD-AM-INQ-GLOBAL-INFO-ATTRIBUTES.
The returnvalue is a list of info's.
When the info "EDM-P:" exist 2 times, then the drawing exist in workmanager. When the info "EDM-P:" exist 1 time, the drawing exist NOT in workmanager.
This is a complex solution.
The command "get_info_wmdrawing" gives only the editor and not a returnvalue.
Is there a better solution ?
Thanks.
An example how I get the information :
(setf Counter 0)
(setf InfoList (SD-AM-INQ-GLOBAL-INFO-ATTRIBUTES))
(dolist (info_item InfoList)
(if (search "EDM-P:" info_item)
(progn
(setf Counter (+ 1 Counter))
(if (= Counter 2)
(display "Annotationdrawing exist in WorkManager")
);if
);progn
);if
);dolist