openswx 0.2.0__tar.gz
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.
- openswx-0.2.0/LICENSE +202 -0
- openswx-0.2.0/NOTICE +38 -0
- openswx-0.2.0/PKG-INFO +331 -0
- openswx-0.2.0/README.md +285 -0
- openswx-0.2.0/openswx/__init__.py +41 -0
- openswx-0.2.0/openswx/__main__.py +160 -0
- openswx-0.2.0/openswx/advanced.py +708 -0
- openswx-0.2.0/openswx/analysis_more.py +296 -0
- openswx-0.2.0/openswx/api.py +221 -0
- openswx-0.2.0/openswx/applog.py +77 -0
- openswx-0.2.0/openswx/assembly.py +1172 -0
- openswx-0.2.0/openswx/cache.py +168 -0
- openswx-0.2.0/openswx/cam.py +754 -0
- openswx-0.2.0/openswx/cfd.py +455 -0
- openswx-0.2.0/openswx/cli.py +124 -0
- openswx-0.2.0/openswx/commands_app.py +235 -0
- openswx-0.2.0/openswx/commands_asm.py +42 -0
- openswx-0.2.0/openswx/commands_assembly.py +476 -0
- openswx-0.2.0/openswx/commands_blocks.py +198 -0
- openswx-0.2.0/openswx/commands_document.py +758 -0
- openswx-0.2.0/openswx/commands_drawing.py +927 -0
- openswx-0.2.0/openswx/commands_features.py +875 -0
- openswx-0.2.0/openswx/commands_mfg.py +586 -0
- openswx-0.2.0/openswx/commands_more.py +1585 -0
- openswx-0.2.0/openswx/commands_review.py +655 -0
- openswx-0.2.0/openswx/commands_settings.py +44 -0
- openswx-0.2.0/openswx/commands_simreport.py +178 -0
- openswx-0.2.0/openswx/commands_simulation.py +414 -0
- openswx-0.2.0/openswx/commands_sketch.py +476 -0
- openswx-0.2.0/openswx/commands_std.py +123 -0
- openswx-0.2.0/openswx/commands_tol.py +127 -0
- openswx-0.2.0/openswx/desktop.py +243 -0
- openswx-0.2.0/openswx/document.py +957 -0
- openswx-0.2.0/openswx/drawing.py +535 -0
- openswx-0.2.0/openswx/drawing_export.py +274 -0
- openswx-0.2.0/openswx/drawing_more.py +314 -0
- openswx-0.2.0/openswx/drawing_sheets.py +1398 -0
- openswx-0.2.0/openswx/dxf_io.py +187 -0
- openswx-0.2.0/openswx/ecosystem.py +389 -0
- openswx-0.2.0/openswx/electrical.py +255 -0
- openswx-0.2.0/openswx/equations.py +162 -0
- openswx-0.2.0/openswx/evaluate.py +214 -0
- openswx-0.2.0/openswx/fcstd.py +103 -0
- openswx-0.2.0/openswx/fea.py +809 -0
- openswx-0.2.0/openswx/fea_more.py +272 -0
- openswx-0.2.0/openswx/fea_tet.py +909 -0
- openswx-0.2.0/openswx/features.py +2975 -0
- openswx-0.2.0/openswx/fileassoc.py +117 -0
- openswx-0.2.0/openswx/geom.py +222 -0
- openswx-0.2.0/openswx/hardware.py +174 -0
- openswx-0.2.0/openswx/inspection.py +291 -0
- openswx-0.2.0/openswx/isolated.py +103 -0
- openswx-0.2.0/openswx/jobs.py +101 -0
- openswx-0.2.0/openswx/materials.py +172 -0
- openswx-0.2.0/openswx/mcp_bridge.py +122 -0
- openswx-0.2.0/openswx/mcp_server.py +214 -0
- openswx-0.2.0/openswx/migrate.py +52 -0
- openswx-0.2.0/openswx/naming.py +272 -0
- openswx-0.2.0/openswx/parasolid.py +1264 -0
- openswx-0.2.0/openswx/parasolid_write.py +467 -0
- openswx-0.2.0/openswx/piping.py +230 -0
- openswx-0.2.0/openswx/plastics.py +318 -0
- openswx-0.2.0/openswx/plugins.py +54 -0
- openswx-0.2.0/openswx/recovery.py +205 -0
- openswx-0.2.0/openswx/render.py +165 -0
- openswx-0.2.0/openswx/security.py +177 -0
- openswx-0.2.0/openswx/session.py +1277 -0
- openswx-0.2.0/openswx/settings.py +95 -0
- openswx-0.2.0/openswx/sketch.py +1497 -0
- openswx-0.2.0/openswx/sldprt.py +510 -0
- openswx-0.2.0/openswx/snapshots.py +81 -0
- openswx-0.2.0/openswx/sw_drawing.py +261 -0
- openswx-0.2.0/openswx/sw_rebuild.py +2168 -0
- openswx-0.2.0/openswx/sw_sketch.py +436 -0
- openswx-0.2.0/openswx/sw_tree.py +147 -0
- openswx-0.2.0/openswx/tolerance.py +169 -0
- openswx-0.2.0/openswx/updates.py +52 -0
- openswx-0.2.0/openswx/web/app.js +2818 -0
- openswx-0.2.0/openswx/web/drawing.js +621 -0
- openswx-0.2.0/openswx/web/icons.js +214 -0
- openswx-0.2.0/openswx/web/index.html +91 -0
- openswx-0.2.0/openswx/web/mfg.js +231 -0
- openswx-0.2.0/openswx/web/more.js +1072 -0
- openswx-0.2.0/openswx/web/propman.js +990 -0
- openswx-0.2.0/openswx/web/sketcher.js +794 -0
- openswx-0.2.0/openswx/web/style.css +353 -0
- openswx-0.2.0/openswx/web/vendor/three-Pass.js +95 -0
- openswx-0.2.0/openswx/web/vendor/three-gpu-pathtracer.LICENSE +21 -0
- openswx-0.2.0/openswx/web/vendor/three-gpu-pathtracer.module.js +9361 -0
- openswx-0.2.0/openswx/web/vendor/three-mesh-bvh.LICENSE +21 -0
- openswx-0.2.0/openswx/web/vendor/three-mesh-bvh.module.js +8373 -0
- openswx-0.2.0/openswx/web/vendor/three.LICENSE +21 -0
- openswx-0.2.0/openswx/web/vendor/three.module.min.js +6 -0
- openswx-0.2.0/openswx/web/viewport.js +802 -0
- openswx-0.2.0/openswx/web_server.py +179 -0
- openswx-0.2.0/openswx.egg-info/PKG-INFO +331 -0
- openswx-0.2.0/openswx.egg-info/SOURCES.txt +144 -0
- openswx-0.2.0/openswx.egg-info/dependency_links.txt +1 -0
- openswx-0.2.0/openswx.egg-info/entry_points.txt +2 -0
- openswx-0.2.0/openswx.egg-info/requires.txt +27 -0
- openswx-0.2.0/openswx.egg-info/top_level.txt +1 -0
- openswx-0.2.0/pyproject.toml +67 -0
- openswx-0.2.0/setup.cfg +4 -0
- openswx-0.2.0/tests/test_analysis.py +457 -0
- openswx-0.2.0/tests/test_api_and_updates.py +74 -0
- openswx-0.2.0/tests/test_applog.py +42 -0
- openswx-0.2.0/tests/test_assembly.py +777 -0
- openswx-0.2.0/tests/test_assembly_configurations.py +118 -0
- openswx-0.2.0/tests/test_cam_finish.py +77 -0
- openswx-0.2.0/tests/test_commands_gaps.py +460 -0
- openswx-0.2.0/tests/test_conformance.py +37 -0
- openswx-0.2.0/tests/test_docs.py +29 -0
- openswx-0.2.0/tests/test_documents.py +186 -0
- openswx-0.2.0/tests/test_drawing.py +616 -0
- openswx-0.2.0/tests/test_fcstd.py +110 -0
- openswx-0.2.0/tests/test_fea_tet.py +193 -0
- openswx-0.2.0/tests/test_features.py +703 -0
- openswx-0.2.0/tests/test_gate_advisor.py +25 -0
- openswx-0.2.0/tests/test_interop_formats.py +191 -0
- openswx-0.2.0/tests/test_interop_solidworks.py +323 -0
- openswx-0.2.0/tests/test_isolated.py +37 -0
- openswx-0.2.0/tests/test_jobs.py +80 -0
- openswx-0.2.0/tests/test_mcp_agent.py +123 -0
- openswx-0.2.0/tests/test_mcp_bridge.py +93 -0
- openswx-0.2.0/tests/test_migrate.py +58 -0
- openswx-0.2.0/tests/test_part_configurations.py +70 -0
- openswx-0.2.0/tests/test_plugins.py +52 -0
- openswx-0.2.0/tests/test_print_and_gauges.py +84 -0
- openswx-0.2.0/tests/test_recovery.py +82 -0
- openswx-0.2.0/tests/test_review.py +210 -0
- openswx-0.2.0/tests/test_security.py +128 -0
- openswx-0.2.0/tests/test_server.py +68 -0
- openswx-0.2.0/tests/test_settings.py +51 -0
- openswx-0.2.0/tests/test_sheet_metal_surfaces.py +383 -0
- openswx-0.2.0/tests/test_simreport.py +71 -0
- openswx-0.2.0/tests/test_sketch.py +304 -0
- openswx-0.2.0/tests/test_sketch_blocks.py +60 -0
- openswx-0.2.0/tests/test_sketch_from_image.py +62 -0
- openswx-0.2.0/tests/test_snapshots.py +53 -0
- openswx-0.2.0/tests/test_standard_parts.py +49 -0
- openswx-0.2.0/tests/test_sw_configurations.py +63 -0
- openswx-0.2.0/tests/test_tolerance.py +190 -0
- openswx-0.2.0/tests/test_tools.py +143 -0
- openswx-0.2.0/tests/test_web_mixins.py +28 -0
- openswx-0.2.0/tests/test_web_syntax.py +26 -0
- openswx-0.2.0/tests/test_workspace.py +38 -0
openswx-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
openswx-0.2.0/NOTICE
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
openswx
|
|
2
|
+
Copyright 2026 the openswx authors
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
openswx is a clean-room implementation. It contains no SOLIDWORKS code or artwork and is not affiliated
|
|
7
|
+
with or endorsed by Dassault Systemes. SOLIDWORKS is a trademark of Dassault Systemes. Parasolid is a
|
|
8
|
+
trademark of Siemens Industry Software.
|
|
9
|
+
|
|
10
|
+
Bundled in this source tree
|
|
11
|
+
---------------------------
|
|
12
|
+
three.js (openswx/web/vendor/three.module.min.js)
|
|
13
|
+
MIT License, Copyright 2010-2024 three.js authors. See openswx/web/vendor/three.LICENSE.
|
|
14
|
+
|
|
15
|
+
three-gpu-pathtracer 0.0.23 (openswx/web/vendor/three-gpu-pathtracer.module.js)
|
|
16
|
+
MIT License, Copyright (c) 2021 Garrett Johnson. See openswx/web/vendor/three-gpu-pathtracer.LICENSE.
|
|
17
|
+
(Its import of three.js' postprocessing/Pass.js points at openswx/web/vendor/three-Pass.js, that file
|
|
18
|
+
from three.js r170, MIT.)
|
|
19
|
+
three-mesh-bvh 0.8.3 (openswx/web/vendor/three-mesh-bvh.module.js)
|
|
20
|
+
MIT License, Copyright (c) 2018 Garrett Johnson. See openswx/web/vendor/three-mesh-bvh.LICENSE.
|
|
21
|
+
|
|
22
|
+
Used as dependencies (installed separately; included in the desktop builds)
|
|
23
|
+
---------------------------------------------------------------------------
|
|
24
|
+
OpenCASCADE Technology, through the OCP bindings (cadquery-ocp)
|
|
25
|
+
GNU LGPL 2.1 with the Open CASCADE exception; the bindings are Apache-2.0.
|
|
26
|
+
build123d Apache-2.0
|
|
27
|
+
NumPy BSD-3-Clause
|
|
28
|
+
SciPy BSD-3-Clause
|
|
29
|
+
FastAPI MIT
|
|
30
|
+
Starlette BSD-3-Clause
|
|
31
|
+
Uvicorn BSD-3-Clause
|
|
32
|
+
MCP Python SDK MIT
|
|
33
|
+
ezdxf MIT
|
|
34
|
+
pywebview BSD-3-Clause (desktop builds)
|
|
35
|
+
Netgen (netgen-mesher) LGPL-2.1 (optional: tetrahedral simulation meshes; carries its own OpenCASCADE)
|
|
36
|
+
PyInstaller bootloader GPL-2.0 with the bootloader exception (desktop builds)
|
|
37
|
+
|
|
38
|
+
The desktop builds carry each bundled package's own licence file in its .dist-info folder.
|
openswx-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openswx
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Open-source parametric CAD with a familiar layout and a built-in MCP server for AI agents
|
|
5
|
+
Author: The openswx authors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/DukeOfCheese/openswx
|
|
8
|
+
Project-URL: Documentation, https://github.com/DukeOfCheese/openswx/blob/main/docs/commands.md
|
|
9
|
+
Project-URL: Issues, https://github.com/DukeOfCheese/openswx/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/DukeOfCheese/openswx/blob/main/CHANGELOG.md
|
|
11
|
+
Project-URL: Source, https://github.com/DukeOfCheese/openswx
|
|
12
|
+
Keywords: cad,parametric,solidworks,mcp,opencascade,step,parasolid
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Manufacturing
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: MacOS
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
License-File: NOTICE
|
|
26
|
+
Requires-Dist: build123d>=0.13
|
|
27
|
+
Requires-Dist: numpy
|
|
28
|
+
Requires-Dist: scipy
|
|
29
|
+
Requires-Dist: fastapi
|
|
30
|
+
Requires-Dist: uvicorn[standard]
|
|
31
|
+
Requires-Dist: mcp>=2.3
|
|
32
|
+
Requires-Dist: ezdxf
|
|
33
|
+
Requires-Dist: cryptography<49; sys_platform == "darwin" and platform_machine == "x86_64"
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: pytest; extra == "dev"
|
|
36
|
+
Requires-Dist: httpx; extra == "dev"
|
|
37
|
+
Requires-Dist: netgen-mesher>=6.2; extra == "dev"
|
|
38
|
+
Provides-Extra: mesh
|
|
39
|
+
Requires-Dist: netgen-mesher>=6.2; extra == "mesh"
|
|
40
|
+
Provides-Extra: desktop
|
|
41
|
+
Requires-Dist: pywebview>=6; extra == "desktop"
|
|
42
|
+
Requires-Dist: pyinstaller>=6; extra == "desktop"
|
|
43
|
+
Provides-Extra: difftest
|
|
44
|
+
Requires-Dist: pywin32; platform_system == "Windows" and extra == "difftest"
|
|
45
|
+
Dynamic: license-file
|
|
46
|
+
|
|
47
|
+
# openswx
|
|
48
|
+
|
|
49
|
+
<!-- mcp-name: io.github.DukeOfCheese/openswx -->
|
|
50
|
+
|
|
51
|
+
**Open-source parametric CAD with a familiar layout, and a built-in MCP server so AI agents can design
|
|
52
|
+
parts in it while you watch.**
|
|
53
|
+
|
|
54
|
+
[](https://github.com/DukeOfCheese/openswx/actions/workflows/test.yml)
|
|
55
|
+
[](https://github.com/DukeOfCheese/openswx/blob/main/LICENSE)
|
|
56
|
+

|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
https://github.com/user-attachments/assets/2c19c47d-aeae-4146-8f85-38fad6df28fa
|
|
60
|
+
|
|
61
|
+
<sub>30 s ([4K original](https://github.com/DukeOfCheese/openswx/blob/main/docs/media/demo.mp4)). Recorded in
|
|
62
|
+
openswx: every feature is built by a real MCP tool call, the same calls Claude makes through Claude Code or any
|
|
63
|
+
other MCP client. The chat panel illustrates the conversation and is replayed by a script
|
|
64
|
+
([`tools/demo/`](https://github.com/DukeOfCheese/openswx/blob/main/tools/demo)). Claude is made by
|
|
65
|
+
[Anthropic](https://www.anthropic.com/).</sub>
|
|
66
|
+
|
|
67
|
+
openswx is an alternate CAD program for engineers. Its screen is laid out the way many mechanical engineers
|
|
68
|
+
already know from SOLIDWORKS: a command bar across the top, a design tree on the left, a property panel for
|
|
69
|
+
the active command, the same mouse navigation and shortcuts. If you can model a part there, you can model one
|
|
70
|
+
here without retraining. Underneath, it is a different program, built on different foundations; the section
|
|
71
|
+
[How it differs from SOLIDWORKS](#how-it-differs-from-solidworks) lists what that means in practice.
|
|
72
|
+
|
|
73
|
+
> **Not affiliated with Dassault Systèmes.** openswx is an independent open-source project. It is not
|
|
74
|
+
> affiliated with, endorsed by, sponsored by or connected to Dassault Systèmes or SOLIDWORKS Corporation.
|
|
75
|
+
> SOLIDWORKS is a registered trademark of Dassault Systèmes SolidWorks Corporation; Parasolid is a
|
|
76
|
+
> trademark of Siemens Industry Software; Claude is a trademark of Anthropic, which is not affiliated with
|
|
77
|
+
> openswx either. The names are used only to describe compatibility and the familiar layout. openswx is a clean-room implementation: it contains no SOLIDWORKS code, icons or artwork, and it
|
|
78
|
+
> does not need SOLIDWORKS installed to run or to open SOLIDWORKS files. See [NOTICE](https://github.com/DukeOfCheese/openswx/blob/main/NOTICE).
|
|
79
|
+
|
|
80
|
+
## Contents
|
|
81
|
+
|
|
82
|
+
- [What it does](#what-it-does)
|
|
83
|
+
- [Install](#install)
|
|
84
|
+
- [Your first part](#your-first-part)
|
|
85
|
+
- [Agents: how they get access](#agents-how-they-get-access)
|
|
86
|
+
- [How it differs from SOLIDWORKS](#how-it-differs-from-solidworks)
|
|
87
|
+
- [Status and limitations](#status-and-limitations)
|
|
88
|
+
- [Contributing](#contributing)
|
|
89
|
+
- [Project layout](#project-layout)
|
|
90
|
+
- [Licence](#licence)
|
|
91
|
+
|
|
92
|
+
## What it does
|
|
93
|
+
|
|
94
|
+
- **Parts**: constrained 2D and 3D sketches; extrude / revolve / sweep / loft (boss and cut, with the
|
|
95
|
+
familiar end conditions), fillets and chamfers of every kind, shell, draft, rib, dome, wrap, Hole Wizard,
|
|
96
|
+
threads, patterns (linear, circular, curve, sketch, table, fill), mirror, multibody tools, reference
|
|
97
|
+
geometry. Full parametric rebuild, rollback bar, suppress, reorder, folders, undo / redo.
|
|
98
|
+
- **Design intent**: equations and global variables (`"D1@Sketch1" = "width"/2`), configurations, design
|
|
99
|
+
tables, materials, custom properties.
|
|
100
|
+
- **Sheet metal, surfaces, weldments, mold tools**: flanges, hems, jogs, forming tools and flat patterns;
|
|
101
|
+
the surface toolbox (extrude to boundary, knit, trim, thicken); structural members with cut lists;
|
|
102
|
+
parting lines and tooling split.
|
|
103
|
+
- **Assemblies**: linked parts, standard / advanced / mechanical mates with DOF status, patterns, exploded
|
|
104
|
+
views, motion studies, interference and clearance checks, a fastener library, pipe and cable routing.
|
|
105
|
+
- **Drawings**: sheets with model, projected, section, detail, auxiliary, broken and cropped views; smart
|
|
106
|
+
dimensions, GD&T, hole tables, BOM and balloons; PDF / DXF / SVG export (DWG through the ODA converter).
|
|
107
|
+
- **Analysis**: static (on curvature-based tetrahedra), frequency, buckling, thermal, nonlinear, fatigue and
|
|
108
|
+
drop studies; lattice-Boltzmann flow; plastics fill; 3-axis CAM with G-code; costing; inspection reports.
|
|
109
|
+
Long solves run as background jobs.
|
|
110
|
+
- **Rendering**: real-time PBR, or path traced for soft shadows and reflections.
|
|
111
|
+
- **Review**: design review, requirements checked like tests, tolerance stack-up, design studies, document
|
|
112
|
+
compare.
|
|
113
|
+
- **Agents**: <!-- counts -->427 commands, 408 of them MCP tools ([full list](https://github.com/DukeOfCheese/openswx/blob/main/docs/commands.md))<!-- /counts -->,
|
|
114
|
+
over stdio or streamable HTTP, shown live in the UI's Agent activity pane.
|
|
115
|
+
- **Files**: native `.oswprt` / `.oswasm` / `.oswdrw` (versioned JSON). Reads SOLIDWORKS `.sldprt` / `.sldasm` /
|
|
116
|
+
`.slddrw` (2015 and later) natively; clean-room Parasolid reader (`.x_t`, `.x_b`) and writer (`.x_t`); STEP and
|
|
117
|
+
IGES in and out; STL, 3MF, glTF, BREP out; DXF in and out.
|
|
118
|
+
- **Safety**: autosave with crash recovery, an application log, a per-user token and origin checks on the
|
|
119
|
+
local server, and an optional folder that agents are confined to.
|
|
120
|
+
|
|
121
|
+
Geometry kernel: [OpenCASCADE](https://dev.opencascade.org/) through
|
|
122
|
+
[build123d](https://github.com/gumyr/build123d) and OCP.
|
|
123
|
+
|
|
124
|
+
## Install
|
|
125
|
+
|
|
126
|
+
### Desktop app (Windows, macOS)
|
|
127
|
+
|
|
128
|
+
Installers are attached to each [release](https://github.com/DukeOfCheese/openswx/releases):
|
|
129
|
+
|
|
130
|
+
| | Installer | Portable |
|
|
131
|
+
|---|---|---|
|
|
132
|
+
| Windows 10/11 (x64) | `openswx-setup-<ver>.exe` | `openswx-<ver>-win64.zip` → `openswx.exe` |
|
|
133
|
+
| macOS (Apple silicon / Intel) | `openswx-<ver>-macos-<arch>.pkg` → `/Applications/openswx.app` and `openswx-cli` | `openswx-<ver>-macos-<arch>.zip` |
|
|
134
|
+
|
|
135
|
+
The builds are not code-signed yet. Windows SmartScreen asks for confirmation on first launch (*More info →
|
|
136
|
+
Run anyway*). On macOS, right-click `openswx.app` → *Open*, or run
|
|
137
|
+
`xattr -dr com.apple.quarantine /Applications/openswx.app`.
|
|
138
|
+
|
|
139
|
+
### From source (any platform, browser UI)
|
|
140
|
+
|
|
141
|
+
Python 3.11 or newer:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
git clone https://github.com/DukeOfCheese/openswx.git
|
|
145
|
+
cd openswx
|
|
146
|
+
python -m venv .venv
|
|
147
|
+
.venv/bin/pip install -e .[dev] # Windows: .venv\Scripts\pip install -e .[dev]
|
|
148
|
+
.venv/bin/python -m openswx serve --open # prints the UI link and opens it; MCP is at /mcp
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The server answers only this computer and asks for your token, a per-user secret kept in
|
|
152
|
+
`~/.openswx/token`. Open the UI through the link `serve` prints, which stores the token as a cookie.
|
|
153
|
+
|
|
154
|
+
To build the desktop app yourself: `pip install -e .[desktop]`, then `python packaging/build.py --zip`
|
|
155
|
+
(builds for the platform it runs on, into `dist/`).
|
|
156
|
+
|
|
157
|
+
## Your first part
|
|
158
|
+
|
|
159
|
+
**Extruded Boss/Base** → pick *Top Plane* → draw a rectangle (R) → **Exit Sketch** (top-right corner) → set
|
|
160
|
+
*Depth* → **OK**. Click a face → mini toolbar → *Sketch* to sketch on it. Double-click a dimension while
|
|
161
|
+
editing a sketch to change it.
|
|
162
|
+
|
|
163
|
+
## Agents: how they get access
|
|
164
|
+
|
|
165
|
+
Every action in openswx is a **command**: a typed Python function registered once and exposed in four ways
|
|
166
|
+
from the same list. Whatever the UI can do, an agent can do, and what it does appears live in the open
|
|
167
|
+
window.
|
|
168
|
+
|
|
169
|
+
| Route | For | Access control |
|
|
170
|
+
|---|---|---|
|
|
171
|
+
| MCP over HTTP, `http://127.0.0.1:8765/mcp` | agents that reach this computer over HTTP (Claude Code, Cursor) while the app or `openswx serve` runs | `Authorization: Bearer <token>`; local connections only unless started with `--allow-remote` |
|
|
172
|
+
| MCP over stdio, `openswx mcp` | chat apps that start local programs (Claude Desktop); with openswx open it relays to that window | relays with your token; on its own, the UI it starts is token-protected |
|
|
173
|
+
| REST, `POST /api/command` | scripts and other programs | same token as MCP over HTTP |
|
|
174
|
+
| Python, `openswx.api` | notebooks and scripts in the same process | none (your own process) |
|
|
175
|
+
|
|
176
|
+
**Claude Code** (HTTP, while openswx runs; the token stays the same between runs, so this is done once):
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
claude mcp add --transport http openswx http://127.0.0.1:8765/mcp \
|
|
180
|
+
--header "Authorization: Bearer $(python -m openswx token)"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
With the desktop app, use `openswx-cli token` in place of `python -m openswx token`.
|
|
184
|
+
|
|
185
|
+
**Claude Desktop** (and other chat apps that start local MCP servers): add openswx to its config (Claude
|
|
186
|
+
Desktop: *Settings → Developer → Edit Config*) and restart it. While openswx is open, `openswx mcp` relays to
|
|
187
|
+
the open window, so you watch the agent's edits live; without it, it starts its own copy and UI.
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{ "mcpServers": { "openswx": { "command": "openswx-cli", "args": ["mcp"] } } }
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
`openswx-cli` is the desktop app's command-line program (on Windows give its full path: *Help → Agent (MCP)
|
|
194
|
+
Setup* shows the exact entry for your installation); from source use `"command": "python", "args": ["-m",
|
|
195
|
+
"openswx", "mcp"]`.
|
|
196
|
+
|
|
197
|
+
**Claude on the web (claude.ai)** cannot connect: its connectors call MCP servers from Anthropic's servers,
|
|
198
|
+
which cannot reach an app running on your computer. Use Claude Desktop or Claude Code.
|
|
199
|
+
|
|
200
|
+
**Python**:
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
from openswx.api import Part
|
|
204
|
+
|
|
205
|
+
part = Part("Bracket")
|
|
206
|
+
part.sketch("Top").rectangle([0, 0], [80, 40]).circle([20, 20], 5).extrude(10)
|
|
207
|
+
part.fillet(2, part.edges(type="circle"))
|
|
208
|
+
print(part.volume, part.mass)
|
|
209
|
+
part.save("bracket.oswprt"); part.export("bracket.step")
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
What an agent sees and can do:
|
|
213
|
+
|
|
214
|
+
- **Toolsets.** A connection starts with the `core` tools (under 50: part-modelling essentials) plus `batch`,
|
|
215
|
+
`list_toolsets` and `enable_toolset`. `enable_toolset("assembly")` adds an area (sketch, features, surfaces,
|
|
216
|
+
sheet_metal, weldments, document, assembly, drawing, simulation, manufacturing, ecosystem, plugins);
|
|
217
|
+
`--toolsets core,drawing`, `--toolsets all` or `OPENSWX_TOOLSETS` sets the starting list.
|
|
218
|
+
- **Atomic batches.** `batch` runs several commands in one call: if one fails, every open document goes back
|
|
219
|
+
to how it was; if all succeed, the batch is a single Undo step.
|
|
220
|
+
- **Stable references.** `get_topology` gives every face and edge an id and a persistent name that survives
|
|
221
|
+
later edits, so an agent can select geometry reliably.
|
|
222
|
+
- **Seeing the model.** `get_view_image` returns a picture; `get_mass_properties` and the `openswx://model`
|
|
223
|
+
and `openswx://feature/{name}` resources return numbers and the feature tree.
|
|
224
|
+
- **Tool hints.** Each tool carries MCP annotations (read-only, destructive) so clients can ask before
|
|
225
|
+
saving over or deleting something.
|
|
226
|
+
- **Limits you can set.** `--workspace DIR` (or `OPENSWX_WORKSPACE`) confines agents' file reads and writes to
|
|
227
|
+
one folder. `--share` prints a separate view-only link for people watching. The rules are in
|
|
228
|
+
[`openswx/security.py`](https://github.com/DukeOfCheese/openswx/blob/main/openswx/security.py).
|
|
229
|
+
- **Your own tools.** A Python package can add commands through the `openswx.plugins` entry point; they become
|
|
230
|
+
MCP tools in the `plugins` toolset ([`openswx/plugins.py`](https://github.com/DukeOfCheese/openswx/blob/main/openswx/plugins.py)).
|
|
231
|
+
|
|
232
|
+
Try: *"Make a 120×60×10 mm mounting plate with four Ø8 holes 12 mm from the edges and a Ø36 boss with a
|
|
233
|
+
counterbored hole, fillet the corners R6, material 6061."* [`tools/agent_demo.py`](https://github.com/DukeOfCheese/openswx/blob/main/tools/agent_demo.py) is a
|
|
234
|
+
scripted agent that does exactly that. Every command and its arguments: [`docs/commands.md`](https://github.com/DukeOfCheese/openswx/blob/main/docs/commands.md).
|
|
235
|
+
|
|
236
|
+
## How it differs from SOLIDWORKS
|
|
237
|
+
|
|
238
|
+
openswx is alternate CAD software, not a copy. It borrows the layout because engineers already know it;
|
|
239
|
+
everything else is its own. If you are coming from SOLIDWORKS, these are the differences that matter.
|
|
240
|
+
|
|
241
|
+
**Different by design**
|
|
242
|
+
|
|
243
|
+
| | SOLIDWORKS | openswx |
|
|
244
|
+
|---|---|---|
|
|
245
|
+
| Licence and cost | commercial, per seat | open source (Apache-2.0), free |
|
|
246
|
+
| Platforms | Windows | Windows, macOS, Linux; desktop app or any browser |
|
|
247
|
+
| Geometry kernel | Parasolid | OpenCASCADE. Fillets, shells and boolean edge cases can resolve differently, and very small or tangent features may fail where Parasolid succeeds (or the other way round) |
|
|
248
|
+
| Native files | binary `.sldprt` / `.sldasm` / `.slddrw` | versioned JSON `.oswprt` / `.oswasm` / `.oswdrw` that hold the commands that built the model. Diffable in Git; `openswx script` prints a part as a script and `openswx diff` compares two |
|
|
249
|
+
| Automation | COM API, VBA / VSTA macros, add-ins | every command is an MCP tool, a REST call and a Python call; macros record commands; plugins are ordinary Python packages |
|
|
250
|
+
| AI agents | none built in | MCP server built in, with toolsets, atomic batches and persistent face and edge names |
|
|
251
|
+
| Headless use | needs the full application | `openswx convert`, `render`, `massprops`, `check`, `drawing`, `script` and `diff` run without a window, for example in CI |
|
|
252
|
+
| Requirements | not part of the model | requirements live in the document and are checked like tests (`openswx check` exits non-zero on failure) |
|
|
253
|
+
| Collaboration | PDM server | today file-based: a local vault with check-in / check-out, and a live view-only share link. Live multi-user editing is in development (see below) |
|
|
254
|
+
| Rendering | PhotoView 360 / Visualize | in the browser: real-time PBR, or path traced on the GPU |
|
|
255
|
+
|
|
256
|
+
**Compatibility with SOLIDWORKS files**
|
|
257
|
+
|
|
258
|
+
- `.sldprt`, `.sldasm` and `.slddrw` (2015 and later) open without SOLIDWORKS installed. openswx reads the stored
|
|
259
|
+
body and, where it can decode it, the feature history, and rebuilds that history to check it against the stored
|
|
260
|
+
body. In the survey of 2026-11-23, 584 of the 841 sample parts that ship with SOLIDWORKS 2025 rebuilt exactly
|
|
261
|
+
(352 fully parametric). Parts whose features are not decoded yet (many sweeps, lofts, sheet-metal and
|
|
262
|
+
surface features) open as an imported solid that you can still measure, mate, draw and add features to.
|
|
263
|
+
- SOLIDWORKS files are **read-only**. Save as openswx files, or exchange through STEP, Parasolid `.x_t` or IGES.
|
|
264
|
+
- Equations, end conditions (by name or by `swEndConditions_e` number) and dimension names (`D1@Sketch1`) use
|
|
265
|
+
the same syntax, so existing design intent carries over.
|
|
266
|
+
|
|
267
|
+
**Not the same yet (see [Status](#status-and-limitations))**
|
|
268
|
+
|
|
269
|
+
- Simulation: every structural and thermal study (static, frequency, buckling, thermal, nonlinear, drop,
|
|
270
|
+
harmonic and step response; bonded assemblies, contact, springs and bolts) meshes with curvature-based
|
|
271
|
+
quadratic tetrahedra when the optional mesher is installed (`pip install openswx[mesh]`; included in the
|
|
272
|
+
Windows and macOS installers): peak stresses at holes and fillets within a few percent of
|
|
273
|
+
closed-form results. Without it the finite-cell voxel mesh is used, whose stresses at curved boundaries are
|
|
274
|
+
approximate. Flow is lattice-Boltzmann with a large-eddy turbulence model, without wall functions.
|
|
275
|
+
- CAM is 3-axis: roughing, flat floors and drilling, and 3D finishing with ball, bull-nose or flat mills; no
|
|
276
|
+
4- or 5-axis.
|
|
277
|
+
- DWG needs the free ODA File Converter installed. Models are shared as a self-contained HTML viewer
|
|
278
|
+
(eDrawings-style, opens in any browser) rather than in a separate viewer application.
|
|
279
|
+
- Toolbox and the Design Library are openswx's own, smaller sets (ISO metric and ANSI inch fasteners, pins
|
|
280
|
+
and washers). The material library has about 100 common grades with typical handbook values; add your own
|
|
281
|
+
as custom materials.
|
|
282
|
+
- Icons are original, and some commands sit in slightly different places.
|
|
283
|
+
- Live collaboration is not in openswx yet: it is being built in a separate repository,
|
|
284
|
+
[openswx-collab](https://github.com/DukeOfCheese/openswx-collab) (Apache-2.0, no release yet): several people
|
|
285
|
+
editing the same part at once with live cursors and feature locks, full edit
|
|
286
|
+
history with named versions and restore, assemblies that reference parts pinned to a version, and a server
|
|
287
|
+
you can host yourself (SQLite or PostgreSQL). The server never runs a geometry kernel: each person's openswx
|
|
288
|
+
applies the edits locally and sends the change. The server and its protocol are built and tested; the part
|
|
289
|
+
inside openswx (sharing a file, the sync client, cursors) has not started, and will be an optional module
|
|
290
|
+
that is off by default.
|
|
291
|
+
|
|
292
|
+
## Status and limitations
|
|
293
|
+
|
|
294
|
+
openswx is **alpha**: usable for real parts, with rough edges. Save often (autosave keeps a recovery copy;
|
|
295
|
+
`OPENSWX_AUTOSAVE` sets the interval in seconds, or `off`).
|
|
296
|
+
|
|
297
|
+
- **SOLIDWORKS feature history**: see the numbers above; `.sldprt` is read-only.
|
|
298
|
+
- **Simulation and CAM**: see the list above.
|
|
299
|
+
- **Builds** are not code-signed yet.
|
|
300
|
+
- CI runs the test suite on Linux, Windows and macOS, and UI smoke tests in a headless browser.
|
|
301
|
+
|
|
302
|
+
Where things stand on one screen: [`docs/STATUS.md`](https://github.com/DukeOfCheese/openswx/blob/main/docs/STATUS.md). What is missing, with a spec for each
|
|
303
|
+
item: [`docs/GAPS.md`](https://github.com/DukeOfCheese/openswx/blob/main/docs/GAPS.md). Release notes: [`CHANGELOG.md`](https://github.com/DukeOfCheese/openswx/blob/main/CHANGELOG.md).
|
|
304
|
+
|
|
305
|
+
## Contributing
|
|
306
|
+
|
|
307
|
+
Contributions from people and from coding agents are both welcome. Read
|
|
308
|
+
[`CONTRIBUTING.md`](https://github.com/DukeOfCheese/openswx/blob/main/CONTRIBUTING.md) first; above all, the **clean-room rule**: no SOLIDWORKS code, artwork or
|
|
309
|
+
sample files, ever. Bugs, SOLIDWORKS files that don't open correctly, and feature requests each have an issue
|
|
310
|
+
form that asks for exactly what is needed to act on them. Coding agents should also read
|
|
311
|
+
[`AGENTS.md`](https://github.com/DukeOfCheese/openswx/blob/main/AGENTS.md). Security problems: [`SECURITY.md`](https://github.com/DukeOfCheese/openswx/blob/main/SECURITY.md), never a public issue.
|
|
312
|
+
|
|
313
|
+
## Project layout
|
|
314
|
+
|
|
315
|
+
| | |
|
|
316
|
+
|---|---|
|
|
317
|
+
| `openswx/session.py` | the application object, the `@command` registry and dispatcher |
|
|
318
|
+
| `openswx/commands_*.py` | the commands, by area |
|
|
319
|
+
| `openswx/document.py`, `assembly.py` | part and assembly models: rebuild, undo, save / load |
|
|
320
|
+
| `openswx/sketch.py`, `features.py`, `geom.py`, `naming.py` | constraint solver, feature builders, references, persistent names |
|
|
321
|
+
| `openswx/drawing*.py` | drawings |
|
|
322
|
+
| `openswx/fea*.py`, `cfd.py`, `plastics.py`, `cam.py` | solvers |
|
|
323
|
+
| `openswx/sldprt.py`, `sw_*.py`, `parasolid*.py` | SOLIDWORKS and Parasolid readers / writer (clean-room; notes in [`docs/re/`](https://github.com/DukeOfCheese/openswx/blob/main/docs/re/README.md)) |
|
|
324
|
+
| `openswx/web_server.py`, `mcp_server.py`, `security.py` | REST + live-update server, MCP server, access rules |
|
|
325
|
+
| `openswx/web/` | the UI (three.js) |
|
|
326
|
+
| `tools/` | command reference generator, conformance cases, benchmarks, SOLIDWORKS survey |
|
|
327
|
+
| `tests/` | the test suite (`python -m pytest`) |
|
|
328
|
+
|
|
329
|
+
## Licence
|
|
330
|
+
|
|
331
|
+
Apache License 2.0: see [`LICENSE`](https://github.com/DukeOfCheese/openswx/blob/main/LICENSE). Third-party components and their licences: [`NOTICE`](https://github.com/DukeOfCheese/openswx/blob/main/NOTICE).
|