Feature Elements
Methods Introduced:
• wfcSession.ElementWstringOption_Create
The method
wfcFeature.WFeature.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
wfcSession.WSession.GetElemWstrOption and
wfcSession.WSession.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
wfcElementTree.Element.GetValueAsString to display the string representation of elements.
The method wfcSession.ElementWstringOption_Create creates a string value of a specified element in a tree.
The method
wfcSession.ElementWstringOption.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
wfcSession.ElementWstringOption.SetPositive sets the option to retrieve the values as positive. This method is applicable to double and integer value elements.
The method
wfcSession.ElementWstringOption.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
wfcElementTree.wfcElementTree.Element_Create creates a new instance of the
Element object that contains information about the parameters of the element.
The method
wfcElementTree.Element.GetIdAsString returns the string representation of the specified element ID.
The methods
wfcElementTree.Element.GetIsArray,
wfcElementTree.Element.GetIsCompound, and
wfcElementTree.Element.GetIsMultival are used to determine the type of the specified element in a tree. The methods
wfcElementTree.Element.GetIsArray and
wfcElementTree.Element.GetIsCompound determine if the specified element contains an array of elements, or is a compound. The method
wfcElementTree.Element.GetIsMultival determines whether the input element can have multiple values.
The method
wfcElementTree.Element.GetChildren populates an array of children elements, if the specified element is a compound element, or an array.
The method
wfcElementTree.Element.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
wfcElementTree.Element.GetId and
wfcElementTree.Element.SetId to get and set the element identifier for the specified element.
Use the methods
wfcElementTree.Element.GetLevel and
wfcElementTree.Element.SetLevel to get and set the location of the element in the element tree with respect to the root element.
Use the methods
wfcElementTree.Element.GetDecimals and
wfcElementTree.Element.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
wfcElementTree.Element.GetSpecialValueElem to obtain the pointer representation for the specified element. The method
wfcElementTree.Element.SetSpecialValueElem sets the pointer representation for the specified element.
Use the method
wfcElementTree.Element.GetElemCollection to extract a collection object from an element of a feature element tree of the following types:
• CurveCollection
• SurfaceCollection
Use the method
wfcElementTree.Element.SetElemCollection to assign a collection object to an element of a feature element tree of the type
CurveCollection and
SurfaceCollection.