CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-15-2022, 04:03 AM
rvn rvn is offline
Registered User
 
Join Date: Mar 2011
Posts: 52
elid (drafting) vs. sysid (annotation)

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
Attached Files
File Type: mi 10943460.mi (57.6 KB, 173 views)
Reply With Quote
  #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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:46 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

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