List of 3-D Functions
The following functions are available for a working with 3-D models:
active_coor(): WorkingPlane
Returns the active coordinate system.active_part(): Part
Returns the active part.
If you call this function during the calculation of a Design Variant, the part that was active during insertion of the Design Variant will be returned.catalogue_value(table_id: Real, row_id: Real, column: String): Real
cat_val(table_id: Real, row_id: Real, column: String): Real
c_v(table_id: Real, row_id: Real, column: String): Real
Returns a value from the catalogue.table_id
androw_id
refer to the IDs of a table and a row within it;column
indicates the number of the required column. Please pay attention to the correct spelling, i.e. case sensitivity!cat_height(table_id: Real, row_id: Real): Real
c_h(table_id: Real, row_id: Real): Real
Returns the height of a beam/profile from the catalogue. This function is independent from the column name for the height in the catalogue.table_id
undrow_id
refer to the IDs of a table and the row in it.cat_item_id(table: String, Search filter: List, ...): Real
catalogue_item_id(table: String, Search filter: List, ...): Real
Searches a specific table in the catalogue for the record ID of the first entry that matches all search filters. This function is described in detail here.cat_width(table_id: Real, row_id: Real): Real
c_w(table_id: Real, row_id: Real): Real
Returns the width of a beam/profile from the catalogue. This function is independent from the column name for the width in the catalogue.table_id
undrow_id
refer to the IDs of a table and the row in it.center_of_face(f: Face): Point
Returns the point in the centroid of a facet.central_angle(e: Edge): Real
Returns the oriented aperture angle of a circular arc. The unit of measurement set by the user will be used.distance_points(p1: Point, p2: Point): Real
Returns the distance between 2 points.distance_points_x(p1: Point, p2: Point): Real
distance_points_y(p1: Point, p2: Point): Real
distance_points_z(p1: Point, p2: Point): Real
Returns the distance between 2 points in X-, Y- or Z-direction.distance_point_edge(p: Point, e: Edge): Real
Returns the distance between a point and an edge.distance_edges(e1: Edge, e2: Edge): Real
Returns the distance between 2 edges.distance_edge_face(e: Edge, f: Face): Real
Returns the distance between an edge and a facet.distance_faces(f1: Face, f2: Face): Real
Returns the distance between 2 facets.distance_point_face(p: Point, f: Face): Real
Returns the distance between a point and a facet.edge_length(e: Edge): Real
Returns the length of an edge.edge_radius(e: Edge): Real
Returns the radius of a (circle) edge.edge_diameter(e: Edge): Real
Returns the diameter of a (circle) edge.edges_angle(e1: Edge, e2: Edge): Real
Determines the angle between 2 edges and returns it with the unit of measurement set by the user.edge_x_angle(e: Edge): Real
edge_y_angle(e: Edge): Real
edge_z_angle(e: Edge): Real
Determines the angle between einer Kante und der X-, Y- oder Z-Achse and returns it with the unit of measurement set by the user.edge_face_angle(e: Edge, f: Face): Real
Determines the angle between an edge and a facet and returns it with the unit of measurement set by the user.faces_angle(f1: Face, f2: Face): Real
Determines the angle between two facets and returns it with the unit of measurement set by the user.first_face_of_faces(f: Faces): Face
Returns the first facet of a facet list.main_part(): Part
If you want to insert a part as the main part in an inserted Design Variant, use this function as the formula for the assembly.middle_of_edge(e: Edge): Point
Returns the mid-point of an edge.parent_part(p: Part): Part
Returns the part/assembly to which the given part belongs.part_of_edge(e: Edge): Part
Returns the part to which the given edge belongs.part_of_face(f: Face): Part
Returns the part to which the given facet belongs.points_angle(p1: Point, apex: Point, p2: Point): Real
Returns the angle between the linesp1
andapex
and betweenp2
andapex
with the unit of measurement set by the user.profile_tableid(p: Profile): Real
Returns the Table ID of the beam/profile.profile_itemid(p: Profile): Real
Returns the Row ID of the beam/profile.