Complete the code to insert a title block into the drawing sheet.
swDrawing = swApp.ActiveDoc swSheet = swDrawing.GetCurrentSheet() swSheet.[1]("TitleBlock.slddrt")
The method InsertSheetFormat is used to insert a sheet format, which includes the title block, into the current drawing sheet.
Complete the code to set the sheet format file path for the drawing.
sheetFormatPath = "C:\\Templates\\[1]" swDrawing = swApp.ActiveDoc swDrawing.[1] = sheetFormatPath
The property SheetFormatPath is used to specify the file path of the sheet format to be applied to the drawing.
Fix the error in the code to correctly apply a sheet format to the drawing.
swDrawing = swApp.ActiveDoc swDrawing.[1]("C:\\Templates\\CustomFormat.slddrt")
The correct method to apply a sheet format file to the drawing is InsertSheetFormat. Other methods do not exist or are incorrect.
Fill both blanks to create a new drawing sheet and set its sheet format.
swDrawing = swApp.ActiveDoc newSheet = swDrawing.[1]("Sheet2", 1, 0, 0, 0, 0) newSheet.[2]("C:\\Templates\\StandardFormat.slddrt")
Use InsertSheet to add a new sheet to the drawing, then InsertSheetFormat to apply the sheet format file.
Fill all three blanks to rename the current sheet and update its sheet format.
swDrawing = swApp.ActiveDoc currentSheet = swDrawing.GetCurrentSheet() currentSheet.[1] = "Assembly Drawing" currentSheet.[2]() currentSheet.[3]("C:\\Templates\\AssemblyFormat.slddrt")
Set the Name property to rename the sheet, call UpdateSheet to refresh it, then use InsertSheetFormat to apply the new format.
