-
Notifications
You must be signed in to change notification settings - Fork 594
Origin and color problems with SolidWorks STEP models. #541
Copy link
Copy link
Open
Labels
0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categoriesThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Data ExchangeImport/Export or iterating of the CAD dataImport/Export or iterating of the CAD data2. BugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categoriesThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Data ExchangeImport/Export or iterating of the CAD dataImport/Export or iterating of the CAD data2. BugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo
Description
I have a STEP model that seems to lose origin and color information when re-exported using OCCT.
This archive contains the original and re-exported models: SJ1-2515-SMT-TR-models.zip
For testing, the 4 models were placed next to each other in Altium Designer and opened in the 3D view:
From left to right:
In Autodesk online viewer these models look like that too.
Similar test in KiCad 9.0.2 (OCCT 7.8.1) when exported to STEP and viewed in CAD Assistant:
TDocStd_XLinkToolto copy source models into a label in the destination XCAFDoc, I think this shouldn't be causing issue. XmlXCAF looks weird though if saved. (https://gitlab.com/kicad/code/kicad/-/blob/62e11694927dda229c45ca0be8a135eb033d0717/pcbnew/exporters/step/step_pcb_model.cpp?page=4#L3046)So the problem seems to be that OCCT doesn't put the colors and the origin into the XCAFDoc correctly.
KiCad issue: https://gitlab.com/kicad/code/kicad/-/issues/19065
Expected Behavior
The origin and the colors when re-exporting this model using DRAW should be the same as in the original and not lost.
Actual Behavior
The origin gets changed. And the colors get lost depending on OCCT version.
Sample Code or DRAW Tcl Script
Tcl Code for re-export:
Tcl code for viewing in DRAW:
The original model looks like this in DRAW even in OCCT 7.6.0 (bad colors, wrong orientation):
Operating System
Windows
Compiler
MSVC
Bitness
64-bit
OCCT Version
latest
Additional Files
No response