Drawing Sheet Operations
Methods Introduced:
The method
pfcSheetOwner::AddSheet adds a new sheet to the model and returns the number of the new sheet.
The method
pfcSheetOwner::DeleteSheet removes the sheet specified by the sheet number from the model.
Use the method
pfcSheetOwner::ReorderSheet to reorder the sheet from a specified sheet number to a new sheet number.
|
|
The sheet number of other affected sheets also changes due to reordering or deletion.
|
The method
pfcSheetOwner::RegenerateSheet regenerates the sheet specified by the sheet number.
|
|
You can regenerate a sheet only if it is displayed.
|
Use the method
pfcSheetOwner::SetSheetScale to set the scale of a model on the sheet based on the drawing model to scale and the scale to be used. Pass the value of the
DrawingModel parameter as null to select the current drawing model.
Use the method
pfcSheetOwner::SetSheetFormat to apply the specified format to a drawing sheet based on the drawing format, sheet number of the format, and the drawing model.
The sheet number of the format is specified by the FormatSheetNumber parameter. This number ranges from 1 to the number of sheets in the format. Pass the value of this parameter as null to use the first format sheet.
The drawing model is specified by the DrawingModel parameter. Pass the value of this parameter as null to select the current drawing model.
The method
pfcSheetOwner::SetCurrentSheetNumber sets the current sheet to the sheet number specified.
The method
wfcWModel2D::CopyDrawingSheet creates a copy of a specified drawing sheet. Specify the sheet number of the sheet to be copied in the input argument
sheet. Set it to a value less than 1 to create a copy of the currently selected sheet.
Use the method
wfcWModel2D::ShowSheetFormat to display or hide the drawing format for a specified drawing sheet. The input arguments are:
• show
—Specifies if the drawing format must be displayed. Pass true to display the drawing format.
• sheet
—Specifies the sheet number of the sheet. Set it to a value less than 1 to display or hide the drawing format of the currently selected sheet.
The method
wfcWModel2D::IsSheetFormatBlanked checks if the drawing format of a specified drawing sheet is blank. In case of the current sheet, set the input argument
sheet to a value less than 1.
The method
wfcWModel2D::IsSheetFormatShown checks if the drawing format of a specified drawing sheet is shown. The output argument
sheet returns the value as
True, if the drawing format is shown and returns the value as
False, if the drawing format is not shown.
The method
wfcWModel2D::GetToleranceStandard returns the tolerance standard that is assigned to the specified drawing.
Use the method
wfcWModel2D::SetToleranceStandard to set the tolerance standard for a drawing.
The method
wfcWModel2D::CreateLeaderWithArrowTypeNote enables you to create a note with a leader and the specified arrow type in a specified drawing. The input arguments are:
• TextLines—Specifies the text lines using the pfcDetailTextLines object.
• NoteAttach—Specifies the details of the attachment of the note using the pfcAttachment object.
• LeaderAttachs—Specifies the leaders attached to the note using the pfcDetailLeaderAttachments object.
• Types—Specifies the types of arrowheads used for leaders attached to the note using the wfcLeaderArrowTypes object.