Library | Module

Interface IpfcSheetOwner



Description

This interface represents a model containing sheets.
Direct Known Subclasses:
IpfcModel2D



Property Summary

PropertyCurrentSheetNumberas Long
The current sheet number.
PropertyNumberOfSheetsas Long
The number of sheets in the model.



Method Summary

FunctionAddSheet () as Long
Adds a sheet to the model.
SubDeleteSheet (SheetNumber as Long)
Removes a sheet from the model.
FunctionGetSheetBackgroundView (SheetNumber as Long) as IpfcView2D
Returns the background view for the given sheet.
FunctionGetSheetData (SheetNumber as Long) as IpfcSheetData [optional]
Returns information about the specified sheet.
FunctionGetSheetFormat (SheetNumber as Long) as IpfcDrawingFormat [optional]
Returns the drawing format used for the particular sheet.
FunctionGetSheetFormatDescr (SheetNumber as Long) as IpfcModelDescriptor
Returns the model descriptor of the drawing format used for the particular sheet.
FunctionGetSheetInfo (SheetNumber as Long) as IpfcSheetInfo [optional]
Returns information about the specified sheet.
FunctionGetSheetScale (SheetNumber as Long, DrawingModel as IpfcModel [optional]) as Double
Returns the scale of the drawing on particular sheet.
FunctionGetSheetTransform (SheetNumber as Long) as IpfcTransform3D
Returns the transformation matrix for the sheet.
FunctionGetSheetUnits (SheetNumber as Long) as IpfcUnit
Returns the length units for the given sheet.
SubRegenerateSheet (SheetNumber as Long)
Regenerates a specified sheet.
SubReorderSheet (FromSheetNumber as Long, To as Long)
Reorders the given sheet to a new sheet number.
SubSetSheetFormat (SheetNumber as Long, Format as IpfcDrawingFormat, FormatSheetNumber as Long [optional], DrawingModel as IpfcModel [optional])
Applies the specified format to a drawing sheet.
SubSetSheetScale (SheetNumber as Long, Scale as Double, DrawingModel as IpfcModel [optional])
Sets the scale for a model on the sheet.



Property Detail


PropertyCurrentSheetNumberas Long

The current sheet number.




PropertyNumberOfSheetsas Long

The number of sheets in the model.





Method Detail


FunctionAddSheet () as Long

Adds a sheet to the model.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The function failed because you do not have the required modules.

IpfcXToolkitInvalidItem - The function did nothing because the model already has the maximum number of sheets allowed.


Returns:
The number of the new sheet added.



SubDeleteSheet (SheetNumber as Long)

Removes a sheet from the model.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - The function failed because you do not have the required modules.

IpfcXToolkitInvalidItem - The function did nothing because the specified sheet is not in the specified drawing.

IpfcXToolkitDeadLock - The Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).


Parameters:
SheetNumber
The number of the sheet to remove.



FunctionGetSheetBackgroundView (SheetNumber as Long) as IpfcView2D

Returns the background view for the given sheet.

The sheet background view is used for the placement of items in the drawing without associating them to a particular model view.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 up to the number of sheets.
Returns:
The background view object.



FunctionGetSheetData (SheetNumber as Long) as IpfcSheetData [optional]

Returns information about the specified sheet.

This method is deprecated. Use IpfcSheetOwner.GetSheetInfo() instead.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
Returns:
The sheet data, including size, orientation, and units.



FunctionGetSheetFormat (SheetNumber as Long) as IpfcDrawingFormat [optional]

Returns the drawing format used for the particular sheet.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - Format for the sheet was not found.


Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
Returns:
The drawing format, or null, if no format is assigned to the sheet.



FunctionGetSheetFormatDescr (SheetNumber as Long) as IpfcModelDescriptor

Returns the model descriptor of the drawing format used for the particular sheet.

Exceptions thrown (but not limited to):

IpfcXToolkitNotFound - Format for the sheet was not found.


Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
Returns:
The model descriptor of the drawing format.



FunctionGetSheetInfo (SheetNumber as Long) as IpfcSheetInfo [optional]

Returns information about the specified sheet.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
Returns:
The sheet info including size, orientation, and units.



FunctionGetSheetScale (SheetNumber as Long, DrawingModel as IpfcModel [optional]) as Double

Returns the scale of the drawing on particular sheet.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
DrawingModel
The model used to measure the scale. If null, the function uses the current model in the drawing.
Returns:
The sheet scale. If no models are used in the drawing, the scale is 1.0.



FunctionGetSheetTransform (SheetNumber as Long) as IpfcTransform3D

Returns the transformation matrix for the sheet.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
Returns:
The transformation matrix for the sheet.



FunctionGetSheetUnits (SheetNumber as Long) as IpfcUnit

Returns the length units for the given sheet.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 up to the number of sheets.
Returns:
The units.



SubRegenerateSheet (SheetNumber as Long)

Regenerates a specified sheet.

The sheet must be displayed.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.



SubReorderSheet (FromSheetNumber as Long, To as Long)

Reorders the given sheet to a new sheet number.

Reordering will cause other affected sheets to change their sheet numbers as well.
Parameters:
FromSheetNumber
The sheet number to reorder. Sheet numbers range from 1 to the number of sheets.
To
The new sheet number for the sheet.



SubSetSheetFormat (SheetNumber as Long, Format as IpfcDrawingFormat, FormatSheetNumber as Long [optional], DrawingModel as IpfcModel [optional])

Applies the specified format to a drawing sheet.
Parameters:
SheetNumber
The sheet number to apply the format. Sheet numbers range from 1 to the number of sheets.
Format
The drawing format to apply.
FormatSheetNumber
The sheet number of the format to apply. This number can range from 1 to the number of sheets in the format. Pass null to use the first format sheet.
DrawingModel
The drawing model (used when resolving parameters in the format). Pass null to use the current drawing model.



SubSetSheetScale (SheetNumber as Long, Scale as Double, DrawingModel as IpfcModel [optional])

Sets the scale for a model on the sheet.
Parameters:
SheetNumber
The sheet number. Sheet numbers range from 1 to the number of sheets.
Scale
The scale to use.
DrawingModel
The drawing model to scale. Pass null to use the current drawing model.