... | ... | @@ -4,8 +4,9 @@ SolidWorks model cannot be used directly in the Nomad 3D applications, they need |
|
|
|
|
|
## Install
|
|
|
|
|
|
<!-- TODO -->
|
|
|
*TODO*
|
|
|
Once the addin is compiled using Visual Studio, to activate the COM object, launch *SolidWorksAddinInstaller.exe* and find the compiled dll file.
|
|
|
In SolidWorks, do:
|
|
|
Tools > Addins > Other Addins: click on Startup
|
|
|
|
|
|
## Usage
|
|
|
|
... | ... | @@ -47,3 +48,18 @@ The SolidWorks project located in Workspace/SOLIDWORKSMODEL_models/XTREMED/SCI-1 |
|
|
## Crash handling
|
|
|
|
|
|
The export of large models (like full instruments) can be problematic in SolidWorks, and it might crash in the middle of the export. In those cases, it is recommended to export the model (XML file) alone, then the geometries (STL files). The crash should only happen during the geometries export. Export the geometries several times with the option `Re-export geometries` disabled until the export does not export any new file. Then, if there are missing files, the only way to get them at the moment is to export the part into STL files manually. A log file is generated and can be analyzed to see where the export failed (e.g. Figaro).
|
|
|
|
|
|
## Development
|
|
|
|
|
|
Useful notes:
|
|
|
- Use Git bash to clone the project (right click on Windows computer).
|
|
|
- Open Visual Studio.
|
|
|
- See the tutorials for the SolidWorks addin: files in project.
|
|
|
- Callback definitions for the export.
|
|
|
- PropertyManager is used to display the buttons on the left. Classes PMPage and PMPHandler are also used. The logger is coded "manually".
|
|
|
- See the preprocess pipeline. The conversion loads the data structure.
|
|
|
- The addin has a simple package, and not split into model/view.
|
|
|
- Process
|
|
|
- Loading the data structure.
|
|
|
- Simplification: suppression of the small components (Model.Simplify)
|
|
|
- Export (class Exporter). Calls to generate the STL file. Generates the XML file. |