Feature Elements
Methods Introduced:
The method
wfcWFeature::GetDimensionId returns the integer identifier of the dimension in the
Creo Parametric database used to define the value of the specified single-valued element.
The methods
wfcWSession::GetElemWstrOption and
wfcWSession::SetElemWstrOption get and set the options used to retrieve the string values of elements. The options set in this method are used by the method
wfcElement::GetValueAsString to display the string representation of elements.
The method
wfcElementWstringOption::Create creates a string value of a specified element in a tree.
The method
wfcElementWstringOption::SetExpression sets the option to retrieve values as expressions or relations, if they exist, instead of string representations of the actual value. This method is applicable only to double value elements.
The method
wfcElementWstringOption::SetPositive sets the option to retrieve the values as positive. This method is applicable to double and integer value elements.
The method
wfcElementWstringOption::SetSign sets the option to retrieve values with special sign formatting (+/-), etc. This method is applicable to both double and integer value elements.
The method
wfcElement::Create creates a new instance of the
wfcElement object that contains information about the parameters of the element.
The method
wfcElement::GetIdAsString returns the string representation of the specified element ID.
The methods
wfcElement::GetIsArray and
wfcElement::GetIsCompound determine if the specified element contains an array of elements, or is a compound. The methods
wfcElement::GetIsArray,
wfcElement::GetIsCompound, and
wfcElement::GetIsMultival are used to determine the type of the specified element in a tree. The method
wfcElement::GetIsMultival determines whether the input element can have multiple values.
The method
wfcElement::GetChildren populates an array of children elements, if the specified element is a compound element, or an array.
The method
wfcElement::GetValueAsString returns a string value representation for double and integer elements. The options set in the object
wfcElementWstringOption decide the format of the output.
Use the methods
wfcElement::GetId and
wfcElement::SetId to get and set the element identifier for the specified element.
Use the methods
wfcElement::GetLevel and
wfcElement::SetLevel to get and set the location of the element in the element tree with respect to the root element.
Use the methods
wfcElement::GetDecimals and
wfcElement::SetDecimals obtain and set the number of decimal places to be used for the double value of an element in the feature.
Use the method
wfcElement::GetSpecialValueElem to obtain the pointer representation for the specified element. The method
wfcElement::SetSpecialValueElem sets the pointer representation for the specified element.
Use the method
wfcElement::GetElemCollection to extract a collection object from an element of a feature element tree of the following types:
• wfcCurveCollection
• wfcSurfaceCollection
Use the method
wfcElement::SetElemCollection to assign a collection object to an element of a feature element tree of the type
wfcCurveCollection and
wfcSurfaceCollection.