Tools for CAD tasks
This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2022-10-15 19:16:08 +02:00
cad for the boyz 2022-10-15 19:16:08 +02:00
commands for the boyz 2022-10-15 19:16:08 +02:00
docs for the boyz 2022-10-15 19:16:08 +02:00
fusion360 for the boyz 2022-10-15 19:16:08 +02:00
lib for the boyz 2022-10-15 19:16:08 +02:00
ref for the boyz 2022-10-15 19:16:08 +02:00
report for the boyz 2022-10-15 19:16:08 +02:00
scripts for the boyz 2022-10-15 19:16:08 +02:00
src for the boyz 2022-10-15 19:16:08 +02:00
sw for the boyz 2022-10-15 19:16:08 +02:00
tests/drive for the boyz 2022-10-15 19:16:08 +02:00
web/xeo for the boyz 2022-10-15 19:16:08 +02:00
_cli.js for the boyz 2022-10-15 19:16:08 +02:00
_cli.js.map for the boyz 2022-10-15 19:16:08 +02:00
.gh-sync.json for the boyz 2022-10-15 19:16:08 +02:00
.gitignore for the boyz 2022-10-15 19:16:08 +02:00
.npmignore for the boyz 2022-10-15 19:16:08 +02:00
argv.js for the boyz 2022-10-15 19:16:08 +02:00
argv.js.map for the boyz 2022-10-15 19:16:08 +02:00
clear_history.sh for the boyz 2022-10-15 19:16:08 +02:00
config.json for the boyz 2022-10-15 19:16:08 +02:00
constants.js for the boyz 2022-10-15 19:16:08 +02:00
constants.js.map for the boyz 2022-10-15 19:16:08 +02:00
format.js for the boyz 2022-10-15 19:16:08 +02:00
format.js.map for the boyz 2022-10-15 19:16:08 +02:00
formatter.js for the boyz 2022-10-15 19:16:08 +02:00
formatter.js.map for the boyz 2022-10-15 19:16:08 +02:00
index.js for the boyz 2022-10-15 19:16:08 +02:00
index.js.map for the boyz 2022-10-15 19:16:08 +02:00
LICENSE for the boyz 2022-10-15 19:16:08 +02:00
log.js for the boyz 2022-10-15 19:16:08 +02:00
log.js.map for the boyz 2022-10-15 19:16:08 +02:00
main.js for the boyz 2022-10-15 19:16:08 +02:00
main.js.map for the boyz 2022-10-15 19:16:08 +02:00
package.json for the boyz 2022-10-15 19:16:08 +02:00
paths.js for the boyz 2022-10-15 19:16:08 +02:00
paths.js.map for the boyz 2022-10-15 19:16:08 +02:00
README.md for the boyz 2022-10-15 19:16:08 +02:00
tsconfig.json for the boyz 2022-10-15 19:16:08 +02:00
tslint.json for the boyz 2022-10-15 19:16:08 +02:00
types.js for the boyz 2022-10-15 19:16:08 +02:00
types.js.map for the boyz 2022-10-15 19:16:08 +02:00

OSR CAD Tools

This is a CLI(CommandLineInterface) toolset to convert 3D files, using Solidworks and other software.

Requirements

  1. Node-JS
  2. Optional: install Git (Make sure you enable Linux tools on Windows console)
  3. Solidworks 2020. In case you are using another version, please find on your disc 'SolidWorks.Interop.sldworks.dll' and replace the one in ./sw

Installation


git clone https://gitlab.com/plastichub/osr/osr-convert-cad.git
cd osr-convert-cad
npm i

# or globally (recommended)

npm i @plastichub/osr-cad -g

Usage

Open a terminal and run this:

osr-cad --help

See more in ./docs/Examples.md and ./docs/Integration.md

References - Development

Todos

  • Select default views via CLI Argument

  • [ - Arg: Skip suppressed | hidden (difficult since it's out of part file scope, check explorer api ) | dry mode

  • Arg: Overwrite files

  • [-] Arg: skip non OSR parts

  • [-] Arg: displaymode : wireframe, shaded, ... (see SW Docs)

  • [-] report

  • export as lib

  • [-] Multi view (trainings data for @plastichub/part-detector)

  • [-] Speed: use same instance for multiple exports

  • Context Menu Shell Extension (@osr-tools)

  • [-] Local/Global config (=>osrl)

  • emit/merge authors from components in target artefact

  • [.] Add CLI Arg Path variables

    • [-] json-path for glob patterns
    • [-] bracket expansion
  • Report templates (=> @osrl)

    • xls
    • md
    • txt
  • [-] Plugin interface for custom format (chained) => osrl

  • Conversions

    • STEP -> SLDPRT (via xcad->fc->fw)
    • any -> 3dxml (osrl!)
    • any -> html (via edrawings)
  • Structural

    • support pipes, eg: intermediate formats
    • [-] add pre, post and content filters, as pipes
    • [-] plugins
    • [-] integrate osrl
    • omit format options in --help
    • omit possible conversions in ```info``
      • per in and out args
      • global
    • Cache hash fuckery : integrate options in integrity
      • external cache directory

Commands - Todos

  • Solidworks
  • [-] Set system wide options for JPG output
  • [-] Set system wide options for PDF output
  • Directory index (=>osrl)
  • arg: local HTML path/dir offset
  • arg: generate UNC paths
  • format: PDF
  • [-] arg: sw drawing/BOMs to CSV/xls
  • Part/Sub-Assembly web(&local) compilation/index (=>osrl)
  • [-] Web directory (xeokit)
  • [-] Git hook, check components & references

Lib - Todos

  • SW: 4 view single image
  • Incorrect JPG output with sw2020

Utils

Resources