Library | Module

Interface IpfcBaseDimension



Description

This class defines a base dimension, which can be a dimension or reference dimension.

The dimension types are as follows:
Direct Parent Classes:
IpfcBaseParameter, IpfcModelItem
Direct Known Subclasses:
IpfcDimension, IpfcRefDimension, IpfcUDFDimension, IpfcDimension2D



Property Summary

PropertyDimTypeas IpfcDimensionType
The dimension type
PropertyDimValueas Double
The value of the dimension.
PropertyExtendsInNegativeDirectionas Boolean
Identifies if the dimension is currently considered to have a negative "sign" in generating its direction. If the dimension has a negative sign then the dimension is oriented in the opposite manner to the default for the feature.
PropertySymbolas String
The dimension name or symbol
PropertyTextsas Istringseq
The dimension text



Method Summary

SubErase ()
DEPRECATED: since Creo 4
SUCCESSOR(S): Drawing.EraseDimension
Erases the dimension from a model or drawing.
SubShow (Instructions as IpfcDimensionShowInstructions [optional])
Forces the display of the dimension in a model.



Property Detail


PropertyDimTypeas IpfcDimensionType

The dimension type




PropertyDimValueas Double

The value of the dimension.

This is always positive if the model is fully regenerated. Use the property IpfcBaseDimension.ExtendsInNegativeDirection to detect if the dimension direction is oriented opposite to the feature default. When setting this property, if a negative number is passed, this will flip the direction of the dimension.

Exceptions thrown (but not limited to):

IpfcXToolkitBadContext - The input dimension is reference.






PropertyExtendsInNegativeDirectionas Boolean

Identifies if the dimension is currently considered to have a negative "sign" in generating its direction. If the dimension has a negative sign then the dimension is oriented in the opposite manner to the default for the feature.




PropertySymbolas String

The dimension name or symbol

Exceptions thrown (but not limited to):

IpfcXToolkitNoChange - The function could not set the symbol to new value as the new symbol name already exists for other dimension in the model.






PropertyTextsas Istringseq

The dimension text

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - Dimension text is not found.







Method Detail


SubErase ()
DEPRECATED: since Creo 4
SUCCESSOR(S): Drawing.EraseDimension

Erases the dimension from a model or drawing.

If called on a IpfcDimension2D object, this temporarily erases the displayed dimension from the drawing. For a permanent erase please use IpfcDimension2D.EraseFromModel2D().



SubShow (Instructions as IpfcDimensionShowInstructions [optional])

Forces the display of the dimension in a model.

Exceptions thrown (but not limited to):

IpfcXToolkitNoChange - The annotation is already shown in the target model.

IpfcXToolkitInvalidMatrix - The annotation cannot be shown due to orientation conflicts in the view.

IpfcXToolkitNoLicense - License check failure.

IpfcXToolkitNotDisplayed - Annotation is present on hidden or blank layer and so can't be shown.


See Also:
IpfcComponentDimensionShowInstructions.Create(), IpfcDrawingDimensionShowInstructions.Create()
Parameters:
Instructions
Specifies the location where the dimension should be shown: