Hatch Pattern
- Last UpdatedNov 24, 2023
- 1 minute read
Functions for setting the modal hatch pattern type.
|
hatch_pattern_set(Angle, Distance) |
||
|
The function sets the modal hatch pattern to a given angle and line distance. |
||
|
Input Parameters: |
||
|
Angle |
real |
The angle of the hatch pattern lines, between -90 and 90 degrees. |
|
Distance |
real |
The distance between the hatch pattern lines (>0.0) |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_Argument Error |
Invalid arguments list. |
|
|
kcs_ValueError |
Invalid parameter value |
|
|
std_hatch_pattern_set(Type) |
||
|
The function sets the modal hatch pattern to one of the three standard patterns: |
||
3. Cross hatching with hatch angle defined by the default parameter HATCH_ANG_CROSS. |
||
|
Input Parameters: |
||
|
Type |
integer |
The standard hatch pattern type (1, 2 or 3) |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_StdHatchPatternInvalid |
Invalid standard hatch pattern type |
|
|
userdef_hatch_pattern_set(Page, Detail) |
||
|
The function sets the modal hatch pattern to a user defined pattern found in the standard hatch pattern book. |
||
|
Input Parameters: |
||
|
Page |
integer |
The page in the standard hatch pattern book |
|
Detail |
integer |
The detail in the selected page |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_PageNotFound |
The page was not found |
|
|
kcs_DetailNotFound |
The detail within the page was not found |
|
|
Example: |
||
|
# Example: kcs_ex_draft3.py |
||