You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STEP Export with Face Metadata (Names and Colors) (#1782)
* Moved name, color and layer metadata into cq.Assembly
* Started trying to exert more control over the internal structure of the STEP structure
* Working implementation that works with deeply nested assemblies
* Added write_pcurves setting to increase test coverage
* Added mention of the metadata export method in the documentation
* Removed extra properties from docstring
---------
Co-authored-by: AU <adam-urbanczyk@users.noreply.github.com>
Copy file name to clipboardExpand all lines: doc/importexport.rst
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,32 @@ This is done by setting the name property of the assembly before calling :meth:`
205
205
206
206
If an assembly name is not specified, a UUID will be used to avoid name conflicts.
207
207
208
+
Exporting Assemblies to STEP with Metadata
209
+
###########################################
210
+
211
+
It is possible to attach metadata to the assembly that will be included in the STEP file. This metadata can be attached to arbitrary shapes and includes names, colors and layers. This is done by using the :meth:`Assembly.addSubshape` method before calling :meth:`cadquery.occ_impl.exporters.assembly.exportStepMeta`.
212
+
213
+
.. code-block:: python
214
+
215
+
import cadquery as cq
216
+
from cadquery.occ_impl.exporters.assembly import exportStepMeta
0 commit comments