Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Module KscSketchDimensioning

  • Last UpdatedOct 25, 2023
  • 2 minute read

KscSketchDimensioning module is prepared directly for transferring data to/from trig_hull_endcut_dim trigger.

Class KcsSketchDimensioning.ProfileSketch

The class is designed for storing profile settings used by trig_hull_endcut_dim trigger to position endcut dimensions on the sketch.

Methods

GetProfileType()

integer

Profile type.

GetProfileParams()

List of six real values

Profile parameters in the following syntax:

[H, B, Tw, Tf, R1, R2]

  • H - Height of the profile

  • B - Width of the profile (flange width)

  • Tw - Thickness of the web

  • Tf - Thickness of the flanges

  • R1 - Radius between web and flange

  • R2 - Second radius

GetEndcutType()

integer

Endcut type.

GetEndcutCode()

integer

Endcut code.

GetEndcutParams()

List of nine real values

Nine endcut parameters in the following syntax:

[a, b, c, R1, R2, a1, a2, a3, a4].

Different parameters are valid for certain endcut types, as defined in hull standard.

GetEndcutRectangle()

Rectangle2D

Endcut picture limiting rectangle. All dimensions positioned by the trigger should be placed outside the rectangle.

GetFlangeCutRectangle()

Rectangle 2D

Flange cut picture limiting rectangle. All dimensions positioned by the trigger on a flange cut should be placed outside the rectangle.

GetExcess()

real

Excess material length for endcut.

GetSketchExcess()

real

Symbolic excess material length for endcut used in sketch.

GetBevelGapWeb()

real

Bevel gap on web.

GetBevelGapFlange()

real

Bevel gap on flange.

Class KcsSketchDimensioning.DimensionSet

The class holds dimension data returned from trig_hull_endcut_dim trigger.

Parameters and attributes

Elements

list

List of dimension data to be drawn on the sketch.

Methods

AddLinearDim(

 measurePoint1,

 measurePoint2,

 direction,

 linePoint,

 text)

Adds linear dimension to dimension set.

  • measurePoint1, measurePoint2 (KcsPoint2D.Point2D)

    Two endpoints of the measure.

  • direction (KcsVector2D.Vector2D )

    Direction vector along the witness lines (define horizontal or vertical measure).

  • linePoint (KcsPoint2D.Point2D)

    A point locating the projection line.

  • text (string)

    A value of the dimension.

AddRadiusDim(

 textPoint,

 text)

Adds radius dimension to dimension set.

  • textPoint (KcsPoint2D.Point2D)

    A point locating the measure text.

  • text (string)

    A value of the dimension.

AddAngleDim(

 firstLine,

 secondLine,

 linePoint,

 textPoint,

 text,

 drawFirst,

 drawSecond,

 drawDegree)

Adds angle dimension to dimension set.

  • firstLine, secondLine (KcsRline2D.Rline2D)

    Two legs of angle measure.

  • linePoint (KcsPoint2D.Point2D)

    A point locating the dimensioning arc.

  • textPoint (KcsPoint2D.Point2D)

    A point locating the measure text.

  • text (string)

    A value of the dimension. If text is too long to fit between two witness lines, it is placed on the left of the dimension.

  • drawFirst, drawSecond (integer)

    Flags for drawing legs (1 - draw(default), 0 - not draw).

  • drawDegree (integer)

    Flag for drawing a degree symbol at the end of text (1 - draw, 0 - not draw(default) )

AddCustomDim(

 textPoint,

 text)

Adds custom dimension to dimension set.

  • textPoint (KcsPoint2D.Point2D)

    A point locating the text.

  • text (string)

    A text to add on the sketch (that means, endcut code).

Reset()

Removes all elements from dimension set.

Related Links
TitleResults for “How to create a CRG?”Also Available in