Library | Module

Class pfcView2D



Description

This interface represents a drawing view in Creo Parametric.
See Also:
pfcModel2D.List2DViews(), pfcModel2D.GetViewByName(), pfcSelection.SelView2D
Direct Parent Classes:
pfcChild



Property Summary

pfcViewDisplayDisplay
The drawing view display settings.
/* readonly */ booleanIsBackground
 
booleanIsViewdisplayLayerDependent
 
stringName
The drawing view name.
/* readonly */ pfcOutline3DOutline
The outline of the drawing view, in screen coordinates.
numberScale
The drawing view scale.



Method Summary

booleanCheckIsDimensionDisplayed (pfcBaseDimension Dim)
 
voidDelete ( /* optional */ boolean DeleteChildren)
Deletes a specified drawing view.
booleanGetIsScaleUserdefined ()
Identifies if the drawing view has a user-defined scale.
pfcDisplayStatusGetLayerDisplayStatus (pfcLayer Layer)
Gets the display status of the specified layer in the drawing view.
pfcModelGetModel ()
Get the model displayed in the drawing view.
numberGetSheetNumber ()
Gets the sheet where the view is located.
pfcSimpRepGetSimpRep ()
Get the Simplified Representation.
pfcTransform3DGetTransform ()
Returns the coordinate transformation matrix for the drawing view.
voidRegenerate ()
Regenerates the drawing view.
voidSetLayerDisplayStatus (pfcLayer Layer, pfcDisplayStatus Status)
Sets the display status for the layer in the drawing view.
voidTranslate (pfcVector3D ByVector)
Moves the drawing view by the specified vector.



Property Detail


pfcViewDisplayDisplay

The drawing view display settings.

Exceptions thrown (but not limited to):

pfcXToolkitBadContext - The drawing view is a child of another view and inherits its display from its parent.

pfcXToolkitNoLicense - The function attempted to set the concept_model field, but no Pro/ASSEMBLY license is available.






/* readonly */ booleanIsBackground

 




booleanIsViewdisplayLayerDependent

 




stringName

The drawing view name.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The view did not have a name.






/* readonly */ pfcOutline3DOutline

The outline of the drawing view, in screen coordinates.




numberScale

The drawing view scale.





Method Detail


booleanCheckIsDimensionDisplayed (pfcBaseDimension Dim)

 
Parameters:
Dim
Returns:



voidDelete ( /* optional */ boolean DeleteChildren)

Deletes a specified drawing view.
Parameters:
DeleteChildren
true to delete the children of the view, false or null to prevent deletion of the view if it has children.



booleanGetIsScaleUserdefined ()

Identifies if the drawing view has a user-defined scale.
Returns:
true if the view scale is user-defined, false if it uses the default scale for this sheet and model.



pfcDisplayStatusGetLayerDisplayStatus (pfcLayer Layer)

Gets the display status of the specified layer in the drawing view.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The specified layer was not found.


Parameters:
Layer
The specified layer.
Returns:
The layer display status.



pfcModelGetModel ()

Get the model displayed in the drawing view.
Returns:
The model.



numberGetSheetNumber ()

Gets the sheet where the view is located.
Returns:
The sheet number.



pfcSimpRepGetSimpRep ()

Get the Simplified Representation.

Exceptions thrown (but not limited to):

pfcXToolkitInvalidType - The top model for the view is not a solid.


Returns:
The Simplified Representation



pfcTransform3DGetTransform ()

Returns the coordinate transformation matrix for the drawing view.

The transformation matrix is a combination of the following factors:
  • The location of the view origin with respect to the drawing origin.
  • The scale of the view units with respect to the drawing units.
  • The rotation of the model with respect to the drawing coordinate system.

Returns:
The transformation matrix.



voidRegenerate ()

Regenerates the drawing view.



voidSetLayerDisplayStatus (pfcLayer Layer, pfcDisplayStatus Status)

Sets the display status for the layer in the drawing view.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The specified layer was not found.

pfcXToolkitCantModify - display status of the layer cannot be changed


Parameters:
Layer
The layer.
Status
The display status.



voidTranslate (pfcVector3D ByVector)

Moves the drawing view by the specified vector.
Parameters:
ByVector
The transformation vector.