Drawing Sheet Operations
Methods Introduced:
The method
pfcSheet.SheetOwner.AddSheet adds a new sheet to the model and returns the number of the new sheet.
The method
pfcSheet.SheetOwner.DeleteSheet removes the sheet specified by the sheet number from the model.
Use the method
pfcSheet.SheetOwner.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
pfcSheet.SheetOwner.RegenerateSheet regenerates the sheet specified by the sheet number.
|
|
You can regenerate a sheet only if it is displayed.
|
Use the method
pfcSheet.SheetOwner.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
pfcSheet.SheetOwner.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
pfcSheet.SheetOwner.SetCurrentSheetNumber sets the current sheet to the sheet number specified.
The method
wfcModel.WModel2D.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
wfcModel.WModel2D.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
wfcModel.WModel2D.GetToleranceStandard returns the tolerance standard that is assigned to the specified drawing.
Use the method
wfcModel.WModel2D.SetToleranceStandard to set the tolerance standard for a drawing.
The method
wfcModel.WModel2D.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
wfcModel.WModel2D.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
wfcModel.WModel2D.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 pfcDetail.DetailTextLines object.
• NoteAttach—Specifies the details of the attachment of the note using the pfcDetail.Attachment object.
• LeaderAttachs—Specifies the leaders attached to the note using the pfcDetail.DetailLeaderAttachments object.
• Types—Specifies the types of arrowheads used for leaders attached to the note using the wfcAnnotation.LeaderArrowTypes object.