Other Drawing Components
- Last UpdatedNov 24, 2023
- 2 minute read
|
cloud_new(Parent, Shape) |
||
|
The function creates a new cloud primitive. |
||
|
Parent |
ElementHandle |
Parent subview handle. The created cloud component will belong to given subview. |
|
Shape |
Rectangle2D or Polygon2D |
Contour for cloud symbol. |
|
Returned value: |
||
|
[0] |
ElementHandle |
Handle to the created cloud component. |
|
Exceptions: |
||
|
ks_DrawingNotCurrent |
No drawing was current |
|
|
kcs_ValueError |
Values of input parameters are invalid. For example: given polygon has only 2 vertexes. |
|
|
kcs_ArgumentError |
Invalid arguments list. |
|
|
kcs_Error |
General error. Cloud component can't be created. |
|
|
kcs_HandleInvalid |
Invalid handle of subview. |
|
|
cross_new(Parent, String, Line1, Line2) |
||
|
The function creates a new cross primitive. |
||
|
Parent |
ElementHandle |
Parent subview handle. The created cross component will belong to given subview. |
|
String |
Text |
Instance of Text class. Members of Text class like: Visible, Detectable, Colour, Layer, Position are ignored. |
|
Line1 |
Rline2D |
First line for cross symbol. |
|
Line2 |
Rline2D |
Second line for cross symbol. |
|
Returned value: |
||
|
[0] |
ElementHandle |
Handle to the created cross component. |
|
Exceptions: |
||
|
ks_DrawingNotCurrent |
No drawing was current. |
|
|
kcs_ValueError |
Values of input parameters are invalid. For example: lines are parallel. |
|
|
kcs_ArgumentError |
Invalid arguments list. |
|
|
kcs_Error |
General error. Cross component can't be created. |
|
|
kcs_HandleInvalid |
Invalid handle of subview |
|
|
ruler_new(Parent, StartPt, TickLen, FirstTick, LastTick, LabelTick, TextProp) |
||
|
The function creates a new ruler primitive. |
||
|
Parent |
ElementHandle |
Parent subview handle. The created component will belong to given subview. |
|
StartPt |
Point2D |
Starting point of ruler |
|
TickLen |
Real |
Distance between ticks |
|
FirstTick |
Integer |
First ruler tick value |
|
LastTick |
Integer |
Last ruler tick value |
|
LabelTick |
Integer |
Value which identifies to which ticks add label with tick value. The labelled tick is determined by dividing total number of ticks by LabelTick value. |
|
TextProp |
Text |
Class defining properties of ruler label texts. The following properties are used: font, test height, rotation, aspect ratio, slanting. |
|
Returned value: |
||
|
[0] |
ElementHandle |
Handle to the created component. |
|
Exceptions: |
||
|
ks_DrawingNotCurrent |
No drawing was current. |
|
|
kcs_HandleInvalid |
Invalid handle of subview. |
|
|
kcs_ArgumentError |
Invalid arguments list. |
|
|
kcs_Error |
General error. Ruler component can't be created. |
|
|
position_ruler_new (Act, View, StartPt, EndPt) |
||
|
This function creates different kinds of rulers in model view and generates the complete dimensioning components automatically. |
||
|
Act |
integer |
Ruler type: 1 - Base Line 2 - Center Line 3 - Fram Ruler 4 - Longitudinal Horizontal Ruler 5 - Longitudinal Vertical Ruler |
|
View |
ElementHandle |
View handle. The created component will belong to given view. |
|
StartPt |
Point2D |
Starting point of ruler. |
|
EndPt |
Point2D |
Ending point of ruler. |
|
Returned value: |
||
|
[0] |
ElementHandle |
Handle to the created measure component. |
|
Exceptions: |
||
|
kcs_DrawingNotCurrent |
No drawing was current. |
|
|
kcs_ArgumentError |
Invalid arguments list. |
|
|
kcs_HandleInvalid |
Invalid handle to view. |
|
|
kcs_RulerTypeInvalid |
Invalid ruler type. Creation not possible in given view, |
|
|
kcs_ValueError |
Invalid point. |
|
|
kcs_BasicLineToCloseToViewPlane |
The base line plane is too close to the view plane. |
|
|
kcs_CenterLineToCloseToViewPlane |
The center line plane is too close to the view plane. |
|