Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List attribute in Catia? 1

Status
Not open for further replies.

kscnoname

Automotive
Sep 25, 2003
22
0
0
AT
Hello,
we work with Catia, Creo and NX.
We can create list attributes in Creo and NX (see Screenshots).
Does someone know if something similar is possible in Catia?
Otherwise our users would enter the wrong (predetermined) values.

Thanks

Klaus

NX_List_Attribute_osdl3b.jpg

NX_Attribute_template_kedp9c.jpg


Unigraphics NX Key user

it all started with V13
 
Replies continue below

Recommended for you

Hello,

Run this on your part/product:

Code:
Sub CreateMultipleValuesParameter()
    Dim oProd As Product
    Set oProd = CATIA.ActiveDocument.Product
    
    Dim newParam As Parameter
    Set newParam = oProd.UserRefProperties.CreateString("myNewParam", "")
    
    Dim myArray(2)
    myArray(0) = "First value"
    myArray(1) = "Second value"
    myArray(2) = "Third value"
    Set myParamArray = newParam
    myParamArray.SetEnumerateValues myArray
End Sub

Hope it helps,
Calin
 
Status
Not open for further replies.
Back
Top