Please enable JavaScript to view this site.

Knowledge Bridge Documentation

Help version: 3.3.8

Description

DiametralDimension design is used to dimension the diameter of an arc, circle, cone or cylinder.

 

DiametralDimension1

 

 

 

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
Parameter

Required

diameter

number

 

Main

Cached
Parameter

Required

location

point


Main

Cached
Parameter

Required

viewport

any

this.nha.isKindOf("Viewport") ? this.nha : null

Inputs

Cached
Parameter

dimFormat

string

"decimal"

Format

Cached
Parameter

dimPrecision

integer

if (this.dimUnits === "metric") {

   return 3;

} else if (["architectural","fractional"].includes(this.dimformat)) {

   return 64;

} else {

   return 3;

}

Format

Cached
Parameter

dimPrefix

string

String.fromCharCode(0x2300) + " " // - NEED TO FIND A FONT IN 3JS

Format

Cached
Parameter

Lookup

dimSuffix

string

""

Format

Cached
Parameter

dimUnits

string

this.dimUnitsChoices[0]

Format

Cached
Parameter

charHeight

string

0.25;

Main

Cached
Parameter

Lookup

isExtLineFrom

boolean

false

Main

Cached
Parameter

isHorizontalLeader

boolean

true

Main

Cached
Parameter

Lookup

textAlignment

string

"horizontal"

Text

Cached
Parameter

textColor

string

this.color

Text

Cached
Parameter

Lookup

textPlacement

string

this.textPlacementChoices[0]

Text

Cached
Parameter

arrowSize

number

this.charheight/2.0

Arrows

Cached
Parameter

Lookup

allowManualMove

boolean

true

None

Cached
Parameter

arrowStyle

string

"filledTriangle"

None

Cached
Parameter

Look

 

 

kBridgeExampleIcon

 

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.

 

DiametralDimension2

 

 

 

 

 

 

 

 

Knowledge Bridge from Engingeering Intent is a full-featured engineering and sales automation environment