Library | Module

Class pfcDrawing



Description

This class describes a drawing.
Direct Parent Classes:
pfcModel2D



Method Summary

pfcDimensionConvertLinearDimensionToBaseline (pfcDimension Dim, pfcVector2D Location)
Converts an existing linear dimension to ordinate baseline. To use this method drawing must be displayed.
voidConvertLinearDimensionToOrdinate (pfcDimension Dim, pfcDimension BaselineDimension)
Converts an existing linear dimension to ordinate. To use this method drawing must be displayed.
voidConvertOrdinateDimensionToLinear (pfcDimension Dim)
Converts an existing ordinate dimension to linear. To use this method drawing must be displayed.
voidEraseDimension (pfcDimension Dim)
Erase dimension from specified drawing.
/* optional */ pfcDimensionGetBaselineDimension (pfcDimension Dim)
Checks if dimension is an ordinate dimension and if it is ordinate then returns baseline dimension.
pfcDimensionAttachmentsGetDimensionAttachPoints (pfcDimension Dim)
Gets attachment information of dimension.
pfcPoint3DGetDimensionLocation (pfcDimension Dim)
Get location of dimension text in specified drawing.
pfcDimOrientationHintGetDimensionOrientHint (pfcDimension Dim)
Gets orientation of dimension
pfcDimSensesGetDimensionSenses (pfcDimension Dim)
Gets sense information of dimension.
/* optional */ pfcView2DGetDimensionView (pfcDimension Dim)
Get drawing view of dimension.
booleanIsDimensionAssociative (pfcDimension Dim)
Checks if solid dimension shown in drawing is associative.
booleanIsDimensionShown (pfcDimension Dim)
Checks if dimension is shown in a specified drawing.
booleanIsDimensionToleranceDisplayed (pfcDimension Dim)
Indicates whether a drawing dimension's tolerance is visible or not.
voidSetDimensionLocation (pfcDimension Dim, pfcPoint3D ToLocation)
Changes location of dimension text.
voidSwitchDimensionView (pfcDimension Dim, pfcView2D View)
Change view of the dimension in specified drawing.



Method Detail


pfcDimensionConvertLinearDimensionToBaseline (pfcDimension Dim, pfcVector2D Location)

Converts an existing linear dimension to ordinate baseline. To use this method drawing must be displayed.
Parameters:
Dim
Linear dimension.
Location
A point on one of the extension lines of the linear dimension.
Returns:
 



voidConvertLinearDimensionToOrdinate (pfcDimension Dim, pfcDimension BaselineDimension)

Converts an existing linear dimension to ordinate. To use this method drawing must be displayed.

Exceptions thrown (but not limited to):

pfcXToolkitCantWrite - Could not modify the given item because it has read-only access.


Parameters:
Dim
Linear dimension.
BaselineDimension
Baseline dimension.



voidConvertOrdinateDimensionToLinear (pfcDimension Dim)

Converts an existing ordinate dimension to linear. To use this method drawing must be displayed.

Exceptions thrown (but not limited to):

pfcXToolkitCantWrite - Could not modify the given item because it has read-only access.


Parameters:
Dim
Dimension.



voidEraseDimension (pfcDimension Dim)

Erase dimension from specified drawing.

Exceptions thrown (but not limited to):

pfcXToolkitNoChange - The annotation is not shown in the target model.


Parameters:
Dim
Dimension



/* optional */ pfcDimensionGetBaselineDimension (pfcDimension Dim)

Checks if dimension is an ordinate dimension and if it is ordinate then returns baseline dimension.
Parameters:
Dim
Dimension.
Returns:
NULL value means dimension is not ordinate. For ordinate dimension returns its baseline.



pfcDimensionAttachmentsGetDimensionAttachPoints (pfcDimension Dim)

Gets attachment information of dimension.

Exceptions thrown (but not limited to):

pfcXToolkitInvalidItem - the dimension specified is not a valid dimension created in drawing mode.

pfcXToolkitInvalidType - the dimension sense type is not supported with this function.


Parameters:
Dim
Dimension.
Returns:
Attachment information



pfcPoint3DGetDimensionLocation (pfcDimension Dim)

Get location of dimension text in specified drawing.
Parameters:
Dim
Dimension
Returns:
Location.



pfcDimOrientationHintGetDimensionOrientHint (pfcDimension Dim)

Gets orientation of dimension

Exceptions thrown (but not limited to):

pfcXToolkitInvalidItem - the dimension specified is not a valid dimension created in drawing mode.

pfcXToolkitInvalidType - the dimension sense type is not supported with this function.


Parameters:
Dim
Dimension
Returns:
orientation



pfcDimSensesGetDimensionSenses (pfcDimension Dim)

Gets sense information of dimension.

Exceptions thrown (but not limited to):

pfcXToolkitInvalidItem - the dimension specified is not a valid dimension created in drawing mode.

pfcXToolkitInvalidType - the dimension sense type is not supported with this function.


Parameters:
Dim
Dimension.
Returns:
Array of sense.



/* optional */ pfcView2DGetDimensionView (pfcDimension Dim)

Get drawing view of dimension.

Exceptions thrown (but not limited to):

pfcXToolkitNotDisplayed - The dimension is not displayed in the drawing.


Parameters:
Dim
 
Returns:
A drawing view.



booleanIsDimensionAssociative (pfcDimension Dim)

Checks if solid dimension shown in drawing is associative.
Parameters:
Dim
Solid dimension shown in the drawing.
Returns:
xtrue if dimension is associative.



booleanIsDimensionShown (pfcDimension Dim)

Checks if dimension is shown in a specified drawing.
Parameters:
Dim
Dimension.
Returns:
xtrue if it is shown.



booleanIsDimensionToleranceDisplayed (pfcDimension Dim)

Indicates whether a drawing dimension's tolerance is visible or not.
Parameters:
Dim
Dimension.
Returns:
xtrue if dimension's tolerance is visible.



voidSetDimensionLocation (pfcDimension Dim, pfcPoint3D ToLocation)

Changes location of dimension text.

Exceptions thrown (but not limited to):

pfcXToolkitCantWrite - Could not modify the given item because it has read-only access.


Parameters:
Dim
Dimension to be moved.
ToLocation
New location.



voidSwitchDimensionView (pfcDimension Dim, pfcView2D View)

Change view of the dimension in specified drawing.

Exceptions thrown (but not limited to):

pfcXToolkitCantWrite - Could not delete the given item because it has read-only access.


Parameters:
Dim
Dimension.
View
New drawing view.