pylib.data_step_std module¶
STEP Standard structure.
- Date
2020-01-03
See also
STEP, ISO 10303-21, AP 232 (Application Protocol) http://www.steptools.com/stds/step/ and https://www.steptools.com/stds/stp_aim/html/schema.html
ISO 10303-21:2002. Industrial automation systems and integration – Product data representation and exchange – Part 21: Implementation methods: Clear text encoding of the exchange structure
ISO 10303-21:2016. Industrial automation systems and integration – Product data representation and exchange – Part 21: Implementation methods: Clear text encoding of the exchange structure
-
class
ARRAY[source]¶ Bases:
tupleEXPRESS Type ARRAY
ARRAY are ordered. An ARRAY is the only aggregate that may contain unset members.
- Parameters
value (str) – value
dtype –
- Return type
tuple
-
class
AXIS2_PLACEMENT_2D(name, location, ref_direction)[source]¶ Bases:
pylib.data_step_std.PLACEMENTSTEP Standard ENTITY axis2_placement_2d
Explicit Attributes
- Parameters
name (STRING) – label
location (CARTESIAN_POINT) –
ref_direction (DIRECTION) –
Derived Attributes
-
class
AXIS2_PLACEMENT_3D(name, location, axis, ref_direction)[source]¶ Bases:
pylib.data_step_std.PLACEMENTSTEP Standard ENTITY axis2_placement_3d
Explicit Attributes
- Parameters
name (STRING) – label
location (CARTESIAN_POINT) –
axis (DIRECTION) –
ref_direction (DIRECTION) –
Derived Attributes
-
BOOLEAN(value)[source]¶ EXPRESS Type BOOLEAN with values TRUE and FALSE
- Parameters
value (str) – either
.T.for a True value or.F.for a False value- Raises
TypeError
-
class
BOUNDED_CURVE(name)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY bounded_curve
Explicit Attributes
- Parameters
name (STRING) – label
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
B_SPLINE_CURVE(name, degree, control_points_list, curve_form, closed_curve, self_intersect)[source]¶ Bases:
pylib.data_step_std.BOUNDED_CURVESTEP Standard ENTITY b_spline_curve
Explicit Attributes
- Parameters
name (STRING) – label
degree (INTEGER) –
control_points_list (LIST[CARTESIAN_POINT, ..]) –
curve_form (B_SPLINE_CURVE_FORM) –
closed_curve (LOGICAL) –
self_intersect (LOGICAL) –
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
upper_index_on_control_points (INTEGER) –
control_points (ARRAY[CARTESIAN_POINT, ..]) –
-
class
B_SPLINE_CURVE_FORM[source]¶ Bases:
enum.EnumSTEP Standard TYPE b_spline_curve_form
ENUMERATION OF (polyline_form, circular_arc, elliptic_arc, parabolic_arc, hyperbolic_arc, unspecified).
- Variables
-
CIRCULAR_ARC= 2¶
-
ELLIPTIC_ARC= 3¶
-
HYPERBOLIC_ARC= 5¶
-
PARABOLIC_ARC= 4¶
-
POLYLINE_FORM= 1¶
-
UNSPECIFIED= 6¶
-
class
B_SPLINE_CURVE_WITH_KNOTS(name, degree, control_points_list, curve_form, closed_curve, self_intersect, knot_multiplicities, knots, knot_spec)[source]¶ Bases:
pylib.data_step_std.B_SPLINE_CURVESTEP Standard ENTITY b_spline_curve_with_knots
Explicit Attributes
- Parameters
name (STRING) – label
degree (INTEGER) –
control_points_list (LIST[CARTESIAN_POINT, ..]) –
curve_form (B_SPLINE_CURVE_FORM) –
closed_curve (LOGICAL) –
self_intersect (LOGICAL) –
knots (LIST[REAL, ..]) – STEP Standard TYPE LIST OF parameter_value (REAL)
knot_spec (KNOT_TYPE) –
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
upper_index_on_control_points (INTEGER) –
control_points (ARRAY[CARTESIAN_POINT, ..]) –
upper_index_on_knots (INTEGER) –
-
class
CARTESIAN_POINT(name, coordinates)[source]¶ Bases:
pylib.data_step_std.POINTSTEP Standard ENTITY cartesian_point
Explicit Attributes
- Parameters
name (STRING) – label
coordinates (tuple[float, ..]) – list of length_measure
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
CIRCLE(name, position, radius)[source]¶ Bases:
pylib.data_step_std.CONICSTEP Standard ENTITY circle
Explicit Attributes
- Parameters
name (STRING) – label
position (Union[AXIS2_PLACEMENT_2D, AXIS2_PLACEMENT_3D]) – axis2_placement
radius (REAL) – positive_length_measure
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
CONIC(name, position)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY conic
Explicit Attributes
- Parameters
name (STRING) – label
position (Union[AXIS2_PLACEMENT_2D, AXIS2_PLACEMENT_3D]) – axis2_placement
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
CURVE(name)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY curve
Explicit Attributes
- Parameters
name (STRING) – label
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
DIRECTION(name, direction_ratios)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY direction
Explicit Attributes
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
EDGE(name, edge_start, edge_end)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY edge
Explicit Attributes
-
class
EDGE_CURVE(name, edge_start, edge_end, edge_geometry, same_sense)[source]¶ Bases:
pylib.data_step_std.EDGESTEP Standard ENTITY edge_curve
Explicit Attributes
- Parameters
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
Definition from ISO/CD 10303-42:1992: An edge curve is a special subtype of edge which has its geometry fully defined. The geometry is defined by associating the edge with a curve which may be unbounded. As the topological and geometric directions may be opposed, an indicator (same sense) is used to identify whether the edge and curve directions agree or are opposed. The Boolean value indicates whether the curve direction agrees with (TRUE) or is in the opposite direction (FALSE) to the edge direction. Any geometry associated with the vertices of the edge shall be consistent with the edge geometry.
- Informal propositions
The domain of the edge curve is formally defined to be the domain of its edge geometry as trimmed by the vertices. This domain does not include the vertices.
An edge curve has non-zero finite extent.
An edge curve is a manifold.
An edge curve is arcwise connected.
The edge start is not a part of the edge domain.
The edge end is not a part of the edge domain.
Vertex geometry shall be consistent with edge geometry.
- Attribute definitions
- EdgeGeometry
The curve which defines the shape and spatial location of the edge. This curve may be unbounded and is implicitly trimmed by the vertices of the edge; this defines the edge domain. Multiple edges can reference the same curve.
- SameSense
This logical flag indicates whether (TRUE), or not (FALSE) the senses of the edge and the curve defining the edge geometry are the same. The sense of an edge is from the edge start vertex to the edge end vertex; the sense of a curve is in the direction of increasing parameter.
-
class
EDGE_LOOP(name, edge_list)[source]¶ Bases:
pylib.data_step_std.PATH,pylib.data_step_std.LOOPSTEP Standard ENTITY edge_loop
Explicit Attributes
- Parameters
name (STRING) – label
edge_list (LIST[ORIENTED_EDGE, ..]) –
-
class
ELLIPSE(name, position, semi_axis_1, semi_axis_2)[source]¶ Bases:
pylib.data_step_std.CONICSTEP Standard ENTITY ellipse
Explicit Attributes
- Parameters
name (STRING) – label
position (Union[AXIS2_PLACEMENT_2D, AXIS2_PLACEMENT_3D]) – STEP Standard TYPE axis2_placement (SELECT)
semi_axis_1 (REAL) – positive_length_measure
semi_axis_2 (REAL) – positive_length_measure
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
GEOMETRIC_REPRESENTATION_ITEM(name)[source]¶ Bases:
pylib.data_step_std.REPRESENTATION_ITEMSTEP Standard ENTITY geometric_representation_item
Explicit Attributes
- Parameters
name (STRING) – label
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
INTEGER[source]¶ Bases:
intEXPRESS Type INTEGER
EXPRESS integers can have in principle any length, but most implementations restricted them to a signed 32 bit value.
-
class
KNOT_TYPE[source]¶ Bases:
enum.EnumSTEP Standard TYPE knot_type
ENUMERATION OF (uniform_knots, quasi_uniform_knots, piecewise_bezier_knots, unspecified).
- Variables
-
PIECEWISE_BEZIER_KNOTS= 3¶
-
QUASI_UNIFORM_KNOTS= 2¶
-
UNIFORM_KNOTS= 1¶
-
UNSPECIFIED= 4¶
-
class
LINE(name, pnt, dir)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY line
Explicit Attributes
- Parameters
name (STRING) – label
pnt (CARTESIAN_POINT) –
dir (VECTOR) –
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
LIST[source]¶ Bases:
tupleEXPRESS Type LIST
LIST are ordered. It is not possible to contain unset members.
- Parameters
value (str) – value
dtype –
- Return type
tuple
-
LOGICAL(value)[source]¶ EXPRESS Type LOGICAL with values TRUE and FALSE and in addition UNKNOWN
- Parameters
value (str) – either
.T.for a True value or.F.for a False value
-
class
LOOP(name)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY loop
Explicit Attributes
- Parameters
name (STRING) – label
-
class
ORIENTED_EDGE(name, edge_start, edge_end, edge_element, orientation)[source]¶ Bases:
pylib.data_step_std.EDGESTEP Standard ENTITY oriented_edge
Explicit Attributes
- Parameters
Derived Attributes
-
class
PATH(name, edge_list)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY path
Explicit Attributes
- Parameters
name (STRING) – label
edge_list (LIST[ORIENTED_EDGE, ..]) –
-
class
PLACEMENT(name, location)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY placement
Explicit Attributes
- Parameters
name (STRING) – label
location (CARTESIAN_POINT) –
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
POINT(name)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY point
Explicit Attributes
- Parameters
name (STRING) – label
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
PREFERRED_SURFACE_CURVE_REPRESENTATION[source]¶ Bases:
enum.EnumSTEP Standard TYPE b_spline_curve_form
-
CURVE_3D= 1¶
-
PCURVE_S1= 2¶
-
PCURVE_S2= 3¶
-
-
class
REAL[source]¶ Bases:
floatEXPRESS Type REAL
Ideally an EXPRESS real value is unlimited in accuracy and size. But in practice a real value is represented by a floating point value of type double.
-
class
REPRESENTATION_ITEM(name)[source]¶ Bases:
objectSTEP Standard ENTITY representation_item
Explicit Attributes
- Parameters
name (STRING) – label
Additional attributes
- Variables
idn (int <<additional>>) – for the instance the instance id and for the class the total number of instances
-
idn= 0¶
-
class
SEAM_CURVE(name, curve_3d, associated_geometry, master_representation)[source]¶ Bases:
pylib.data_step_std.SURFACE_CURVESTEP Standard ENTITY seam_curve
Explicit Attributes
- Parameters
name (STRING) – label
curve_3d (CURVE) –
associated_geometry (LIST[Union[PCURVE, SURFACE], ..]) – STEP Standard TYPE LIST OF pcurve_or_surface (SELECT) <<TODO>>
master_representation (PREFERRED_SURFACE_CURVE_REPRESENTATION) – <<TODO>>
Derived Attributes
-
class
SET[source]¶ Bases:
setEXPRESS Type SET
SET are unordered. Contain a particular value more than once, is not allowed. It is not possible to contain unset members.
- Parameters
value (str) – value
dtype –
- Return type
set
-
class
STRING[source]¶ Bases:
strEXPRESS Type STRING
This is the most often used simple type. EXPRESS strings can be of any length and can contain any character (ISO 10646/Unicode).
-
class
SURFACE_CURVE(name, curve_3d, associated_geometry, master_representation)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY surface_curve
Explicit Attributes
- Parameters
name (STRING) – label
curve_3d (CURVE) –
associated_geometry (LIST[Union[PCURVE, SURFACE], ..]) – STEP Standard TYPE LIST OF pcurve_or_surface (SELECT) <<TODO>>
master_representation (PREFERRED_SURFACE_CURVE_REPRESENTATION) – <<TODO>>
Derived Attributes
-
class
TOPOLOGICAL_REPRESENTATION_ITEM(name)[source]¶ Bases:
pylib.data_step_std.REPRESENTATION_ITEMSTEP Standard ENTITY topological_representation_item
Explicit Attributes
- Parameters
name (STRING) – label
-
class
VECTOR(name, orientation, magnitude)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY vector
Explicit Attributes
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
class
VERTEX(name)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY vertex
Explicit Attributes
- Parameters
name (STRING) – label
-
class
VERTEX_POINT(name, vertex_geometry)[source]¶ Bases:
pylib.data_step_std.VERTEXSTEP Standard ENTITY vertex_point
Explicit Attributes
Derived Attributes
- Variables
dim (INTEGER) – dimension_count
-
dimension_of(item)[source]¶ STEP Standard FUNCTION dimension_of
- Parameters
item (GEOMETRIC_REPRESENTATION_ITEM) –
- Returns
dim
- Return type
Union[int, None]
- Variables
dim (INTEGER) – dimension_count dimension_count > 0