The following example shows how to create it:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add("CATPart")
Dim material As String
Set material = part1.Parameters.CreateString("material", "glass")
Properties
- Property Value() As
-
Returns or sets the string parameter value.
- Example:
- This example returns in myValue the value
of the string parameter material:
myValue = material.Value
Methods
- Sub GetEnumerateValues( oSafeArray)
-
Returns an array containing the different values that the real param can take
in the case of multiple values.
- Example:
-
Dim enumValues () as Variant ReDim enumValues (aStrParameter.GetEnumerateValuesSize() - 1) aStrParameter.GetEnumerateValues(enumValues) For i = LBound(enumValues) to UBound(enumValues) ... Next
- Func GetEnumerateValuesSize() As
- Returns the number of enumerate values.
- Sub SetEnumerateValues( iSafeArray)
-
Sets an array containing the different values that the StrParam object can take
in the case of multiple values.
- Parameters:
-
- The
- array of enumerated values. dd>
- Sub SuppressEnumerateValues()
- Resets the status of the object to a single value object.