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.
cad/docs/Integration.md
2022-10-15 19:16:08 +02:00

1.4 KiB

Integration

Alt-Tap Salamand - Custom Menus

To use OSR-CAD in custom menus, as follows

  1. install osr-cad via npm i -g @plastichub/osr-cad
  2. Register a new custom menu (press F9 on any file)

command : osr-cad

Arguments : sw --alt=true --verbose=true --hash=false --debug=true --skip=false --src="$(FullName)" --dst="&{SRC_DIR}/&{SRC_NAME}.+(step)"

Here explained,


sw                                          # osr-cad command
    --alt=true                              # use alternate tokenizer, '&' instead of '$' to prevent collisions with Alt-Tab's own variable designator
    --verbose=true                          # be verbose
    --hash=false                            # don't create hash files (for caching)
    --debug=true                            # be even more verbose
    --skip=false                            # skip already created files
    --src="$(FullName)"                     # use Alt-Tab's variable for the current selected file
    --dst="&{SRC_DIR}/&{SRC_NAME}.+(step)"  # the output destination path

This will convert any Solidwork supported file format to step. For drawings, assemblies and parts, jpg, pdf and other 2D formats are supported. Conversions will use the options set in your Solidworks settings.