Python Part
Class full path: PythonPart.PythonPart
Definition of class PythonPart
Attributes
views: list[View]
property
Get the views
Returns:
Type | Description |
---|---|
list[View]
|
views |
Functions
__init__(name, parameter_list, hash_value, python_file, views=None, matrix=Matrix3D(), common_props=None, reinforcement=None, attribute_list=None, library_elements=None, architecture_elements=None, label_elements=None, fixture_elements=None, placement_matrix=None)
Initialization of class PythonPart
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
name of the modified property |
required |
parameter_list
|
list[str]
|
list with the parameter |
required |
hash_value
|
str
|
Hash value of the parameter |
required |
python_file
|
str
|
File name of the pyp file |
required |
views
|
list[View2D | View3D | View2D3D] | None
|
Views for PythonPart |
None
|
matrix
|
Matrix3D
|
Local matrix of PythonPart, used for the local geometry transformation |
Matrix3D()
|
common_props
|
CommonProperties | None
|
Common properties of PythonPart |
None
|
reinforcement
|
list[Any] | None
|
Reinforcement elements for PythonPart |
None
|
attribute_list
|
list[Any] | None
|
Attribute list |
None
|
library_elements
|
list[Any] | None
|
Library elements for PythonPart |
None
|
architecture_elements
|
list[Any] | None
|
Architecture elements for PythonPart |
None
|
label_elements
|
list[Any] | None
|
Label elements |
None
|
fixture_elements
|
list[Any] | None
|
Fixture elements for PythonPart |
None
|
placement_matrix
|
Matrix3D | None
|
Placement matrix of the PythonPart |
None
|
__repr__()
create the element string
Returns:
Type | Description |
---|---|
str
|
element string |
add(view)
Add one view
Parameters:
Name | Type | Description | Default |
---|---|---|---|
view
|
View
|
view |
required |
create()
create the PythonPart
Returns:
Type | Description |
---|---|
list[Any]
|
created elements for the PythonPart |
distortion_state(state)
Set distortion state
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state
|
bool
|
distortion state |
required |
leading_macro(macro_leading)
Set leading macro
Parameters:
Name | Type | Description | Default |
---|---|---|---|
macro_leading
|
bool
|
leading macro state |
required |
reset(views)
Reset views
Parameters:
Name | Type | Description | Default |
---|---|---|---|
views
|
list[View]
|
views |
required |