Library | Package Java Toolkit

Interface View2D

package com.ptc.pfc.pfcView2D;

public interface View2D
  extends com.ptc.pfc.pfcObject.Child



Description

This interface represents a drawing view in Creo Parametric.
See Also:
Model2D.List2DViews(), Model2D.GetViewByName(String), Selection.GetSelView2D(/*optional*/ View2D)
Direct Known Subclasses:
WView2D



Method Summary
booleanCheckIsDimensionDisplayed (BaseDimension Dim)
     
voidDelete ( /*optional*/ Boolean DeleteChildren)
    Deletes a specified drawing view.
ViewDisplayGetDisplay ()
    Get method for attribute "Display"
    The drawing view display settings.
booleanGetIsBackground ()
    Get method for attribute "IsBackground"
     
booleanGetIsScaleUserdefined ()
    Identifies if the drawing view has a user-defined scale.
booleanGetIsViewdisplayLayerDependent ()
    Get method for attribute "IsViewdisplayLayerDependent"
     
DisplayStatusGetLayerDisplayStatus (Layer Layer)
    Gets the display status of the specified layer in the drawing view.
ModelGetModel ()
    Get the model displayed in the drawing view.
StringGetName ()
    Get method for attribute "Name"
    The drawing view name.
Outline3DGetOutline ()
    Get method for attribute "Outline"
    The outline of the drawing view, in screen coordinates.
doubleGetScale ()
    Get method for attribute "Scale"
    The drawing view scale.
intGetSheetNumber ()
    Gets the sheet where the view is located.
SimpRepGetSimpRep ()
    Get the Simplified Representation.
Transform3DGetTransform ()
    Returns the coordinate transformation matrix for the drawing view.
voidRegenerate ()
    Regenerates the drawing view.
voidSetDisplay (ViewDisplay value)
    Set method for attribute "Display"
    The drawing view display settings.
voidSetIsViewdisplayLayerDependent (boolean value)
    Set method for attribute "IsViewdisplayLayerDependent"
     
voidSetLayerDisplayStatus (Layer Layer, DisplayStatus Status)
    Sets the display status for the layer in the drawing view.
voidSetName (String value)
    Set method for attribute "Name"
    The drawing view name.
voidSetScale (double value)
    Set method for attribute "Scale"
    The drawing view scale.
voidTranslate (Vector3D ByVector)
    Moves the drawing view by the specified vector.

Methods Inherited from Interface com.ptc.pfc.pfcObject.Child
GetDBParent, GetOId

Method Detail

GetSheetNumber

intGetSheetNumber ()


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


GetIsBackground

booleanGetIsBackground ()


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



GetModel

ModelGetModel ()


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


GetScale/SetScale

doubleGetScale ()
voidSetScale (double value)


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



GetOutline

Outline3DGetOutline ()


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



Translate

voidTranslate (Vector3D 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:


Delete

voidDelete ( /*optional*/ Boolean 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:


Regenerate

voidRegenerate ()


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


GetLayerDisplayStatus

DisplayStatusGetLayerDisplayStatus (Layer Layer)


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

Exceptions thrown (but not limited to):

XToolkitNotFound - 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.


SetLayerDisplayStatus

voidSetLayerDisplayStatus (Layer Layer, DisplayStatus Status)


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

Exceptions thrown (but not limited to):

XToolkitNotFound - The specified layer was not found.

XToolkitCantModify - 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:


GetDisplay/SetDisplay

ViewDisplayGetDisplay ()
voidSetDisplay (ViewDisplay value)


    The drawing view display settings.

Exceptions thrown (but not limited to):

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

XToolkitNoLicense - 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



GetTransform

Transform3DGetTransform ()


    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.


GetName/SetName

StringGetName ()
voidSetName (String value)


    The drawing view name.

Exceptions thrown (but not limited to):

XToolkitNotFound - The view did not have a name.


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



GetIsViewdisplayLayerDependent/SetIsViewdisplayLayerDependent

booleanGetIsViewdisplayLayerDependent ()
voidSetIsViewdisplayLayerDependent (boolean value)


     
Manual References:
Drawings: Drawing View Information



GetIsScaleUserdefined

booleanGetIsScaleUserdefined ()


    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.


GetSimpRep

SimpRepGetSimpRep ()


    Get the Simplified Representation.

Exceptions thrown (but not limited to):

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


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


CheckIsDimensionDisplayed

booleanCheckIsDimensionDisplayed (BaseDimension Dim)


     
Parameters:
Dim
Returns: