|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
||||
|
||||
Lisp question: database attributes in Annotation?
Hi,
in Modeling, we often use Lisp tools that use commands like Code:
(sd-inq-item-attribute obj "Masterdata Attributes" "DESCRIPTION" :attachment :contents) Thanks! Regards, Jaap |
#2
|
||||
|
||||
Re: Lisp question: database attributes in Annotation?
hmmm.. not totally sure how to do it with IKIT.
on top level of the drawing there are info texts like "EDM*"..... on the other side there are the info text commands sd-am-inq-info-attributes sd-am-inq-global-info-attributes that way you can inqure the database infor attributes of the drawing (me 10 part name = "/" ) directlly.. But this is just coming out of my mind, and not tested!!!!
__________________
|
#3
|
|||
|
|||
Re: Lisp question: database attributes in Annotation?
jkramer,
Did you get your answer? Did this work? I am wanting to do something similar. I would like to create a text reference, for a drawing frame, that pulls information from from the drawing's masterdata. |
#4
|
||||
|
||||
Re: Lisp question: database attributes in Annotation?
Hi,
actually, I already forgot about this subject... long while ago :-) I did some tests with sd-am-inq-info-attributes and sd-am-inq-global-info-attributes . The function sd-am-inq-info-attributes gave me either NIL or Code:
"(ADU: equal ADU: transferred)" More interesting was sd-am-inq-global-info-attributes . This gave me: Code:
(VIEW: 1 PD_ZONE GROUP: 1 GEOMETRY_ATTRIBUTES_CHANGED_IN_MEXX EDM-Y:DATA_CBN8J9FHC8AE5Z EDM-Y:DATA_BPE2MJ3NC84N49 EDM-X:DATA_C2YVAB1FC8AE5Z EDM-X:DATA_52702197 EDM-P:C2YVAB1FC8AE5Z EDM-P: EDM-E:CBN8J9FHC8AE5Z EDM-E:BPE2MJ3NC84N49 ADU: transferred ADU: equal) CBN8J9FHC8AE5Z = INFOS attribute of DRAWING_2D BPE2MJ3NC84N49 = INFOS attribute of FRAME_2D C2YVAB1FC8AE5Z = INFOS attribute of MASTERDATA So, with these 3 values, it should be possible to get info from the Modelmanager database... Regards, Jaap |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|