View Single Post
  #5  
Old 11-20-2022, 05:25 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Lightbulb Re: Transfer attibute from CAD to MM

finally here it goes,

1st of all you have programmed a fine and complete example of attribute handling and creating BOM data for an Annotation Bom. Well done. But this is all 'database' independent.


The major key word for ModelManager Attribute together with Modeling is "user defined attribute" or in short form UDA .

Have a look to the goodies.

https://support.ptc.com/help/creo_el...es/Readme.html


There is one goodies to be loaded
Code:
(load "inq_db_uda")
this will display defined DB UDA definitions and personalities.

The second one is
Code:
(load "inq_all_atts")
This one is working with the 'item-attributes' as you have used in your BOM Utilities.

________________________________________________________________

"user defined attributes" as mandatory for ModelManager are based on 'item-attributes' functionality, but do have special behaviour in addtition.

Major function is:
Code:
sd-define-db-attribute
Herein is a slot called :master which defines whether Creo Elements/Direct Modeling, the database or both control the attribute value defined. Several other details are almost identical to item-attributes.

Have a look here: https://support.ptc.com/help/creo_el...ce/db_uda.html where also a bunch of other db-attribute functions are documented.

To reflect those attributes in your structure browser there are 5 functions named sd-create-uda-<valuetype>-column-definition to be used.


I recommend, you will start with ONE attribute and explore the new functions before extending your code to 15 attributes ;-)

You can also inspect and manipulate UDAs with the item-attributes functions.


Sorry for the long delay.

Last edited by Wolfgang; 11-20-2022 at 05:45 AM.
Reply With Quote