The DrawingSheet design allows you to name the sheet (sheetName), give it a size, and give it a scale (viewScale). A border is present because the
showBorder rules default is set to true. You can turn off the border if you choose by entering false in showBorder. In this case a design was created called
'MySheet3' with DrawingSheet as its mixin. To make the DrawingSheet appear in the graphics window select from the button in the lower left corner of the
graphics window.
MySheet3 was made a child of the root design (MyTable). The DrawingSheet will be viewable in your kBridge program as well as in the Custom UI.
Within the DrawingSheet you can add a Title Block, Front View, Top View, Side View, ISO View, Text, Shapes and Chart Tables.
Parameter Rules
length: | This can be set to create a custom paper size, but is normally automatically obtained from the [size] parameter. |
Example: | Can leave blank. |
width: | This can be set to create a custom paper size, but is normally automatically obtained from the [size] parameter. |
Example: | Can leave blank. |
paperUnits: | This can be set to 'in' or 'mm', but is normally automatically obtained from the [size] parameter. |
Example: | Can leave blank. |
showBorder: | Whether to show a rectangular border representing the paper boundary. Default is true. |
Example: | Can leave blank. |
sheetName: | The name of the sheet, and thus the scene. This name will show up in the menu button in the lower left corner |
of the graphics window. |
Example: | 'Sheet3'; |
size: | The standard nominal paper size of this sheet. Must be one of the elements in the [paperSize] list. |
Example: | 'ANSI B'; |
paperSize: | Not a parameter. |
List: | {'ANSI A Landscape': { xSize: 11, ySize: 8.5 }, |
'ANSI A Portrait': { xSize: 8.5, ySize: 11 }, |
'ANSI B': { xSize: 17, ySize: 11 }, |
'ANSI C': { xSize: 22, ySize: 17 }, |
'ANSI D': { xSize: 34, ySize: 22 }, |
'ANSI E': { xSize: 44, ySize: 34 }, |
A4: { xSize: 210, ySize: 297 }, |
A3: { xSize: 420, ySize: 297 }, |
A2: { xSize: 594, ySize: 420 }, |
A1: { xSize: 841, ySize: 594 }, |
A0: { xSize: 1189, ySize: 841 } } |
viewScale: | The default scale for viewports on this sheet. This is the size on the sheet relative to model space. |
Example: | 0.025; |
annotationStyleName: | The name of the [AnnotationStyle] to use in this drawing. |
Example: | 'default'; |
Mixins
RectangleMixin
RectangleRenderMixin
BaseAssembly
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
length |
number |
this.papersize[this.size].xSize |
Inputs |
Cached |
width |
number |
this.papersize[this.size].ySize |
Inputs |
Cached |
paperUnits |
string |
this.size.startsWith("ANSI") ? "in" : "mm" |
Render |
Cached |
showBorder |
boolean |
true |
Render |
Cached |
sheetName |
string |
"Sheet1" |
Drawing |
Cached |
size |
string |
"ANSI B" |
Drawing |
Cached |
viewScale |
number |
1.0; |
Drawing |
Cached |
annotationStyleName |
string |
'default' |
Annotation |
Cached Lookup |
Project Example:
In your kBridge Examples Projects folder open the project called ‘DrawingUtilitiesTableDemo’.
Reference Location:
'world.mytable.mysheet'
Link: https://knowledgebridge.engineer/projects
Open the DrawingUtilitiesTableDemo project.
Under the root (MyTable) there are 3 different examples of DrawingSheets with a Title Block, Front View, Top View, Side View, ISO View and Text.