Difference between revisions of "Exporting Parasolid from SolidWorks"

From PHASTA Wiki
Jump to: navigation, search
Line 10: Line 10:
 
  1. Ensure convertParasolid2Sim.sh is in your directory.  
 
  1. Ensure convertParasolid2Sim.sh is in your directory.  
  
  2. Set environment.  
+
  2. Set environment with soft adds found in <code>more ~kjansen/soft-core.sh</code>
  
  3. Run <code>./convertParasolid2sim.sh <file name>.xmt_txt</code>  
+
  3. Run <code>./convertParasolid2sim.sh <file name>.xmt_txt</code> in your terminal
  
  4. <code>translated-model.smd</code> is the new file in your directory that you will want to work with.
+
  4. <code>translated-model.smd</code> is the new file in your working directory that you will want to work with.
  
 
Once the convert step is complete, you are ready to use [[Getting Started with Simmodeler| simmodeler]] to open the new <code>translated-model.smd</code> file we created!
 
Once the convert step is complete, you are ready to use [[Getting Started with Simmodeler| simmodeler]] to open the new <code>translated-model.smd</code> file we created!

Revision as of 09:18, 1 June 2021

Save out your Model as a parasolid from SolidWorks. Note that you will want the geometry as close to ready for meshing as possible, as performing model "surgery" in simmodeler is not always straight forward. The outputted file will have the format <file_name>.x_t.

Note: if you do not have a parasolid model of your own, please go to the directory /projects/tutorials/On_Ramp_parasolid and copy On_ramp_example.x_t into your working directory.

Next, you'll want to change the extension from .x_t to .xmt_txt. To do this, run mv <file_name>.x_t <file_name>.xmt_txt from your terminal. From here, you are ready for the convert step, which is demonstrated here (See note below before clicking video link).

Note: For the convert step, you cannot be on portal1, and must be on one of the viz nodes (machine viz003 is good). Also, the file convertParasolid2Sim.s seen in the video may be found in the directory /users/mabl7046/Group_Dir (temporary fix). You need to copy this file into the directory where you will be working.

Summary of video:

1. Ensure convertParasolid2Sim.sh is in your directory. 
2. Set environment with soft adds found in more ~kjansen/soft-core.sh
3. Run ./convertParasolid2sim.sh <file name>.xmt_txt in your terminal
4. translated-model.smd is the new file in your working directory that you will want to work with.

Once the convert step is complete, you are ready to use simmodeler to open the new translated-model.smd file we created!