Skip to content

Instantly share code, notes, and snippets.

@marpstar
Last active June 29, 2016 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marpstar/8621fed1ab445a7f121f6282e264ccf6 to your computer and use it in GitHub Desktop.
Save marpstar/8621fed1ab445a7f121f6282e264ccf6 to your computer and use it in GitHub Desktop.
3d viewer building

Prereqs

Just for ease, you should npm install -g http-server so that you can serve this viewer easily.

Get the code

  • BitBucket Repo: https://csand@bitbucket.org/csand/1upusa.git
  • Note the 3d-viewer folder. That is the viewer for the files you'll generate.
  • You don't need to worry about WordPress or anything. Don't bother trying to MAMP.

Converting .STEP files

  1. Download the tools here
    • Extract the files and open a command prompt to the directory. Notice the EXEs
  2. For each .STEP file (download them here)
    1. Copy the .STEP file into the root directory
    2. Run splitasm.exe -o OUTPUT_DIR -trees "STEP FILE NAME.STEP"
    3. Run export_product_asm.exe "STEP FILE NAME.STEP" -d o OUTPUT_DIR
    4. Rename OUTPUT_DIR to match the .STEP file you just processed, e.g. ASSEMBLY_HEAVY_DUTY_DOUBLE and move it into the 3d-viewer directory of the repo.
    5. Run http-server from the 3d-viewer directory.
    6. Try accessing the 3D viewer via (example:) http://localhost:8080/asm-frames.html?ASSEMBLY_HEAVY_DUTY_DOUBLE/
    7. Check in the generated files.
    8. If any failure occurs, note which file caused problems and any errors if possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment