Library | Package Java Toolkit

Interface Drawing

package com.ptc.pfc.pfcDrawing;

public interface Drawing
  extends com.ptc.pfc.pfcModel2D.Model2D



Description

This class describes a drawing.
Direct Known Subclasses:
WDrawing



Method Summary
DimensionConvertLinearDimensionToBaseline (Dimension Dim, Vector2D Location)
    Converts an existing linear dimension to ordinate baseline. To use this method drawing must be displayed.
voidConvertLinearDimensionToOrdinate (Dimension Dim, Dimension BaselineDimension)
    Converts an existing linear dimension to ordinate. To use this method drawing must be displayed.
voidConvertOrdinateDimensionToLinear (Dimension Dim)
    Converts an existing ordinate dimension to linear. To use this method drawing must be displayed.
voidEraseDimension (Dimension Dim)
    Erase dimension from specified drawing.
/*optional*/ DimensionGetBaselineDimension (Dimension Dim)
    Checks if dimension is an ordinate dimension and if it is ordinate then returns baseline dimension.
DimensionAttachmentsGetDimensionAttachPoints (Dimension Dim)
    Gets attachment information of dimension.
Point3DGetDimensionLocation (Dimension Dim)
    Get location of dimension text in specified drawing.
DimOrientationHintGetDimensionOrientHint (Dimension Dim)
    Gets orientation of dimension
DimSensesGetDimensionSenses (Dimension Dim)
    Gets sense information of dimension.
/*optional*/ View2DGetDimensionView (Dimension Dim)
    Get drawing view of dimension.
booleanIsDimensionAssociative (Dimension Dim)
    Checks if solid dimension shown in drawing is associative.
booleanIsDimensionShown (Dimension Dim)
    Checks if dimension is shown in a specified drawing.
booleanIsDimensionToleranceDisplayed (Dimension Dim)
    Indicates whether a drawing dimension's tolerance is visible or not.
voidSetDimensionLocation (Dimension Dim, Point3D ToLocation)
    Changes location of dimension text.
voidSwitchDimensionView (Dimension Dim, View2D View)
    Change view of the dimension in specified drawing.

Methods Inherited from Interface com.ptc.pfc.pfcSheet.SheetOwner
GetNumberOfSheets, GetCurrentSheetNumber, SetCurrentSheetNumber, AddSheet, ReorderSheet, GetSheetData, GetSheetInfo, GetSheetTransform, RegenerateSheet, DeleteSheet, GetSheetScale, SetSheetScale, GetSheetFormat, SetSheetFormat, GetSheetBackgroundView, GetSheetUnits, GetSheetFormatDescr

Methods Inherited from Interface com.ptc.pfc.pfcDetail.DetailItemOwner
ListDetailItems, GetDetailItem, CreateDetailItem, CreateFreeNote, CreateOffsetNote, CreateOnItemNote, CreateLeaderNote, RetrieveSymbolDefinition, RetrieveSymbolDefItem, AllowReadonlyNoteSelection

Methods Inherited from Interface com.ptc.pfc.pfcTable.TableOwner
ListTables, GetTable, CreateTable, RetrieveTable, RetrieveTableByOrigin, UpdateTables, DeleteTable

Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent
GetChild

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItemOwner
GetItemByName, GetItemById, ListItems

Methods Inherited from Interface com.ptc.pfc.pfcView.ViewOwner
RetrieveView, GetView, SaveView, GetCurrentViewTransform, SetCurrentViewTransform, CurrentViewRotate, ListViews, GetCurrentView

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

Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource
AddActionListener, RemoveActionListener, AddActionListenerWithType

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner
DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression

Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner
GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters

Methods Inherited from Interface com.ptc.pfc.pfcModel.Model
GetDescr, GetRelationId, GetIsModified, GetVersionStamp, GetRevision, GetVersion, GetBranch, GetReleaseLevel, GetCommonName, SetCommonName, IsCommonNameModifiable, GetFullName, GetInstanceName, GetGenericName, GetType, GetFileName, Backup, Copy, CopyAndRetrieve, Rename, Save, Erase, EraseWithDependencies, Delete, Display, DisplayInNewWindow, ListDependencies, ListDeclaredModels, CreateLayer, Export, Import, AccessExternalData, TerminateExternalData, CheckIsSaveAllowed, CheckIsModifiable, GetOrigin, GetPostRegenerationRelations, SetPostRegenerationRelations, RegeneratePostRegenerationRelations, DeletePostRegenerationRelations, CleanupDependencies, IsNativeModel, ExportIntf3D, SetIntf3DLayerSetupFile, IsIntf3DLayerSetupFileIgnored, IsIntf3DCsysIgnored, ClearIntf3DModelData

Methods Inherited from Interface com.ptc.pfc.pfcModel2D.Model2D
GetTextHeight, SetTextHeight, List2DViews, GetViewByName, GetViewDisplaying, CreateView, SetViewDisplaying, GetCurrentSolid, SetCurrentSolid, ListModels, AddModel, DeleteModel, Regenerate, ReplaceModel, CreateDrawingDimension, ListShownDimensions, CreateDimension, CreateRefDimension, CollectShownDimensions, CollectShownRefDimensions, ListSimplifiedReps, AddSimplifiedRep, DeleteSimplifiedRep

Method Detail

IsDimensionAssociative

booleanIsDimensionAssociative (Dimension Dim)


    Checks if solid dimension shown in drawing is associative.
Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
Solid dimension shown in the drawing.
Returns:
xtrue if dimension is associative.


IsDimensionToleranceDisplayed

booleanIsDimensionToleranceDisplayed (Dimension Dim)


    Indicates whether a drawing dimension's tolerance is visible or not.
Manual References:
Drawings: Drawing Dimensions Information
Parameters:
Dim
Dimension.
Returns:
xtrue if dimension's tolerance is visible.


GetBaselineDimension

/*optional*/ DimensionGetBaselineDimension (Dimension Dim)


    Checks if dimension is an ordinate dimension and if it is ordinate then returns baseline dimension.
Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
Dimension.
Returns:
NULL value means dimension is not ordinate. For ordinate dimension returns its baseline.


GetDimensionSenses

DimSensesGetDimensionSenses (Dimension Dim)


    Gets sense information of dimension.

Exceptions thrown (but not limited to):

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

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


Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
Dimension.
Returns:
Array of sense.


GetDimensionAttachPoints

DimensionAttachmentsGetDimensionAttachPoints (Dimension Dim)


    Gets attachment information of dimension.

Exceptions thrown (but not limited to):

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

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


Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
Dimension.
Returns:
Attachment information


GetDimensionOrientHint

DimOrientationHintGetDimensionOrientHint (Dimension Dim)


    Gets orientation of dimension

Exceptions thrown (but not limited to):

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

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


Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
Dimension
Returns:
orientation


ConvertOrdinateDimensionToLinear

voidConvertOrdinateDimensionToLinear (Dimension Dim)


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

Exceptions thrown (but not limited to):

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


Manual References:
Drawings: Drawing Dimensions Operations, Drawings: Drawing Dimensions Operations
Parameters:
Dim
Dimension.
Returns:


ConvertLinearDimensionToOrdinate

voidConvertLinearDimensionToOrdinate (Dimension Dim, Dimension BaselineDimension)


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

Exceptions thrown (but not limited to):

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


Manual References:
Drawings: Drawing Dimensions Operations, Drawings: Drawing Dimensions Operations
Parameters:
Dim
Linear dimension.
BaselineDimension
Baseline dimension.
Returns:


ConvertLinearDimensionToBaseline

DimensionConvertLinearDimensionToBaseline (Dimension Dim, Vector2D 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:
 


SetDimensionLocation

voidSetDimensionLocation (Dimension Dim, Point3D ToLocation)


    Changes location of dimension text.

Exceptions thrown (but not limited to):

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


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


GetDimensionLocation

Point3DGetDimensionLocation (Dimension Dim)


    Get location of dimension text in specified drawing.
Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
Dimension
Returns:
Location.


GetDimensionView

/*optional*/ View2DGetDimensionView (Dimension Dim)


    Get drawing view of dimension.

Exceptions thrown (but not limited to):

XToolkitNotDisplayed - The dimension is not displayed in the drawing.


Manual References:
Drawings: Drawing Dimensions Information, Drawings: Drawing Dimensions Information
Parameters:
Dim
 
Returns:
A drawing view.


SwitchDimensionView

voidSwitchDimensionView (Dimension Dim, View2D View)


    Change view of the dimension in specified drawing.

Exceptions thrown (but not limited to):

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


Manual References:
Drawings: Drawing Dimensions Operations, Drawings: Drawing Dimensions Operations
Parameters:
Dim
Dimension.
View
New drawing view.
Returns:


IsDimensionShown

booleanIsDimensionShown (Dimension Dim)


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


EraseDimension

voidEraseDimension (Dimension Dim)


    Erase dimension from specified drawing.

Exceptions thrown (but not limited to):

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


Manual References:
Drawings: Drawing Dimensions Operations, Drawings: Drawing Dimensions Operations
Parameters:
Dim
Dimension
Returns: