View Single Post
  #2  
Old 06-24-2022, 06:09 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Lightbulb Re: elid (drafting) vs. sysid (annotation)

All the ELIDs are available in Modeling as well.. guess where they do come from when updating a drawing / a view? ;-)

a bunch of item - attributes defined in 3D are attached as info texts on the views when updating views.

So you need to derive the right information from the 3D objects: not the sysid but the ELIDs.

1st: get a list of the attribute names attached to an item:
Code:
(pprint (oli::sd-inq-item-attributes (oli::sd-inq-curr-part) :attachment :contents))
2nd: show the attribute values of a specific attribute name:
Code:
(pprint (oli::sd-inq-item-attribute (oli::sd-inq-curr-part) "DB-DREF" :all :attachment :contents))
shortcut:
Code:
(sd-inq-item-attribute comp "DB-PREF" "ELID" :attachment :contents)  ;; the part ELID
(sd-inq-item-attribute comp "DB-DREF" "ELID" :attachment :contents)  ;; the document ELID
Reply With Quote