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
AXIS2_PLACEMENT_2D(name, location, ref_direction)[source]¶ Bases:
pylib.data_step_std.PLACEMENTSTEP Standard ENTITY axis2_placement_2d
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
location (CARTESIAN_POINT) –
ref_direction (DIRECTION) –
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
p (list of DIRECTION) –
-
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 (str) – STEP Standard TYPE label (STRING)
location (CARTESIAN_POINT) –
axis (DIRECTION) –
ref_direction (DIRECTION) –
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
p (list of DIRECTION) –
-
class
BOUNDED_CURVE(name)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY bounded_curve
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
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 (str) – STEP Standard TYPE label (STRING)
degree (int) – STEP Standard TYPE INTEGER
control_points_list (tuple) – STEP Standard TYPE LIST OF cartesian_point (ENTITY)
curve_form (str) – STEP Standard TYPE b_spline_curve_form (ENUM). ENUMERATION OF (polyline_form, circular_arc, elliptic_arc, parabolic_arc, hyperbolic_arc, unspecified).
closed_curve (str) – STEP Standard TYPE LOGICAL
self_intersect (str) – STEP Standard TYPE LOGICAL
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
upper_index_on_control_points (int) – STEP Standard TYPE INTEGER
control_points (tuple) – STEP Standard TYPE ARRAY OF cartesian_point (ENTITY)
-
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 (str) – STEP Standard TYPE label (STRING)
degree (int) – STEP Standard TYPE INTEGER
control_points_list (tuple) – STEP Standard TYPE LIST OF cartesian_point (ENTITY)
curve_form (str) – STEP Standard TYPE b_spline_curve_form (ENUM). ENUMERATION OF (polyline_form, circular_arc, elliptic_arc, parabolic_arc, hyperbolic_arc, unspecified).
closed_curve (str) – STEP Standard TYPE LOGICAL
self_intersect (str) – STEP Standard TYPE LOGICAL
knot_multiplicities (tuple) – STEP Standard TYPE LIST OF INTEGER
knots (tuple) – STEP Standard TYPE LIST OF parameter_value (REAL)
knot_spec (str) – STEP Standard TYPE knot_type (ENUM). ENUMERATION OF (uniform_knots, quasi_uniform_knots, piecewise_bezier_knots, unspecified).
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
upper_index_on_control_points (int) – STEP Standard TYPE INTEGER
control_points (tuple) – STEP Standard TYPE ARRAY OF cartesian_point (ENTITY)
upper_index_on_knots (int) – STEP Standard TYPE INTEGER
-
class
CARTESIAN_POINT(name, coordinates)[source]¶ Bases:
pylib.data_step_std.POINTSTEP Standard ENTITY cartesian_point
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
coordinates (tuple) – list of length_measure (floats)
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
CIRCLE(name, position, radius)[source]¶ Bases:
pylib.data_step_std.CONICSTEP Standard ENTITY circle
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
position (AXIS2_PLACEMENT_2D or AXIS2_PLACEMENT_3D) – axis2_placement
radius (float) – positive_length_measure
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
CONIC(name, position)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY conic
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
position (AXIS2_PLACEMENT_2D or AXIS2_PLACEMENT_3D) – axis2_placement
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
CURVE(name)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY curve
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
DIRECTION(name, direction_ratios)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY direction
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
direction_ratios (tuple) – STEP Standard LIST OF REAL
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
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
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
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 (str) – STEP Standard TYPE label (STRING)
edge_list (tuple) – STEP Standard TYPE LIST OF oriented_edge (ENTITY)
-
class
ELLIPSE(name, position, semi_axis_1, semi_axis_2)[source]¶ Bases:
pylib.data_step_std.CONICSTEP Standard ENTITY ellipse
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
position (AXIS2_PLACEMENT_2D or AXIS2_PLACEMENT_3D) – STEP Standard TYPE axis2_placement (SELECT)
semi_axis_1 (float) – STEP Standard TYPE positive_length_measure (REAL)
semi_axis_2 (float) – STEP Standard TYPE positive_length_measure (REAL)
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
GEOMETRIC_REPRESENTATION_ITEM(name)[source]¶ Bases:
pylib.data_step_std.REPRESENTATION_ITEMSTEP Standard ENTITY geometric_representation_item
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
LINE(name, pnt, dir)[source]¶ Bases:
pylib.data_step_std.CURVESTEP Standard ENTITY line
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
pnt (CARTESIAN_POINT) –
dir (VECTOR) –
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
LOOP(name)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY loop
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
-
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
name (str) – STEP Standard TYPE label (STRING)
edge_start (VERTEX) – STEP Standard TYPE vertex (ENTITY) [re-declared attribute from edge]
edge_end (VERTEX) – STEP Standard TYPE vertex (ENTITY) [re-declared attribute from edge]
edge_element (EDGE) – STEP Standard TYPE edge (ENTITY)
orientation (str) – STEP Standard TYPE BOOLEAN
Derived Attributes
-
class
PATH(name, edge_list)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY path
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
edge_list (tuple) – STEP Standard TYPE LIST OF oriented_edge (ENTITY)
-
class
PLACEMENT(name, location)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY placement
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
location (CARTESIAN_POINT) –
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
POINT(name)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY point
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
REPRESENTATION_ITEM(name)[source]¶ Bases:
objectSTEP Standard ENTITY representation_item
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
Additional attributes
- Variables
idn (int) – 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 (str) – STEP Standard TYPE label (STRING)
curve_3d (CURVE) –
associated_geometry (list of pcurve_or_surface) –
master_representation (preferred_surface_curve_representation) –
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
basis_surface (SET OF surface) –
-
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 (str) – STEP Standard TYPE label (STRING)
curve_3d (CURVE) –
associated_geometry (list of pcurve_or_surface) –
master_representation (preferred_surface_curve_representation) –
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
basis_surface (SET OF surface) –
-
class
TOPOLOGICAL_REPRESENTATION_ITEM(name)[source]¶ Bases:
pylib.data_step_std.REPRESENTATION_ITEMSTEP Standard ENTITY topological_representation_item
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
-
class
VECTOR(name, orientation, magnitude)[source]¶ Bases:
pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEMSTEP Standard ENTITY vector
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
orientation (DIRECTION) –
magnitude (float) – length_measure
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
class
VERTEX(name)[source]¶ Bases:
pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEMSTEP Standard ENTITY vertex
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
-
class
VERTEX_POINT(name, vertex_geometry)[source]¶ Bases:
pylib.data_step_std.VERTEXSTEP Standard ENTITY vertex_point
Explicit Attributes
- Parameters
name (str) – STEP Standard TYPE label (STRING)
vertex_geometry (POINT) – point
Derived Attributes
- Parameters
dim (int) – STEP Standard TYPE dimension_count (INTEGER)
-
boolean_choose(b, choice1, choice2)[source]¶ STEP Standard FUNCTION boolean_choose
- Parameters
b (bool) – STEP Standard TYPE BOOLEAN
choice1 (object) – STEP Standard TYPE GENERIC
choice2 (object) – STEP Standard TYPE GENERIC
- Returns
STEP STEP Standard TYPE GENERIC
- Return type
object
-
dimension_of(item)[source]¶ STEP Standard FUNCTION dimension_of
- Parameters
item (GEOMETRIC_REPRESENTATION_ITEM) – STEP Standard TYPE GEOMETRIC_REPRESENTATION_ITEM
- Returns
dim
- Return type
int or None
- Variables
dim (int) – STEP Standard TYPE dimension_count (INTEGER). dimension_count > 0
-
list_to_array(lis, low, u)[source]¶ STEP Standard FUNCTION list_to_array
- Parameters
lis (tuple) – STEP Standard TYPE LIST [0:?] OF GENERIC
low (int) – STEP Standard TYPE INTEGER
u (int) – STEP Standard TYPE INTEGER
n (int) – STEP Standard TYPE INTEGER
- Returns
res
- Return type
tuple or None
- Variables
res (tuple) – STEP Standard TYPE ARRAY [low:u] OF GENERIC