Giter VIP home page Giter VIP logo

csv-bom's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csv-bom's Issues

Cylindrical bodies with wrong dimension

It is exporting the cylindrical bodies with wrong dimensions.
In fusion when right click, properties, the bounding box show the right dimensions (or projection) of the body.

Fractional units can't be converted to Float in bounding dimensions

I use fractional units (i.e. 1 1/2"), but if I try to generate a BOM that includes dimensions, I get the following error:

Failed:
Traceback (most recent call last):
  File "CSV-BOM.py", line 540, in notify
    csvStr = self.collectData(design, bom, prefs)
  File "CSV-BOM.py", line 211, in collectData
    dimX = float(design.fusionUnitsManager.formatInternalValue(item["boundingBox["x"], defaultUnit, False))
  ValueError: could not convert string to float: '27 7/8'

I'm not a python developer, but a quick google search shows this as a way to convert fractions to decimals Convert Fraction to Float, and if I manually added that on lines 211-213 and 276-278, I was able to successfully generate the cut list. Here's what one line looked like:

dimX = float(sum(Fraction(s) for s in design.fusionUnitsManager.formatInternalValue(item["boundingBox"]["x"], defaultUnit, False).split()))

One downside is that just converts everything to decimals, so I have to then mentally convert back to fractional later when using it; ideally you'd have a better solution that automatically handled fractional units.

Otherwise, I really like your extension, thanks for making it!

Missing donation links

Thanks so much for this! All the paid-for things are such a pain in the butt. This worked super well for me!

You are missing a donation link for me to give back in thanks.

Can't load add-in to Fusion

Open dialog won't let me choose the CSV-BOM.py file. Only folder is clickable
image

Has anyone experienced this by any chance?

Multiple Bodies in Component

Can the code be updated to extract each body from a component and include them in the BOM. As is, it' extracts the volume the multiple components represent rather than the individual bodies. For instance, a drawer is extracted as a box rather than 4 individual sides and a bottom.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.