nxopenkit 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nxopenkit/__init__.py +145 -0
- nxopenkit/__init__.pyi +19 -0
- nxopenkit/core/__init__.py +46 -0
- nxopenkit/core/__init__.pyi +31 -0
- nxopenkit/core/_converters.c +8994 -0
- nxopenkit/core/_converters.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/_converters.pyi +10 -0
- nxopenkit/core/_decorators.c +9508 -0
- nxopenkit/core/_decorators.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/_decorators.pyi +8 -0
- nxopenkit/core/_nxpart.c +31516 -0
- nxopenkit/core/_nxpart.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/_nxpart.pyi +166 -0
- nxopenkit/core/_rules.c +17121 -0
- nxopenkit/core/_rules.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/_rules.pyi +57 -0
- nxopenkit/core/_session.c +8867 -0
- nxopenkit/core/_session.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/_session.pyi +23 -0
- nxopenkit/core/_validators.c +11287 -0
- nxopenkit/core/_validators.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/_validators.pyi +40 -0
- nxopenkit/core/body.c +9465 -0
- nxopenkit/core/body.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/body.pyi +34 -0
- nxopenkit/core/coordinate_system.c +12098 -0
- nxopenkit/core/coordinate_system.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/coordinate_system.pyi +125 -0
- nxopenkit/core/curve.c +11124 -0
- nxopenkit/core/curve.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/curve.pyi +81 -0
- nxopenkit/core/datum_axis.c +9049 -0
- nxopenkit/core/datum_axis.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/datum_axis.pyi +34 -0
- nxopenkit/core/datum_plane.c +8837 -0
- nxopenkit/core/datum_plane.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/datum_plane.pyi +33 -0
- nxopenkit/core/direction.c +17239 -0
- nxopenkit/core/direction.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/direction.pyi +273 -0
- nxopenkit/core/displayable_object.c +9556 -0
- nxopenkit/core/displayable_object.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/displayable_object.pyi +23 -0
- nxopenkit/core/edge.c +10337 -0
- nxopenkit/core/edge.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/edge.pyi +83 -0
- nxopenkit/core/enum_utils.c +11041 -0
- nxopenkit/core/enum_utils.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/enum_utils.pyi +8 -0
- nxopenkit/core/expression.c +8447 -0
- nxopenkit/core/expression.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/expression.pyi +24 -0
- nxopenkit/core/face.c +9415 -0
- nxopenkit/core/face.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/face.pyi +55 -0
- nxopenkit/core/feature.c +11557 -0
- nxopenkit/core/feature.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/feature.pyi +91 -0
- nxopenkit/core/icurve.c +8619 -0
- nxopenkit/core/icurve.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/icurve.pyi +17 -0
- nxopenkit/core/isurface.c +8619 -0
- nxopenkit/core/isurface.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/isurface.pyi +22 -0
- nxopenkit/core/line.c +8833 -0
- nxopenkit/core/line.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/line.pyi +20 -0
- nxopenkit/core/measurement.c +10650 -0
- nxopenkit/core/measurement.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/measurement.pyi +87 -0
- nxopenkit/core/named_object.c +9397 -0
- nxopenkit/core/named_object.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/named_object.pyi +53 -0
- nxopenkit/core/part.c +14147 -0
- nxopenkit/core/part.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/part.pyi +238 -0
- nxopenkit/core/point.c +15755 -0
- nxopenkit/core/point.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/point.pyi +208 -0
- nxopenkit/core/sketch.c +8805 -0
- nxopenkit/core/sketch.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/sketch.pyi +19 -0
- nxopenkit/core/tagged_object.c +9862 -0
- nxopenkit/core/tagged_object.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/tagged_object.pyi +72 -0
- nxopenkit/core/types.c +5473 -0
- nxopenkit/core/types.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/types.pyi +20 -0
- nxopenkit/core/uf_manager.c +16871 -0
- nxopenkit/core/uf_manager.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/uf_manager.pyi +494 -0
- nxopenkit/core/utility.c +9138 -0
- nxopenkit/core/utility.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/utility.pyi +26 -0
- nxopenkit/core/xform.c +8819 -0
- nxopenkit/core/xform.cp38-win_amd64.pyd +0 -0
- nxopenkit/core/xform.pyi +19 -0
- nxopenkit/features/__init__.py +22 -0
- nxopenkit/features/__init__.pyi +20 -0
- nxopenkit/features/base_builder.c +9651 -0
- nxopenkit/features/base_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/base_builder.pyi +17 -0
- nxopenkit/features/block_builder.c +11850 -0
- nxopenkit/features/block_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/block_builder.pyi +121 -0
- nxopenkit/features/boolean_builder.c +11906 -0
- nxopenkit/features/boolean_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/boolean_builder.pyi +97 -0
- nxopenkit/features/builder.c +9558 -0
- nxopenkit/features/builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/builder.pyi +33 -0
- nxopenkit/features/composite_curve_builder.c +13999 -0
- nxopenkit/features/composite_curve_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/composite_curve_builder.pyi +149 -0
- nxopenkit/features/cylinder_builder.c +11737 -0
- nxopenkit/features/cylinder_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/cylinder_builder.pyi +102 -0
- nxopenkit/features/datum_axis_builder.c +14746 -0
- nxopenkit/features/datum_axis_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/datum_axis_builder.pyi +171 -0
- nxopenkit/features/datum_csys_builder.c +12763 -0
- nxopenkit/features/datum_csys_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/datum_csys_builder.pyi +144 -0
- nxopenkit/features/datum_plane_builder.c +19717 -0
- nxopenkit/features/datum_plane_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/datum_plane_builder.pyi +278 -0
- nxopenkit/features/extrude_builder.c +13310 -0
- nxopenkit/features/extrude_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/extrude_builder.pyi +114 -0
- nxopenkit/features/feature_builder.c +9601 -0
- nxopenkit/features/feature_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/feature_builder.pyi +31 -0
- nxopenkit/features/point_builder.c +13445 -0
- nxopenkit/features/point_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/point_builder.pyi +114 -0
- nxopenkit/features/revolve_builder.c +12636 -0
- nxopenkit/features/revolve_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/revolve_builder.pyi +99 -0
- nxopenkit/features/sphere_builder.c +11263 -0
- nxopenkit/features/sphere_builder.cp38-win_amd64.pyd +0 -0
- nxopenkit/features/sphere_builder.pyi +91 -0
- nxopenkit/maths/__init__.py +6 -0
- nxopenkit/maths/__init__.pyi +9 -0
- nxopenkit/maths/matrix3x3.c +15407 -0
- nxopenkit/maths/matrix3x3.cp38-win_amd64.pyd +0 -0
- nxopenkit/maths/matrix3x3.pyi +27 -0
- nxopenkit/maths/point3d.c +18179 -0
- nxopenkit/maths/point3d.cp38-win_amd64.pyd +0 -0
- nxopenkit/maths/point3d.pyi +80 -0
- nxopenkit/maths/vector3d.c +16179 -0
- nxopenkit/maths/vector3d.cp38-win_amd64.pyd +0 -0
- nxopenkit/maths/vector3d.pyi +61 -0
- nxopenkit-1.0.0.dist-info/METADATA +230 -0
- nxopenkit-1.0.0.dist-info/RECORD +156 -0
- nxopenkit-1.0.0.dist-info/WHEEL +5 -0
- nxopenkit-1.0.0.dist-info/top_level.txt +1 -0
nxopenkit/__init__.py
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"""Public package interface for NXOpenKit."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import sys
|
|
7
|
+
import warnings
|
|
8
|
+
|
|
9
|
+
__version__ = "0.1.0"
|
|
10
|
+
|
|
11
|
+
# ---------------------------------------------------------------------------
|
|
12
|
+
# Configure Siemens NX Python path
|
|
13
|
+
# ---------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
ugii_base_dir = os.environ.get("UGII_BASE_DIR")
|
|
16
|
+
|
|
17
|
+
if ugii_base_dir:
|
|
18
|
+
nx_python_path = os.path.join(ugii_base_dir, "NXBIN", "python")
|
|
19
|
+
|
|
20
|
+
if nx_python_path not in sys.path:
|
|
21
|
+
sys.path.append(nx_python_path)
|
|
22
|
+
else:
|
|
23
|
+
warnings.warn(
|
|
24
|
+
"UGII_BASE_DIR is not set. NXOpen-dependent functionality may "
|
|
25
|
+
"not be available.",
|
|
26
|
+
RuntimeWarning,
|
|
27
|
+
stacklevel=2,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
# ---------------------------------------------------------------------------
|
|
31
|
+
# Public Imports
|
|
32
|
+
# ---------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
try:
|
|
35
|
+
from .core import (
|
|
36
|
+
Body,
|
|
37
|
+
Edge,
|
|
38
|
+
Face,
|
|
39
|
+
Feature,
|
|
40
|
+
ICurve,
|
|
41
|
+
ISurface,
|
|
42
|
+
Part,
|
|
43
|
+
UFManager,
|
|
44
|
+
DatumAxis,
|
|
45
|
+
DatumPlane,
|
|
46
|
+
CoordinateSystem,
|
|
47
|
+
DisplayableObject,
|
|
48
|
+
NamedObject,
|
|
49
|
+
TaggedObject,
|
|
50
|
+
Point,
|
|
51
|
+
Curve,
|
|
52
|
+
Direction,
|
|
53
|
+
Expression,
|
|
54
|
+
Line,
|
|
55
|
+
Measurement,
|
|
56
|
+
MinimumDistanceResult,
|
|
57
|
+
ClosestObjectResult,
|
|
58
|
+
Sketch,
|
|
59
|
+
Utility,
|
|
60
|
+
Xform,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
from .features import (
|
|
64
|
+
BaseBuilder,
|
|
65
|
+
Builder,
|
|
66
|
+
FeatureBuilder,
|
|
67
|
+
BlockBuilder,
|
|
68
|
+
BooleanBuilder,
|
|
69
|
+
CompositeCurveBuilder,
|
|
70
|
+
CylinderBuilder,
|
|
71
|
+
DatumAxisBuilder,
|
|
72
|
+
DatumCsysBuilder,
|
|
73
|
+
DatumPlaneBuilder,
|
|
74
|
+
ExtrudeBuilder,
|
|
75
|
+
PointBuilder,
|
|
76
|
+
RevolveBuilder,
|
|
77
|
+
SphereBuilder,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
from .maths import (
|
|
81
|
+
Vector3d,
|
|
82
|
+
Point3d,
|
|
83
|
+
Matrix3X3,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
except ImportError as ex:
|
|
87
|
+
warnings.warn(
|
|
88
|
+
f"Unable to import NXOpenKit modules: {ex}",
|
|
89
|
+
RuntimeWarning,
|
|
90
|
+
stacklevel=2,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
# ---------------------------------------------------------------------------
|
|
94
|
+
# Public API
|
|
95
|
+
# ---------------------------------------------------------------------------
|
|
96
|
+
|
|
97
|
+
__all__ = [
|
|
98
|
+
# Core
|
|
99
|
+
"Body",
|
|
100
|
+
"Edge",
|
|
101
|
+
"Face",
|
|
102
|
+
"Feature",
|
|
103
|
+
"ICurve",
|
|
104
|
+
"ISurface",
|
|
105
|
+
"Part",
|
|
106
|
+
"UFManager",
|
|
107
|
+
"DatumAxis",
|
|
108
|
+
"DatumPlane",
|
|
109
|
+
"CoordinateSystem",
|
|
110
|
+
"DisplayableObject",
|
|
111
|
+
"NamedObject",
|
|
112
|
+
"TaggedObject",
|
|
113
|
+
"Point",
|
|
114
|
+
"Curve",
|
|
115
|
+
"Direction",
|
|
116
|
+
"Expression",
|
|
117
|
+
"Line",
|
|
118
|
+
"Measurement",
|
|
119
|
+
"MinimumDistanceResult",
|
|
120
|
+
"ClosestObjectResult",
|
|
121
|
+
"Sketch",
|
|
122
|
+
"Utility",
|
|
123
|
+
"Xform",
|
|
124
|
+
|
|
125
|
+
# Features
|
|
126
|
+
"BaseBuilder",
|
|
127
|
+
"Builder",
|
|
128
|
+
"FeatureBuilder",
|
|
129
|
+
"BlockBuilder",
|
|
130
|
+
"BooleanBuilder",
|
|
131
|
+
"CompositeCurveBuilder",
|
|
132
|
+
"CylinderBuilder",
|
|
133
|
+
"DatumAxisBuilder",
|
|
134
|
+
"DatumCsysBuilder",
|
|
135
|
+
"DatumPlaneBuilder",
|
|
136
|
+
"ExtrudeBuilder",
|
|
137
|
+
"PointBuilder",
|
|
138
|
+
"RevolveBuilder",
|
|
139
|
+
"SphereBuilder",
|
|
140
|
+
|
|
141
|
+
# Maths
|
|
142
|
+
"Vector3d",
|
|
143
|
+
"Point3d",
|
|
144
|
+
"Matrix3X3",
|
|
145
|
+
]
|
nxopenkit/__init__.pyi
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This type stub file was generated by pyright.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import sys
|
|
7
|
+
import warnings
|
|
8
|
+
from .core import Body, ClosestObjectResult, CoordinateSystem, Curve, DatumAxis, DatumPlane, Direction, DisplayableObject, Edge, Expression, Face, Feature, ICurve, ISurface, Line, Measurement, MinimumDistanceResult, NamedObject, Part, Point, Sketch, TaggedObject, UFManager, Utility, Xform
|
|
9
|
+
from .features import BaseBuilder, BlockBuilder, BooleanBuilder, Builder, CompositeCurveBuilder, CylinderBuilder, DatumAxisBuilder, DatumCsysBuilder, DatumPlaneBuilder, ExtrudeBuilder, FeatureBuilder, PointBuilder, RevolveBuilder, SphereBuilder
|
|
10
|
+
from .maths import Matrix3X3, Point3d, Vector3d
|
|
11
|
+
|
|
12
|
+
"""Public package interface for NXOpenKit."""
|
|
13
|
+
__version__ = ...
|
|
14
|
+
ugii_base_dir = ...
|
|
15
|
+
if ugii_base_dir:
|
|
16
|
+
nx_python_path = ...
|
|
17
|
+
else:
|
|
18
|
+
...
|
|
19
|
+
__all__ = ["Body", "Edge", "Face", "Feature", "ICurve", "ISurface", "Part", "UFManager", "DatumAxis", "DatumPlane", "CoordinateSystem", "DisplayableObject", "NamedObject", "TaggedObject", "Point", "Curve", "Direction", "Expression", "Line", "Measurement", "MinimumDistanceResult", "ClosestObjectResult", "Sketch", "Utility", "Xform", "BaseBuilder", "Builder", "FeatureBuilder", "BlockBuilder", "BooleanBuilder", "CompositeCurveBuilder", "CylinderBuilder", "DatumAxisBuilder", "DatumCsysBuilder", "DatumPlaneBuilder", "ExtrudeBuilder", "PointBuilder", "RevolveBuilder", "SphereBuilder", "Vector3d", "Point3d", "Matrix3X3"]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Public core wrappers and types for NXOpenKit."""
|
|
2
|
+
|
|
3
|
+
from .body import Body
|
|
4
|
+
from .edge import Edge
|
|
5
|
+
from .face import Face
|
|
6
|
+
from .feature import Feature
|
|
7
|
+
from .icurve import ICurve
|
|
8
|
+
from .part import Part
|
|
9
|
+
from .datum_axis import DatumAxis
|
|
10
|
+
from .datum_plane import DatumPlane
|
|
11
|
+
from .coordinate_system import CoordinateSystem
|
|
12
|
+
from .feature import Feature
|
|
13
|
+
from .isurface import ISurface
|
|
14
|
+
from .uf_manager import UFManager
|
|
15
|
+
from .displayable_object import DisplayableObject
|
|
16
|
+
from .named_object import NamedObject
|
|
17
|
+
from .tagged_object import TaggedObject
|
|
18
|
+
from .point import Point
|
|
19
|
+
from .measurement import Measurement, MinimumDistanceResult, ClosestObjectResult
|
|
20
|
+
from .curve import Curve
|
|
21
|
+
from .direction import Direction
|
|
22
|
+
from .expression import Expression
|
|
23
|
+
from .line import Line
|
|
24
|
+
from .sketch import Sketch
|
|
25
|
+
from .utility import Utility
|
|
26
|
+
from .xform import Xform
|
|
27
|
+
from .types import (
|
|
28
|
+
Number,
|
|
29
|
+
Angle,
|
|
30
|
+
Double,
|
|
31
|
+
VectorLike,
|
|
32
|
+
CylinderType,
|
|
33
|
+
SphereType,
|
|
34
|
+
BooleanType,
|
|
35
|
+
PointOnCurveLocationOption,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"Body", "Edge", "Face", "Feature", "ICurve", "Part", "UFManager",
|
|
40
|
+
"DatumAxis", "DatumPlane", "CoordinateSystem", "ISurface",
|
|
41
|
+
"DisplayableObject", "NamedObject", "TaggedObject", "Point",
|
|
42
|
+
"Measurement", "MinimumDistanceResult", "ClosestObjectResult",
|
|
43
|
+
"Curve", "Direction", "Expression", "Line", "Sketch", "Utility", "Xform",
|
|
44
|
+
"Number", "Angle", "Double", "VectorLike", "CylinderType", "SphereType", "BooleanType",
|
|
45
|
+
"PointOnCurveLocationOption",
|
|
46
|
+
]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This type stub file was generated by pyright.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .body import Body
|
|
6
|
+
from .edge import Edge
|
|
7
|
+
from .face import Face
|
|
8
|
+
from .feature import Feature
|
|
9
|
+
from .icurve import ICurve
|
|
10
|
+
from .part import Part
|
|
11
|
+
from .datum_axis import DatumAxis
|
|
12
|
+
from .datum_plane import DatumPlane
|
|
13
|
+
from .coordinate_system import CoordinateSystem
|
|
14
|
+
from .isurface import ISurface
|
|
15
|
+
from .uf_manager import UFManager
|
|
16
|
+
from .displayable_object import DisplayableObject
|
|
17
|
+
from .named_object import NamedObject
|
|
18
|
+
from .tagged_object import TaggedObject
|
|
19
|
+
from .point import Point
|
|
20
|
+
from .measurement import ClosestObjectResult, Measurement, MinimumDistanceResult
|
|
21
|
+
from .curve import Curve
|
|
22
|
+
from .direction import Direction
|
|
23
|
+
from .expression import Expression
|
|
24
|
+
from .line import Line
|
|
25
|
+
from .sketch import Sketch
|
|
26
|
+
from .utility import Utility
|
|
27
|
+
from .xform import Xform
|
|
28
|
+
from .types import Angle, BooleanType, CylinderType, Double, Number, PointOnCurveLocationOption, SphereType, VectorLike
|
|
29
|
+
|
|
30
|
+
"""Public core wrappers and types for NXOpenKit."""
|
|
31
|
+
__all__ = ["Body", "Edge", "Face", "Feature", "ICurve", "Part", "UFManager", "DatumAxis", "DatumPlane", "CoordinateSystem", "ISurface", "DisplayableObject", "NamedObject", "TaggedObject", "Point", "Measurement", "MinimumDistanceResult", "ClosestObjectResult", "Curve", "Direction", "Expression", "Line", "Sketch", "Utility", "Xform", "Number", "Angle", "Double", "VectorLike", "CylinderType", "SphereType", "BooleanType", "PointOnCurveLocationOption"]
|