schCreateSheet
schCreateSheet(d_cvId x_number t_borderLibrary t_borderCell t_borderView) =>d_sheetInstId/ nil
Description
Creates a new sheet for a multisheet schematic.
The schematic is generated based on the cell name of the index with the sheet number appended; for example, sheet003. A multisheet symbol is created with the msymbol view and an instance is placed in the index schematic.
If the source is not a multisheet schematic, it is converted into a multisheet schematic. An index is created, and the source becomes the specified sheet number in the multisheet design.
If the numbered sheet already exists, the new sheet is inserted before the existing sheet. The remaining sheets are renumbered. Also, if the sheet number is less than or equal to zero, a sheet number is generated based on the value of the last sheet number in the multisheet schematic.
When you specify the library, cell, and view of a sheet border master, a border instance is added to the new multisheet schematic.
Arguments
Value Returned
|
The instance ID of the new sheet instance in the index schematic. |
|
Examples
Creates sheet number 4, with an A-sized sheet border from the US_8ths library in the multisheet schematic defined by the given index schematic.
sheetInstId = schCreateSheet( indexId 4 "US_8ths" "Asize" "symbol" )
Converts an ordinary schematic into sheet 1 of a multisheet schematic and creates an index schematic with the same name as the original schematic. Searches each library specified in your cds.lib file until a sheetSymbol is found to create an instance representing the new sheet in the index schematic.
sheetInstId = schCreateSheet( cvId 1 "" "" "" )
Converts an ordinary schematic into sheet 2 of a multisheet schematic and creates an index schematic with the same name as the original schematic. A D-sized border is added to the converted schematic.
sheetInstId = schCreateSheet( cvId 2 "US_8ths" "Dsize" "symbol" )
Creates sheet number 4, without a sheet border, in the multisheet schematic defined by the given index schematic. Uses the sheetSymbol from the US_8ths library to create an instance representing the new sheet in the index schematic.
sheetInstId = schCreateSheet( indexID 4 "US_8th" "" "")
Return to top