| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| void | AddModel
(Model NewModel)
Adds a solid model to the drawing. |
| void | AddSimplifiedRep
(SimpRep SimplifiedRep)
Adds a new simplified representation of a model to a drawing. |
| /*optional*/ Dimensions | CollectShownDimensions
(Solid SolidMdl)
|
| /*optional*/ Dimensions | CollectShownRefDimensions
(Solid SolidMdl)
|
| Dimension | CreateDimension
(DimensionAttachments Attachments, DimSenses Senses, DimOrientationHint hint, Point2D Location)
|
| Dimension2D | CreateDrawingDimension
(DrawingDimCreateInstructions Instructions)
DEPRECATED: since Creo 4 SUCCESSOR(S): Model2D.CreateRefDimension, Model2D.CreateDimension Creates a new drawing dimension. |
| Dimension | CreateRefDimension
(DimensionAttachments Attachments, DimSenses Senses, DimOrientationHint hint, Point2D Location)
|
| View2D | CreateView
(View2DCreateInstructions Instructions)
Creates a new view in the drawing. |
| void | DeleteModel
(Model Model)
Removes a model from the drawing. |
| void | DeleteSimplifiedRep
(SimpRep SimplifiedRep)
Deletes a simplified representation of a model from a drawing. |
| /*optional*/ Model | GetCurrentSolid
()
Gets the current solid model of the drawing |
| double | GetTextHeight
()
Get method for attribute "TextHeight" The text height of the model. The model must be in the current window inorderto access this property. |
| /*optional*/ View2D | GetViewByName
(String ViewName)
Returns a drawing view, given its name. |
| /*optional*/ View2D | GetViewDisplaying
(BaseDimension Dim)
Returns the drawing view that displays a dimension. |
| View2Ds | List2DViews
()
Lists the drawing views. |
| /*optional*/ Models | ListModels
()
Lists the models used in the drawing. |
| Dimension2Ds | ListShownDimensions
(Model Model,
/*optional*/
ModelItemType Type)
DEPRECATED: since Creo 4 SUCCESSOR(S): Model2D.CollectShownRefDimensions, Model2D.CollectShownDimensions Lists the solid-model owned dimensions and reference dimensions shown in the drawing. |
| /*optional*/ SimpReps | ListSimplifiedReps
(Model Solid)
Returns a list of the simplified representations referenced by the drawing. |
| void | Regenerate
()
Regenerates the drawing draft entities. |
| void | ReplaceModel
(Model FromModel, Model ToModel, boolean Unrepresent)
Replaces a drawing model solid with another solid. The old and new solids must be members of the same family table. |
| void | SetCurrentSolid
(Model NewCurrentSolid)
Sets the current solid model for the drawing. |
| void | SetTextHeight
(double value)
Set method for attribute "TextHeight" The text height of the model. The model must be in the current window inorderto access this property. |
| void | SetViewDisplaying
(BaseDimension Dim, View2D NewView)
Sets the view that shows the model dimension. |
| 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 |
| Method Detail |
|---|
| GetTextHeight/SetTextHeight |
|---|
| double | GetTextHeight | () |
| void | SetTextHeight | (double value) |
The text height of the model. The model must be in the current window inorderto access this property.
|
| List2DViews |
|---|
| View2Ds | List2DViews | () |
| Lists the drawing views.
Exceptions thrown (but not limited to): XToolkitNotFound - No views were found
|
| GetViewByName |
|---|
| /*optional*/ View2D | GetViewByName | (String ViewName) |
Returns a drawing view, given its name.
|
| GetViewDisplaying |
|---|
| /*optional*/ View2D | GetViewDisplaying | (BaseDimension Dim) |
| Returns the drawing view that displays a dimension.
Works for solid and drawing dimensions. Exceptions thrown (but not limited to): XToolkitNotDisplayed - The dimension is not displayed in the drawing.
|
| CreateView |
|---|
| View2D | CreateView | (View2DCreateInstructions Instructions) |
| Creates a new view in the drawing.
Before calling this method, display the drawing using the Model.Display() method. Exceptions thrown (but not limited to): XToolkitCreateViewBadSheet - The specified sheet does not exist. XToolkitCreateViewBadModel - The specified model is not in the list of drawing models, or the function cannot make the specified view of this model. XToolkitCreateViewBadExplode - The function cannot explode the view model. XToolkitCreateViewBadParent - The parent view for project does not exist, or is of unsupported type, or does not align with the selected position.
|
| SetViewDisplaying |
|---|
| void | SetViewDisplaying | (BaseDimension Dim, View2D NewView) |
| Sets the view that shows the model dimension.
Before calling this method, dimension should be displayed in the drawing. Exceptions thrown (but not limited to): XToolkitCantWrite - Could not delete the given item because it has read-only access.
|
| GetCurrentSolid |
|---|
| /*optional*/ Model | GetCurrentSolid | () |
| Gets the current solid model of the drawing Exceptions thrown (but not limited to): XToolkitNotFound - No current model is assigned to the drawing.
|
| SetCurrentSolid |
|---|
| void | SetCurrentSolid | (Model NewCurrentSolid) |
| Sets the current solid model for the drawing. Before calling this method, the solid model must be assigned to the drawing using Model2D.AddModel(Model). To see changes to parameters and fields reflecting the change of the current solid model, regenerate the drawing using SheetOwner.RegenerateSheet(int) Exceptions thrown (but not limited to): XToolkitNotFound - The solid is not included in the drawing.
|
| ListModels |
|---|
| /*optional*/ Models | ListModels | () |
| Lists the models used in the drawing.
Exceptions thrown (but not limited to): XToolkitNotFound - No drawing models were found
|
| AddModel |
|---|
| void | AddModel | (Model NewModel) |
| Adds a solid model to the drawing.
Exceptions thrown (but not limited to): XToolkitInUse - The function did nothing because the specified model already exists.
|
| DeleteModel |
|---|
| void | DeleteModel | (Model Model) |
| Removes a model from the drawing.
The model cannot appear in any drawing views. Exceptions thrown (but not limited to): XToolkitBadContext - The function did nothing because the model is NULL. XToolkitNotFound - The function failed because the specified model is not in the drawing. XToolkitInUse - The function failed because the specified model is referenced by a view.
|
| Regenerate |
|---|
| void | Regenerate | () |
| Regenerates the drawing draft entities.
If the model is a layout, this regenerates the layout and its relations. Exceptions thrown (but not limited to): XToolkitInvalidType - Model is not a notebook
|
| ReplaceModel |
|---|
| void | ReplaceModel | (Model FromModel, Model ToModel, boolean Unrepresent) |
| Replaces a drawing model solid with another solid. The old and new solids must be members of the same family table.
Exceptions thrown (but not limited to): XToolkitNotFound - The 'from' model is not in the drawing. XToolkitFound - The 'to' model is already in the drawing. XToolkitBadContext - unrepresent_ok was FALSE, but the "from" solid had a simplified view. OR 'from' and 'to' solids were not from the same family table.
|
| CreateDrawingDimension |
|---|
| Dimension2D | CreateDrawingDimension | (DrawingDimCreateInstructions Instructions) |
| Creates a new drawing dimension.
Exceptions thrown (but not limited to): XToolkitBadDimAttach - a dimension could not be created with the attachments and sense specified.
|
| ListShownDimensions |
|---|
| Dimension2Ds | ListShownDimensions | (Model Model, /*optional*/ ModelItemType Type) |
| Lists the solid-model owned dimensions and reference dimensions shown in the drawing.
Exceptions thrown (but not limited to): XToolkitNotFound - No model dimensions were visited.
|
| CreateDimension |
|---|
| Dimension | CreateDimension | (DimensionAttachments Attachments, DimSenses Senses, DimOrientationHint hint, Point2D Location) |
| Exceptions thrown (but not limited to): XToolkitBadDimAttach - a dimension could not be created with the attachments and sense specified.
|
| CreateRefDimension |
|---|
| Dimension | CreateRefDimension | (DimensionAttachments Attachments, DimSenses Senses, DimOrientationHint hint, Point2D Location) |
| Exceptions thrown (but not limited to): XToolkitBadDimAttach - a dimension could not be created with the attachments and sense specified.
|
| CollectShownDimensions |
|---|
| /*optional*/ Dimensions | CollectShownDimensions | (Solid SolidMdl) |
| Exceptions thrown (but not limited to): XToolkitNoLicense - License check failure. XToolkitNotFound - No model dimensions were visited.
|
| CollectShownRefDimensions |
|---|
| /*optional*/ Dimensions | CollectShownRefDimensions | (Solid SolidMdl) |
| Exceptions thrown (but not limited to): XToolkitNoLicense - License check failure. XToolkitNotFound - No model dimensions were visited.
|
| ListSimplifiedReps |
|---|
| /*optional*/ SimpReps | ListSimplifiedReps | (Model Solid) |
Returns a list of the simplified representations referenced by the drawing.
|
| AddSimplifiedRep |
|---|
| void | AddSimplifiedRep | (SimpRep SimplifiedRep) |
| Adds a new simplified representation of a model to a drawing.
Allows the creation of views displaying the simplified rep. Exceptions thrown (but not limited to): XToolkitFound - The function did nothing because the specified simplified representation already exists.
|
| DeleteSimplifiedRep |
|---|
| void | DeleteSimplifiedRep | (SimpRep SimplifiedRep) |
| Deletes a simplified representation of a model from a drawing.
Exceptions thrown (but not limited to): XToolkitBadContext - The function did nothing because the simplified representation is null. XToolkitNotFound - The function failed because the specified simplified representation is not in the drawing. XToolkitInUse - The function failed because the specified model and simplified representation are referenced by another view in the drawing.
|