Quote:
Originally Posted by ssusana
inquire the box dimension and its coordinate of an element ... using selection by S_DOCU_PART?
|
I read your question that you do have a S_DOCU_PART and want to get the values of this (ME10)PART.
Many macros are available as source code in the directory
<ModelingInstDir>/Annotation/win. Look for all the lines with "DEFINE " in *.m files.
There are basically 2 macros of interest
Code:
DEFINE Docu_get_part_box
and
Code:
DEFINE Docu_inq_part_box_coords
Both take a UPN as parameter (the
unique
part
number of an ME10 Part) and do return a LISP property list. The UPN you can get with the documented IKIT function (sd-am-inq-unique-name item). This works for sketches and symbols as well.
Having that, you can call a function
Code:
(display (sd-execute-annotator-function :fnc
(format nil "Docu_inq_part_box_coords '~A' "
(sd-am-inq-unique-name the-sel-item))))
Note the different use of
double quotes and
single quotes in these Lisp sequences, when communicating directly with Annotator.exe.
If you are trying this on Modeling command line use (
oli::sd-... instead of (sd-...
__________________________________________
Inquiring the dimension of an element (e.g. an arc, a dimension) is much more complex.