CoCreate User Forum

CoCreate User Forum (https://www.cocreateusers.org/forum/index.php)
-   Customization (https://www.cocreateusers.org/forum/forumdisplay.php?f=12)
-   -   elid (drafting) vs. sysid (annotation) (https://www.cocreateusers.org/forum/showthread.php?t=8362)

rvn 06-15-2022 04:03 AM

elid (drafting) vs. sysid (annotation)
 
1 Attachment(s)
I want to create a lisp or macro to know which balloon is connected to which part. In drafting it is possible to find the elid by reading the correct infos on a balloon. In modeling it is possible to find the sysid of a part. But I can't make the connection between the two numbers.
Basically I want to get all the bom flags in modeling and make a list of the text in the balloon and the sysid. e.g.

20;sysid 1
30;sysid 2
10;sysid 3
...

In modeling I can't find the tools to do this. In drafting it is possible, but there you find the elid and not the sysid.
Can anyone help me to find the connetion between the two numbers or is there some other way to do this?

thanks in advance.

ps: an example drawing is in attachment

Wolfgang 06-24-2022 06:09 AM

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



All times are GMT -8. The time now is 06:34 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.