... | ... | @@ -2,53 +2,9 @@ |
|
|
|
|
|
SolidWorks model cannot be used directly in the Nomad 3D applications, they need to be converted and processed first. The first step of this conversion is handled by a SolidWorks addin that exports the model as in an intermediate format. This exported model will be then converted by the Nomad 3D converter (see the [wiki](https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-commons/wikis/home)).
|
|
|
|
|
|
## Install
|
|
|
|
|
|
If you need to compile the addin, read the tutorial on how to [create a SolidWorks addin](Creating-a-SolidWorks-Add.pdf).
|
|
|
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
|
|
|
|
|
|
As any SolidWorks addin, the Nomad 3D addin can be found in the Tools menu. It allows to export the model and change some export settings.
|
|
|
|
|
|
![Nomad 3D menu](img/tools-menu.png)
|
|
|
|
|
|
### Export
|
|
|
|
|
|
The SolidWorks model is exported in several files :
|
|
|
* one XML containing all of the informations needed by Nomad 3D (hierarchy, components names, positions, etc)
|
|
|
* one STL file for each part to store its geometry
|
|
|
|
|
|
To export the model, a dialog opens to choose the location of the XML file. The STL files will be exported at the same location. It is recommended to create a specific folder for each exported model.
|
|
|
|
|
|
![Export](img/export.png)
|
|
|
|
|
|
### Settings
|
|
|
|
|
|
Several settings are available to provide control on the export. The model and the geometries can be exported at different times, and geometries that have already been exported can be ignored when a model is not exported for the first time.
|
|
|
|
|
|
![Settings](img/settings.png)
|
|
|
|
|
|
#### Export options
|
|
|
|
|
|
* **Export model :** write the XML file describing the model
|
|
|
* **Export geometries :** export the STL files storing the geometries
|
|
|
* **Re-export geometries :** export all of the STL files, even if they have already been exported in the export directory
|
|
|
|
|
|
#### Simplification parameters
|
|
|
|
|
|
* **Activate simplification :** simplify the model before the export
|
|
|
* **Threshold :** threshold discriminating small parts
|
|
|
|
|
|
### Example
|
|
|
|
|
|
The SolidWorks project located in Workspace/SOLIDWORKSMODEL_models/XTREMED/SCI-11-06-16-ILL-CHANGEUR.SLDASM is a good example to start.
|
|
|
|
|
|
## 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
|
|
|
|
... | ... | |