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

Hull and Outfitting

Curve Functions

  • Last UpdatedNov 27, 2023
  • 1 minute read

This chapter describes function to identify an existing contour in the current drawing and create a curve statement to add to the current panel.

pan_curve_create( )

The function returns a curve statement to add in the current panel.

Input Parameters:

plane code

integer

The code of the plane.

view handle

handle

The handle of the current view

curve name

string

The name of created curve

panel name

string

The name of the current panel

contour

contour2D

The contour object

Returned value:

[0]

integer

Result code

[1]

string

Curve statement

Exceptions:

kcs_ValueError

Invalid parameter value.

kcs_DrawingNotCurrent

No drawing was current.

kcs_Error

General error.

pan_curve_store( )

The function makes curve object out of the contour and saves it on the databank.

Input Parameters:

dwg handle

handle

The handle of the current drawing.

view handle

handle

The handle of the current view.

curve name

string

The name of created curve.

cont handle

handle

The handle of the contour.

contour

handle

The contour object.

Returned value:

[0]

integer

Result code

Exceptions:

kcs_ValueError

Invalid parameter value.

kcs_DrawingNotCurrent

No drawing was current.

kcs_Error

General error.

Examples:

# Example: kcs_ex_hullcurve1.py

# Example: kcs_ex_hullcurve2.py

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