nxopentse.cad package

Submodules

nxopentse.cad.code module

class nxopentse.cad.code.MassProps3d(surface_area: float = 0.0, volume: float = 0.0, mass: float = 0.0, center_of_mass: List[float] | None = None, first_moments: List[float] | None = None, moments_of_inertia_wcs: List[float] | None = None, moments_of_inertia_centroidal: List[float] | None = None, spherical_moment_of_inertia: float = 0.0, inertia_products_wcs: List[float] | None = None, inertia_products_centroidal: List[float] | None = None, principal_axes_wcs: List[float] | None = None, principal_moments_centroidal: List[float] | None = None, radii_of_gyration_wcs: List[float] | None = None, radii_of_gyration_centroidal: List[float] | None = None, spherical_radius_of_gyration: float = 0.0, density: float = 0.0)

Bases: object

Object to store the mass properties of a body and easily access and compare them.

nxopentse.cad.code.bisector_multiple_planes(planes: List[NXOpen.Features.DatumPlaneFeature]) List[NXOpen.Features.DatumPlaneFeature]

Create bisector planes between each pair of planes in the list.

Parameters:

planes (List[NXOpen.Features.DatumPlaneFeature]) – The list of datum planes.

Returns:

The list of datum plane features, from which the datum planes can be retrieved.

Return type:

List[NXOpen.Features.DatumPlaneFeature]

Notes

nxopentse.cad.code.create_bisector_datum_plane(datum_plane1: NXOpen.DatumPlane, datum_plane2: NXOpen.DatumPlane, work_part: NXOpen.Part = None) NXOpen.Features.DatumPlaneFeature

Create a datum plane bisecting two datum planes.

Parameters:
  • datum_plane1 (NXOpen.DatumPlane) – The first datum plane.

  • datum_plane2 (NXOpen.DatumPlane) – The second datum plane.

  • work_part (NXOpen.Part, optional) – The part in which to create the datum plane. Defaults to work part.

Returns:

The created datum plane feature, from which the datum plane can be retrieved.

Return type:

NXOpen.Features.DatumPlaneFeature

Notes

nxopentse.cad.code.create_bounding_box(workPart: NXOpen.Part, bodies: List[NXOpen.Body], sheet_bodies: bool = False) NXOpen.Features.ToolingBox

Create a bounding box around the given bodies. For sheet bodies, 1mm is added to the box size in all directions, positive and negative. Thus the box size needs to be subtracted by 2mm to get the correct size.

Parameters:
  • workPart (NXOpen.Part) – The part in which to create the bounding box.

  • bodies (List[NXOpen.Body]) – The bodies for which to create the bounding box.

  • sheet_bodies (bool, optional) – If the bodies are sheet bodies. Defaults to False.

Returns:

The created bounding box feature.

Return type:

NXOpen.Features.ToolingBox

Notes

For sheet bodies, 1mm is added to the box size in all directions, positive and negative. Thus the box size needs to be subtracted by 2mm to get the correct size. Tested in Simcenter 2312

nxopentse.cad.code.create_cylinder_between_two_points(point1: NXOpen.Point, point2: NXOpen.Point, diameter: float, length: float, work_part: NXOpen.Part = None) NXOpen.Features.Cylinder

Create a cylinder between two points.

Parameters:
  • point1 (NXOpen.Point) – The first point.

  • point2 (NXOpen.Point) – The second point.

  • diameter (float) – The diameter of the cylinder.

  • length (float) – The length of the cylinder.

  • work_part (NXOpen.Part, optional) – The part in which to create the cylinder. Defaults to work part.

Returns:

The created cylinder feature.

Return type:

NXOpen.Features.Cylinder

Notes

Tested in Simcenter 2212

nxopentse.cad.code.create_datum_at_distance(plane: NXOpen.DatumPlane, distance: float, work_part: NXOpen.Part = None) NXOpen.Features.DatumPlaneFeature

Create a new datum plane at a specified distance from an existing datum plane.

Parameters:
  • plane (NXOpen.DatumPlane) – The reference datum plane from which to create the offset plane.

  • distance (float) – The distance at which to create the new datum plane from the reference plane.

  • work_part (NXOpen.Part, optional) – The part in which to create the datum plane. If None, uses the current work part.

Returns:

The created datum plane feature.

Return type:

NXOpen.Features.DatumPlaneFeature

Notes

The function creates a datum plane using the Distance method, which positions the new plane parallel to the reference plane at the specified distance. The plane is not flipped and the positive side of the plane is preserved (not reversed).

nxopentse.cad.code.create_datum_axis(vector: NXOpen.Vector3d, point: NXOpen.Point3d = None, work_part: NXOpen.Part = None) NXOpen.Features.DatumAxisFeature

Create a datum axis. through a point with a given vector.

Parameters:
  • vector (NXOpen.Vector3d) – The vector of the axis.

  • point (NXOpen.Point3d, optional) – The point through which the axis should go. Defaults to the origin.

  • work_part (NXOpen.Part, optional) – The part in which to create the datum axis. Defaults to work part.

Returns:

The created datum axis feature, from which the datum axis can be retrieved.

Return type:

NXOpen.Features.DatumAxisFeature

Notes

nxopentse.cad.code.create_datum_plane_on_planar_face(face: NXOpen.Face, work_part: NXOpen.Part = None) NXOpen.Features.DatumPlaneFeature

Create a datum plane on a planar face.

Parameters:
  • face (NXOpen.Face) – The face on which to create the datum plane.

  • work_part (NXOpen.Part, optional) – The part in which to create the datum plane. Defaults to work part.

Returns:

The created datum plane feature, from which the datum plane can be retrieved.

Return type:

NXOpen.Features.DatumPlaneFeature

Notes

nxopentse.cad.code.create_intersect_feature(body1: NXOpen.Body, body2: NXOpen.Body, work_part: NXOpen.Part = None) NXOpen.Features.BooleanFeature

Create an intersect feature between two bodies.

Parameters:
  • body1 (NXOpen.Body) – The first body.

  • body2 (NXOpen.Body) – The second body.

  • work_part (NXOpen.Part, optional) – The part in which to perform the intersection. Defaults to work part.

Returns:

The created intersect feature.

Return type:

NXOpen.Features.BooleanFeature

Notes

Tested in Simcenter 2212

nxopentse.cad.code.create_line_between_two_points(point1: NXOpen.Point, point2: NXOpen.Point, work_part: NXOpen.Part = None) NXOpen.Features.AssociativeLine

Create a line between two points.

Parameters:
  • point1 (NXOpen.Point) – The first point.

  • point2 (NXOpen.Point) – The second point.

  • work_part (NXOpen.Part, optional) – The part for in which to create the line. Defaults to work part.

Returns:

The created line feature.

Return type:

NXOpen.Features.AssociativeLine

Notes

Tested in Simcenter 2212

nxopentse.cad.code.create_non_timestamp_point(x_co: float, y_co: float, z_co: float, color: int = 134, work_part: NXOpen.Part = None) NXOpen.Point

Create a point at the specified coordinates.

Parameters:
  • base_part (NXOpen.BasePart) – The base part where the point will be created.

  • x_co (float) – The x-coordinate of the point.

  • y_co (float) – The y-coordinate of the point.

  • z_co (float) – The z-coordinate of the point.

  • color (int, optional) – The color to give the point.

  • work_part (NXOpen.Part, optional) – The part in which to create the point. Defaults to work part.

Returns:

The created point.

Return type:

NXOpen.Point3d

nxopentse.cad.code.create_non_timestamp_points(coordinates: List[List[float]], color: int = 134, work_part: NXOpen.Part = None) List[NXOpen.Point]

Create points at the specified coordinates.

Parameters:
  • coordinates (List[List[float]]) – A list with coordinates. Each coordinate is a list with three floats.

  • color (int, optional) – The color to give the point.

  • work_part (NXOpen.Part, optional) – The part in which to create the point. Defaults to work part.

Returns:

The created points.

Return type:

List[NXOpen.Point3d]

Notes

This function is much faster than looping over create_point() for each point, because it only updates the part once, after all points are created. Tested in Simcenter 2312

nxopentse.cad.code.create_point(x_co: float, y_co: float, z_co: float, work_part: NXOpen.Part = None) NXOpen.Features.PointFeature

Creates an point at the specified coordinates.

Parameters:
  • x_co (float) – The x-coordinate of the point in global coordinates in millimeter.

  • y_co (float) – The y-coordinate of the point in global coordinates in millimeter.

  • z_co (float) – The z-coordinate of the point in global coordinates in millimeter.

  • work_part (NXOpen.Part, optional) – The part in which to create the point. Defaults to work part.

Returns:

The point feature. Use the GetEntities() method to get the point.

Return type:

NXOpen.Features.PointFeature

Notes

Tested in Simcenter 2306

nxopentse.cad.code.create_spline_through_points(points: List[NXOpen.Point], work_part: NXOpen.Part = None) NXOpen.Features.StudioSpline

Create a spline through the given points.

Parameters:
  • points (List[NXOpen.Point]) – The points through which the spline should go.

  • work_part (NXOpen.Part, optional) – The part in which to create the spline. Defaults to work part.

Returns:

The created spline feature, from which the spline can be retrieved.

Return type:

NXOpen.Features.StudioSpline

Notes

nxopentse.cad.code.delete_feature(feature_to_delete: NXOpen.Features.Feature) None

Delete a feature.

Parameters:

feature_to_delete (NXOpen.Features.Feature) – The first point.

Notes

Tested in Simcenter 2212

nxopentse.cad.code.divide_face_with_curve(face: NXOpen.Face, curve_feature: NXOpen.Features.CurveFeature, name: str = None, work_part: NXOpen.Part = None) NXOpen.Features.Divideface

Divide a face using a curve feature.

Creates a divide face feature by projecting a curve onto the selected face. The projection uses the face normal as the projection direction.

Parameters:
  • face (NXOpen.Face) – The face to be divided.

  • curve_feature (NXOpen.Features.CurveFeature) – The curve feature used to divide the face.

  • name (str, optional) – Name to assign to the created feature. If None, the default name is used.

  • work_part (NXOpen.Part, optional) – The part in which to create the feature. If None, uses the current work part.

Returns:

The created divide face feature.

Return type:

NXOpen.Features.Divideface

Notes

The function sets an offset distance formula of “5” and uses the face normal as the projection direction. It creates a section containing only curves for the dividing operation.

nxopentse.cad.code.get_all_bodies_in_part(work_part: NXOpen.Part = None) List[NXOpen.Body]

Get all the bodies in the work part.

Parameters:

work_part (NXOpen.Part, optional) – The part for which to get all bodies. Defaults to work part.

Returns:

A list of all the bodies in the work part.

Return type:

List[NXOpen.Body]

Notes

Tested in Simcenter 2212

nxopentse.cad.code.get_all_features(work_part: NXOpen.Part = None) List[NXOpen.Features.Feature]

Get all the features in the work part.

Parameters:

work_part (NXOpen.Part, optional) – The part for which to get all features. Defaults to work part.

Returns:

A list of all the features in the work part.

Return type:

List[NXOpen.Features.Feature]

nxopentse.cad.code.get_all_point_features(work_part: NXOpen.Part = None) List[NXOpen.Features.PointFeature]

Get all the point features in the work part.

Parameters:

work_part (NXOpen.Part, optional) – The part for which to get all features. Defaults to work part.

Returns:

A list of all the point features in the work part.

Return type:

List[NXOpen.Features.PointFeature]

nxopentse.cad.code.get_all_points(work_part: NXOpen.Part = None) List[NXOpen.Point]

Get all the points in the work part.

Parameters:

work_part (NXOpen.Part, optional) – The part for which to get all bodies. Defaults to work part.

Returns:

A list of all the points in the work part.

Return type:

List[NXOpen.Point]

nxopentse.cad.code.get_all_vertices_in_body(body: NXOpen.Body) List[NXOpen.Point3d]

Get all the unique vertices in a body. Vertices shared by multiple edges are only counted once.

Parameters:

body (NXOpen.Body) – The body to get the vertices of.

Returns:

A list of all the unique vertices in the body.

Return type:

List[NXOpen.Point3d]

nxopentse.cad.code.get_area_faces_with_color(bodies: List[NXOpen.Body], color: int, work_part: NXOpen.Part = None) float

Get the total area of faces with a specific color in a list of bodies.

Parameters:
  • bodies (List[NXOpen.Body]) – The list of bodies.

  • color (int) – The color.

Returns:

The total area of faces, for all the bodies, (in mm2), with the specified color.

Return type:

float

Notes

Tested in Simcenter 2212

nxopentse.cad.code.get_axes_of_coordinate_system(coordinate_system_feature: NXOpen.Features.DatumCsys, work_part: NXOpen.Part = None) List[NXOpen.DatumAxis]

Get the axes of a coordinate system.

Parameters:
  • coordinate_system_feature (NXOpen.Features.DatumCsys) – The coordinate system feature for which to get the axes.

  • work_part (NXOpen.Part, optional) – The part in which to get the axes. Defaults to work part.

Returns:

A list of the axes of the coordinate system.

Return type:

List[NXOpen.DatumAxis]

Notes

nxopentse.cad.code.get_body_properties(body: NXOpen.Body) MassProps3d

Get the properties of a body In METER and KG!!!!

Parameters:

body (NXOpen.Body) – The body to get the properties of.

Returns:

A MassProps3d object with the properties of the body.

Return type:

MassProps3d

Notes

This is based on the GUI funcionality of getting the properties of a body. Tested in Simcenter 2406

nxopentse.cad.code.get_distance_between_planes(plane1: NXOpen.DatumPlane, plane2: NXOpen.DatumPlane) float

Calculate the shortest distance between two datum planes.

Parameters:
  • plane1 (NXOpen.DatumPlane) – The first datum plane.

  • plane2 (NXOpen.DatumPlane) – The second datum plane.

Returns:

The shortest distance between the two planes.

Return type:

float

Notes

The function calculates the distance by: 1. Finding the vector between the origins of the two planes 2. Computing the dot product of this vector with the normal of the first plane 3. Dividing by the magnitude of the normal vector 4. Taking the absolute value of the result

nxopentse.cad.code.get_distance_to_plane(point: NXOpen.Point | NXOpen.Point3d, plane: NXOpen.DatumPlane) float

Calculate the shortest distance from a point to a datum plane.

Parameters:
  • point (Union[NXOpen.Point3d, NXOpen.Point]) – The point for which to calculate distance. Can be either a Point3d or Point object.

  • plane (NXOpen.DatumPlane) – The datum plane to which the distance is calculated.

Returns:

The shortest distance from the point to the plane.

Return type:

float

Raises:

ValueError – If the point parameter is neither a Point3d nor a Point object.

Notes

The function calculates the distance by: 1. Creating a vector from the plane’s origin to the point 2. Computing the dot product of this vector with the plane’s normal vector 3. Dividing by the magnitude of the normal vector 4. Taking the absolute value of the result

nxopentse.cad.code.get_face_properties(face: NXOpen.Face, work_part: NXOpen.Part = None) Tuple[float, float, float, NXOpen.Point3d, float, float, NXOpen.Point3d, bool]

Get the properties of a face.

Parameters:
  • face (NXOpen.Face) – The face for which to get the properties.

  • work_part (NXOpen.Part, optional) – The part in which to perform the measurement. Defaults to work part.

Returns:

A tuple with the following values: - Area (in mm2) - Perimeter (in mm) - Radius or Diameter (in mm) - Center of Gravity (in mm) - Minimum Radius of Curvature (in mm) - Area Error Estimate (in mm2) - Anchor Point (in mm) - Is Approximate (bool)

Return type:

Tuple[float, float, float, NXOpen.Point3d, float, float, NXOpen.Point3d, bool]

Notes

nxopentse.cad.code.get_faces_of_body(body: NXOpen.Body) List[NXOpen.Face]

Get all the faces of a body.

Parameters:

body (NXOpen.Body) – The body.

Returns:

A list of all the faces of the body.

Return type:

List[NXOpen.Face]

Notes

Tested in Simcenter 2212

nxopentse.cad.code.get_faces_of_type(body: NXOpen.Body, face_type: NXOpen.Face.FaceType) List[NXOpen.Face]

Get all the faces of a specific type from a given body.

Parameters:
  • body (NXOpen.Body) – The body from which to retrieve the faces.

  • face_type (NXOpen.Face.FaceType) – The type of faces to retrieve.

Returns:

A list of faces of the specified type.

Return type:

List[NXOpen.Face]

nxopentse.cad.code.get_faces_with_color(body: NXOpen.Body, color: int) List[NXOpen.Face]

Get all the faces of a body with a specific color.

Parameters:
  • body (NXOpen.Body) – The body.

  • color (int) – The color.

Returns:

A list of all the faces of the body with the specified color.

Return type:

List[NXOpen.Face]

Notes

Tested in Simcenter 2212

nxopentse.cad.code.get_feature_by_name(name: str, work_part: NXOpen.Part = None) List[NXOpen.Features.Feature] | None

Get features with the specified name.

Parameters:
  • name (str) – The name of the feature.

  • work_part (NXOpen.Part, optional) – The part in which to search for the feature. Defaults to work part.

Returns:

A list of features with the specified name, or None if no feature is found.

Return type:

Optional[List[NXOpen.Features.Feature]]

nxopentse.cad.code.get_features_of_type(feature_type: type, work_part: NXOpen.Part = None) List[NXOpen.Features.Feature]

Get all the features of a specified type in the work part.

Parameters:
  • feature_type (type) – The type of feature to search for.

  • work_part (NXOpen.Part, optional) – The part in which to search for features.

Returns:

A list of all the features of the specified type in the work part.

Return type:

List[NXOpen.Features.Feature]

Notes

Tested in Simcenter 2312

nxopentse.cad.code.get_largest_face(faces: List[NXOpen.Face], work_part: NXOpen.Part = None) NXOpen.Face

Get the largest face from a list of faces.

Parameters:

faces (List[NXOpen.Face]) – A list of faces.

Returns:

The largest face.

Return type:

NXOpen.Face

Notes

Tested in NX2412

nxopentse.cad.code.get_named_datum_planes(cad_part: NXOpen.Part) List[NXOpen.DatumPlane]

Searches the part for all datum planes with a name and returns them. Naming a datum plane is done by right-clicking on the plane in the GUI and selecting rename.

Parameters:

cad_part (NXOpen.Part) – The part for which to return the named datum planes.

Returns:

A list with the named datum planes.

Return type:

List[NXOpen.DatumPlane]

Notes

Tested in SC2306

nxopentse.cad.code.get_point_with_feature_name(name: str, work_part: NXOpen.Part = None) NXOpen.Point | None

Get the point associated with the feature name.

Parameters:
  • name (str) – The name of the feature.

  • work_part (NXOpen.Part, optional) – The part in which to look the feature. Defaults to work part.

Returns:

The point associated with the feature name, or None if no point is found.

Return type:

Optional[NXOpen.Point]

Notes

Tested in Simcenter 2212

nxopentse.cad.code.get_smallest_face(faces: List[NXOpen.Face], work_part: NXOpen.Part = None) NXOpen.Face

Get the smallest face from a list of faces.

Parameters:

faces (List[NXOpen.Face]) – A list of faces.

Returns:

The smallest face.

Return type:

NXOpen.Face

Notes

Tested in Simcenter 2212

nxopentse.cad.code.nx_hello()

Print a greeting message to the listing window.

nxopentse.cad.code.pattern_geometry(body: NXOpen.Body, dir: NXOpen.DatumAxis | NXOpen.Vector3d, total_number: int, distance_per_copy: float, work_part: NXOpen.Part = None)

Create a linear pattern of geometry along a specified direction.

Parameters:
  • body (NXOpen.Body) – The body to be patterned.

  • dir (Union[NXOpen.DatumAxis, NXOpen.Vector3d]) – The direction along which to pattern the body. Can be either a datum axis or a vector.

  • total_number (int) – Total number of instances (including the original) to create.

  • distance_per_copy (float) – Distance between consecutive instances of the pattern.

  • work_part (NXOpen.Part, optional) – The part in which to create the pattern. If None, uses the current work part.

Returns:

The created pattern geometry feature.

Return type:

NXOpen.Features.PatternGeometry

Raises:

ValueError – If the provided direction is neither a DatumAxis nor a Vector3d.

Notes

When using a Vector3d for direction, the function temporarily creates a point at the origin to establish the direction vector.

nxopentse.cad.code.split_body_with_planes(body: NXOpen.Body, planes: List[NXOpen.Features.DatumPlaneFeature], work_part: NXOpen.Part = None) NXOpen.Features.SplitBody

Split a body using multiple datum plane features.

Creates a split body feature that divides the target body along the specified datum planes.

Parameters:
  • body (NXOpen.Body) – The body to be split.

  • planes (List[NXOpen.Features.DatumPlaneFeature]) – List of datum plane features to use as cutting tools.

  • work_part (NXOpen.Part, optional) – The part in which to perform the operation. If None, uses the current work part.

Returns:

The created split body feature.

Return type:

NXOpen.Features.SplitBody

Notes

The function extracts the DatumPlane objects from the provided DatumPlaneFeature objects and uses them as cutting tools. The function creates and configures the necessary selection collectors for both the target body and the cutting planes.

nxopentse.cad.code.subtract_bodies(target: NXOpen.Body, tool: NXOpen.Body, retain_tool: bool = False, retain_target: bool = True, work_part: NXOpen.Part = None) NXOpen.Features.BooleanFeature

Perform a Boolean subtraction between two bodies.

Subtracts the tool body from the target body using a Boolean operation.

Parameters:
  • target (NXOpen.Body) – The body from which to subtract.

  • tool (NXOpen.Body) – The body to subtract from the target.

  • retain_tool (bool, default=False) – Whether to keep the tool body after the operation.

  • retain_target (bool, default=True) – Whether to keep the target body after the operation.

  • work_part (NXOpen.Part, optional) – The part in which to perform the operation. If None, uses the current work part.

Returns:

The created Boolean feature representing the subtraction operation.

Return type:

NXOpen.Features.BooleanFeature

Notes

The function uses a tolerance of 0.01 units for the Boolean operation. It creates and configures the necessary selection collectors for both the target and tool bodies.

nxopentse.cad.code.subtract_features(target: NXOpen.Features.Feature, tool: NXOpen.Features.Feature, work_part: NXOpen.Part = None, retain_tool: bool = False) NXOpen.Features.BooleanFeature

Perform a Boolean subtraction between two features.

Subtracts the tool feature from the target feature using a Boolean operation.

Parameters:
  • target (NXOpen.Features.Feature) – The feature from which to subtract.

  • tool (NXOpen.Features.Feature) – The feature to subtract from the target.

  • work_part (NXOpen.Part, optional) – The part in which to perform the operation. If None, uses the current work part.

  • retain_tool (bool, default=False) – Whether to keep the tool feature after the operation.

Returns:

The created Boolean feature representing the subtraction operation.

Return type:

NXOpen.Features.BooleanFeature

Notes

The function uses a tolerance of 0.01 units for the Boolean operation. Unlike subtract_bodies, this function works with Feature objects rather than Body objects. It creates and configures the necessary selection collectors for both features.

nxopentse.cad.code.trim_body_with_plane(body: NXOpen.Body, plane: NXOpen.DatumPlane, work_part: NXOpen.Part = None) NXOpen.Features.TrimBody

nxopentse.cad.assemblies module

nxopentse.cad.assemblies.add_parts_to_assembly(parts: List[NXOpen.Part], assembly: NXOpen.Part) None

Add a part to an assembly.

Parameters:
  • part (NXOpen.Part) – The part to add to the assembly.

  • assembly (NXOpen.Part) – The assembly to add the part to.

Notes

Tested in Simcenter 2406

nxopentse.cad.assemblies.create_component_from_bodies(bodies: List[NXOpen.Body], component_name: str, delete_original_bodies: bool = True, add_defining_objects: bool = True, work_part: NXOpen.Part = None) NXOpen.Assemblies.Component

Create a new component from a list of bodies.

Parameters:
  • bodies (List[NXOpen.Body]) – The bodies to be used in the new component.

  • component_name (str) – The name of the new component.

  • delete_original_bodies (bool, optional) – Whether to delete the original bodies. Defaults to True.

  • add_defining_objects (bool, optional) – Whether to add the defining objects. Defaults to True.

  • work_part (NXOpen.Part, optional) – The part to create the component in. Defaults to work part.

Returns:

The new component.

Return type:

NXOpen.Assemblies.Component

Notes

This is based on the GUI funcionality of creating a new component from a set of bodies. Tested in Simcenter 2406

nxopentse.cad.assemblies.get_all_bodies_in_component(component: NXOpen.Assemblies.Component) List[NXOpen.Body]

Get all the bodies in the given component. (thus not the part)

Parameters:

component (NXOpen.Assemblies.Component) – The component for which to get all bodies.

Returns:

A list of all the bodies in the component.

Return type:

List[NXOpen.Body]

Notes

The bodies in the component are not the same as the bodies in the part. As a part be be used multiple times in an assembly. Tested in Simcenter 2312

nxopentse.cad.assemblies.get_all_curves_in_component(component: NXOpen.Assemblies.Component) List[NXOpen.Curve]

Get all the curves in the given component. (thus not the part)

Parameters:

component (NXOpen.Assemblies.Component) – The component for which to get all curves.

Returns:

A list of all the curves in the component.

Return type:

List[NXOpen.Curve]

Notes

The curves in the component are not the same as the curves in the part. As a part be be used multiple times in an assembly. Tested in Simcenter 2312

nxopentse.cad.assemblies.get_all_points_in_component(component: NXOpen.Assemblies.Component) List[NXOpen.Point]

Get all the points in the given component. (thus not the part)

Parameters:

component (NXOpen.Assemblies.Component) – The component for which to get all points.

Returns:

A list of all the points in the component.

Return type:

List[NXOpen.Point]

Notes

The points in the component are not the same as the points in the part. As a part be be used multiple times in an assembly. Tested in Simcenter 2312

Module contents