-
Notifications
You must be signed in to change notification settings - Fork 1
Running geovar for the first time
Fluvio L. Lobo Fenoglietto edited this page Jun 16, 2019
·
9 revisions
There are two ways of running/executing/using geovar:
- Command line
- Python IDE (e.g. IDLE3)
NOTES:
- A default input file and document are provided for demonstration/testing
- The Onshape domcument is called permute
- The corresponding input XML matches the document name
/input/permute.xml
Execution through the command line or terminal allows the user to use the program flags
NOTE: For more information go to the flags wiki page
-
Go to the geovar directory
-
Execute using Python 3.x
python -m geovar -m [mode] -i [filename]
IF using permute, you may use;
python -m geovar -m 1 -i permute
Using
mode = 1
, geovar will generate 27 geometric variantsELSE using;
python -m geovar -m 2 -i permute
Using
mode = 2
, geovar will generate 27 geometric variants and meshes
Table: Output files by mode and type
----------------------------------------
Mode | File Type | # of files
-----|-----------|----------------------
1-3 STL 27
2-3 EDGE 27
2-3 ELE 27
2-3 FACE 27
2-3 MESH 27
2-3 SMESH 27
2-3 VTK 27
Execution through the Python IDE allows full editing control of geovar, but input parameters may have to be hard-coded as defaults
-
Open your Python 3.x IDE
-
Open the geovar.py script or module
-
Press
F5
orRun > Run Module