CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-24-2009, 01:18 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
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)
Is there a way of doing the same in Annotation?? I'd like to make a Lisp routine that uses the NAME and VERSION attribute of the current drawing.

Thanks!
Regards,
Jaap
Reply With Quote
  #2  
Old 12-04-2009, 12:23 PM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
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!!!!
Reply With Quote
  #3  
Old 05-26-2011, 12:53 PM
m.epp m.epp is offline
Registered User
 
Join Date: May 2011
Posts: 8
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.
Reply With Quote
  #4  
Old 05-27-2011, 02:23 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
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)"
(whatever that might mean)
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)
After some searching in the database, I found out:

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
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 12:37 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.
You Rated this Thread: