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.PLACEMENT

STEP Standard ENTITY axis2_placement_2d

Explicit Attributes

Parameters

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.PLACEMENT

STEP Standard ENTITY axis2_placement_3d

Explicit Attributes

Parameters

Derived Attributes

Parameters
  • dim (int) – STEP Standard TYPE dimension_count (INTEGER)

  • p (list of DIRECTION) –

BOOLEAN_to_bool(boolean)[source]
class BOUNDED_CURVE(name)[source]

Bases: pylib.data_step_std.CURVE

STEP 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_CURVE

STEP 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_CURVE

STEP 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.POINT

STEP 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)

__str__()[source]

Return str(self).

class CIRCLE(name, position, radius)[source]

Bases: pylib.data_step_std.CONIC

STEP Standard ENTITY circle

Explicit Attributes

Parameters

Derived Attributes

Parameters

dim (int) – STEP Standard TYPE dimension_count (INTEGER)

class CONIC(name, position)[source]

Bases: pylib.data_step_std.CURVE

STEP Standard ENTITY conic

Explicit Attributes

Parameters

Derived Attributes

Parameters

dim (int) – STEP Standard TYPE dimension_count (INTEGER)

class CURVE(name)[source]

Bases: pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM

STEP 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_ITEM

STEP 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_ITEM

STEP Standard ENTITY edge

Explicit Attributes

Parameters
  • name (str) – STEP Standard TYPE label (STRING)

  • edge_start (VERTEX) – start point

  • edge_end (VERTEX) – end point

class EDGE_CURVE(name, edge_start, edge_end, edge_geometry, same_sense)[source]

Bases: pylib.data_step_std.EDGE

STEP Standard ENTITY edge_curve

Explicit Attributes

Parameters
  • name (str) – STEP Standard TYPE label (STRING)

  • edge_start (VERTEX) – start point

  • edge_end (VERTEX) – end point

  • edge_geometry (CURVE) – curve

  • same_sense (str) – STEP Standard TYPE BOOLEAN

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
  1. 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.

  2. An edge curve has non-zero finite extent.

  3. An edge curve is a manifold.

  4. An edge curve is arcwise connected.

  5. The edge start is not a part of the edge domain.

  6. The edge end is not a part of the edge domain.

  7. 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.LOOP

STEP 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.CONIC

STEP 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_ITEM

STEP 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.CURVE

STEP Standard ENTITY line

Explicit Attributes

Parameters

Derived Attributes

Parameters

dim (int) – STEP Standard TYPE dimension_count (INTEGER)

class LOOP(name)[source]

Bases: pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEM

STEP 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.EDGE

STEP 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

Parameters
  • 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]

class PATH(name, edge_list)[source]

Bases: pylib.data_step_std.TOPOLOGICAL_REPRESENTATION_ITEM

STEP 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_ITEM

STEP 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_ITEM

STEP 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: object

STEP 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_CURVE

STEP 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.CURVE

STEP 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_ITEM

STEP 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_ITEM

STEP 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_ITEM

STEP 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.VERTEX

STEP 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)

__str__()[source]

Return str(self).

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

path_head_to_tail(a_path)[source]

STEP Standard FUNCTION path_head_to_tail

Check if the path is a connected curve set.

Parameters

a_path (PATH) – STEP Standard TYPE path

Returns

p

Return type

object

Variables

p – STEP STEP Standard TYPE LOGICAL