DiametralDimension design is used to dimension the diameter of an arc, circle, cone or cylinder.
Parameter Rules
center: | Center of the arc or circle.(Required) |
Example: | R.rootModel.MySheet2.Arc.origin; |
diameter: | Diameter of an arc, circle, cone or cylinder.(Required) |
Example: | R.rootModel.MySheet2.Arc.radius * 2; |
location: | Location for the dimension text.(Required) |
Example: | var x = R.rootModel.MySheet2.Arc.origin.x; |
var y = R.rootModel.MySheet2.Arc.origin.y; |
return p(x+1,y-1,0); |
viewport: | Enter the viewport where DiametralDimension has been placed. If none then leave blank. |
Example: |
dimFormat: | Dimension format |
Example: | 'architectural'; |
Choices: | 'architectural','engineering','decimal' |
dimPrecision: | Dimension precision. Specify the number of decimals to round off to. |
Example: | 2; |
dimPrefix: | This will put a character or symbol in front of the dimension. If left blank, the default will put a diameter symbol in front of the dimension. |
Example: | String.fromCharCode(0x2300) + " " // - NEED TO FIND A FONT IN 3JS |
dimSuffix: | dimSuffix will add characters or a symbol at the end of the dimension. |
Example: | " - decimal (dimFormat) _ 4 (dimPrecision)" |
dimUnits: | Changes dimensions from english to metric. |
Example: | "english" |
Choices: | "default","english","metric" |
charHeight: | Height of the dimension text. Default is 0.25 |
Example: | 0.25; |
isExtLineFrom: | Determines if an extension line appears at the opposite side of the arc: Default is False . |
Example: | false |
isHorizontalLeader: | If set to false the Horizontal leader will not be visible. |
Example: | true |
textAlignment: | Controls alignment of the dimension text. |
Example: | 'horizontal' |
Choices: | 'aligned','horizontal' |
textColor: | Color of the text. |
Example: | 'Green' |
textPlacement: | Placement of the text. |
Example: | "centered" |
Choices: | "centered","above","below" |
arrowSize: | Size of the Arrow. Default is: this.charheight/2.0 |
Example: | 0.125; |
allowManualMove: | If set to true, then the dimension text can be manually moved. Default is: true |
Example: | true |
arrowStyle: | Style of arrow at the end of the dimension lines. |
Example: | "filledArrow"; |
Choices: | "triangle", "filledTriangle", "filledArrow", "circle", "filledCircle" |
Mixins
DimRadialDiametralMixin
DimensionTextMixin
DimensionFormatMixin
BaseAssembly
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
center |
point |
|
Main |
Cached Required |
diameter |
number |
|
Main |
Cached Required |
location |
point |
Main |
Cached Required |
|
viewport |
any |
this.nha.isKindOf("Viewport") ? this.nha : null |
Inputs |
Cached |
dimFormat |
string |
"decimal" |
Format |
Cached |
dimPrecision |
integer |
if (this.dimUnits === "metric") { return 3; } else if (["architectural","fractional"].includes(this.dimformat)) { return 64; } else { return 3; } |
Format |
Cached |
dimPrefix |
string |
String.fromCharCode(0x2300) + " " // - NEED TO FIND A FONT IN 3JS |
Format |
Cached Lookup |
dimSuffix |
string |
"" |
Format |
Cached |
dimUnits |
string |
this.dimUnitsChoices[0] |
Format |
Cached |
charHeight |
string |
0.25; |
Main |
Cached Lookup |
isExtLineFrom |
boolean |
false |
Main |
Cached |
isHorizontalLeader |
boolean |
true |
Main |
Cached Lookup |
textAlignment |
string |
"horizontal" |
Text |
Cached |
textColor |
string |
this.color |
Text |
Cached Lookup |
textPlacement |
string |
this.textPlacementChoices[0] |
Text |
Cached |
arrowSize |
number |
this.charheight/2.0 |
Arrows |
Cached Lookup |
allowManualMove |
boolean |
true |
None |
Cached |
arrowStyle |
string |
"filledTriangle" |
None |
Cached Look |
Project Example:
In your kBridge Examples Projects folder open the project called ‘DrawingUtilitiesTableDemo’.
Reference Location:
'world.mytable.mysheet2.diadim'
Link: https://knowledgebridge.engineer/projects
Open the DrawingUtilitiesTableDemo project.
In the DiaDim / Sheet2 shows 3 DiametralDimension designs with different values in the dimFormat rule.