Library | File

Class pfcView2D

# include <pfcView2D.h>

class pfcView2D
 : public virtual pfcChild
{
    xaideclare(pfcView2D)
    ...
};



Description

This interface represents a drawing view in Creo Parametric.
See Also:
pfcModel2D::List2DViews(), pfcModel2D::GetViewByName(xrstring), pfcSelection::GetSelView2D(optional pfcView2D_ptr)
Direct Known Subclasses:
wfcWView2D



Method Summary

xboolCheckIsDimensionDisplayed (pfcBaseDimension_ptr Dim)
 
voidDelete (optional xbool DeleteChildren)
Deletes a specified drawing view.
pfcViewDisplay_ptrGetDisplay ()
voidSetDisplay (pfcViewDisplay_ptr value)
The drawing view display settings.
xboolGetIsBackground ()
 
xboolGetIsScaleUserdefined ()
Identifies if the drawing view has a user-defined scale.
xboolGetIsViewdisplayLayerDependent ()
voidSetIsViewdisplayLayerDependent (xbool value)
 
pfcDisplayStatusGetLayerDisplayStatus (pfcLayer_ptr Layer)
Gets the display status of the specified layer in the drawing view.
pfcModel_ptrGetModel ()
Get the model displayed in the drawing view.
xstringGetName ()
voidSetName (xrstring value)
The drawing view name.
pfcOutline3D_ptrGetOutline ()
The outline of the drawing view, in screen coordinates.
xrealGetScale ()
voidSetScale (xreal value)
The drawing view scale.
xintGetSheetNumber ()
Gets the sheet where the view is located.
pfcSimpRep_ptrGetSimpRep ()
Get the Simplified Representation.
pfcTransform3D_ptrGetTransform ()
Returns the coordinate transformation matrix for the drawing view.
voidRegenerate ()
Regenerates the drawing view.
voidSetLayerDisplayStatus (pfcLayer_ptr Layer, pfcDisplayStatus Status)
Sets the display status for the layer in the drawing view.
voidTranslate (pfcVector3D_ptr ByVector)
Moves the drawing view by the specified vector.


Methods Inherited from Class pfcChild:

GetDBParent, GetOId



Method Detail

xintGetSheetNumber ()

Gets the sheet where the view is located.
Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information
Returns:
The sheet number.



xboolGetIsBackground ()

 
Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information




pfcModel_ptrGetModel ()

Get the model displayed in the drawing view.
Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information
Returns:
The model.



xrealGetScale ()
voidSetScale (xreal value)

The drawing view scale.
Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information, Drawings: Drawing Views Operations, Drawings: Drawing Views Operations




pfcOutline3D_ptrGetOutline ()

The outline of the drawing view, in screen coordinates.
Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information




voidTranslate (pfcVector3D_ptr ByVector)

Moves the drawing view by the specified vector.
Manual References:
Drawings: Drawing Views Operations, Drawings: Drawing Views Operations
Parameters:
ByVector
The transformation vector.
Returns:



voidDelete (optional xbool DeleteChildren)

Deletes a specified drawing view.
Manual References:
Drawings: Drawing Views Operations, Drawings: Drawing Views Operations
Parameters:
DeleteChildren
true to delete the children of the view, false or null to prevent deletion of the view if it has children.
Returns:



voidRegenerate ()

Regenerates the drawing view.
Manual References:
Drawings: Drawing Views Operations, Drawings: Drawing Views Operations
Returns:



pfcDisplayStatusGetLayerDisplayStatus (pfcLayer_ptr 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.


Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information
Parameters:
Layer
The specified layer.
Returns:
The layer display status.



voidSetLayerDisplayStatus (pfcLayer_ptr 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


Manual References:
Drawings: Drawing Views Operations, Drawings: Drawing Views Operations
Parameters:
Layer
The layer.
Status
The display status.
Returns:



pfcViewDisplay_ptrGetDisplay ()
voidSetDisplay (pfcViewDisplay_ptr value)

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.


Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information, Drawings: Drawing Views Operations




pfcTransform3D_ptrGetTransform ()

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.

Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information
Returns:
The transformation matrix.



xstringGetName ()
voidSetName (xrstring value)

The drawing view name.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The view did not have a name.


Manual References:
Drawings: Drawing View Information, Drawings: Drawing View Information




xboolGetIsViewdisplayLayerDependent ()
voidSetIsViewdisplayLayerDependent (xbool value)

 
Manual References:
Drawings: Drawing View Information




xboolGetIsScaleUserdefined ()

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



pfcSimpRep_ptrGetSimpRep ()

Get the Simplified Representation.

Exceptions thrown (but not limited to):

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


Manual References:
Drawings: Drawing View Information
Returns:
The Simplified Representation



xboolCheckIsDimensionDisplayed (pfcBaseDimension_ptr Dim)

 
Parameters:
Dim
Returns: