1.4 KiB
1.4 KiB
Integration
Alt-Tap Salamand - Custom Menus
To use OSR-CAD in custom menus, as follows
- install osr-cad via
npm i -g @plastichub/osr-cad - 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.