npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@plastichub/osr-cad

v0.8.7

Published

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

Downloads

167

Readme

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/2022

Installation


git clone https://git.osr-plastic.org/osr-plastic/osr-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

  • [x] Select default views via CLI Argument
  • [ ] Arg: Skip suppressed | hidden (difficult since it's out of part file scope, check explorer api ) | dry mode
  • [x] Arg: Overwrite files
  • [-] Arg: skip non OSR parts
  • [-] Arg: displaymode : wireframe, shaded, ... (see SW Docs)
  • [-] report
  • [x] 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 | osr-reports)
    • [ ] xls
    • [ ] md
    • [ ] txt
    • [ ] json
    • [ ] meta | ts | tree
  • [-] Plugin interface for custom format (chained) => osrl
  • [x] Conversions
    • [x] STEP -> SLDPRT (via xcad->fc->fw)
    • [x] any -> 3dxml (osrl!)
    • [x] 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
    • [ ] bom|html|props : configurations
    • [ ] explicit cache directory

Commands - Todos - Solidworks

  • [x] 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
  • [x] move 2D formats to osr-media
  • [-] implement osr-cli-common specs: info/introspect|supported
  • [x] root offset
  • [x] sw:info|bom -> i18n
  • [ ] remove toolbox write protection (sldsetdocprop.exe | https://www.youtube.com/watch?v=N7_HSvWPAXw | https://help.solidworks.com/2022/english/api/swdocmgrapi/SolidWorks.Interop.swdocumentmgr~SolidWorks.Interop.swdocumentmgr.ISwDMDocument~ToolboxPart.html)
  • [-] sw: catch read errors
  • [ ] sw: migrate xcad latest
  • [ ] sw: addons - API (disable, ..)
  • [-] sw: model-reader : iterator | filter | findup-references
  • [-] sw: bom : filter & map
  • [-] sw: set properties | save-as, ...
  • [ ] sw: osr-log
  • [ ] sw: sub commands: convert | validate | pack | set | get | clean | render | tree (cp/mv/rm) | unlink
    • [x] get: configurations -> json
    • [x] convert(conf) -> model
    • [x] render(conf) -> image
    • [ ] validate
      • [-] internal files
      • [ ] outside root / component
      • [ ] naming conventions
      • [-] default configurations
      • [ ] sw errors
      • [ ] library compat
      • [-] orphan files
      • [-] equations
    • [ ] tree
      • [ ] md
      • [x] json
      • [ ] fs
      • [-] xls
        • [ ] osr-i8n
      • [ ] walker -> piped
    • [ ] orphans (incl. assets / maps)
  • [x] sw: render : renderers (+options)
  • [x] sw: render
    • [-] scene defaults
    • [ ] motion analysis
    • [x] query(tree)
  • [ ] sw: explode
  • [ ] sw: timeouts
  • [x] sw: osr-default props
  • [-] sw: cache instance (node IPC | csharp JIT?)
  • [x] sw: cache
    • [x] meta: diff
    • [ ] invalidate
    • [-] mv
    • [ ] pack / unpack
  • [ ] versioning
  • [ ] packages
  • [ ] registry
  • [ ] shared equations (design table alternative) -> osrl | equation templates
  • [ ] sketch / block templates

Commands - Todos - SCad

  • [ ] impl. basic verbs: convert (see https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment)

Lib - Todos

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

Utils

Resources - Solidworks

XEO

  • https://github.com/xeokit/xeokit-convert

Free - CAD

  • https://forum.freecadweb.org/viewtopic.php?p=556013#p556013
  • https://hub.docker.com/r/amrit3701/freecad-cli
  • https://wiki.opensourceecology.org/wiki/FreeCAD_BOM_Generator

GEO

  • https://macwright.com/2023/11/13/placemark

Exce Build Dependencies for 'nexe'