Skip to content

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

Command line

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

  1. Go to the geovar directory

  2. 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 variants

    ELSE using;

    python -m geovar -m 2 -i permute
    

    Using mode = 2, geovar will generate 27 geometric variants and meshes

Command Line Execution

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

Python IDE

Execution through the Python IDE allows full editing control of geovar, but input parameters may have to be hard-coded as defaults

  1. Open your Python 3.x IDE

  2. Open the geovar.py script or module

  3. Press F5 or Run > Run Module

IDE Execution

Clone this wiki locally