Code Monkey home page Code Monkey logo

csv-bom-plus's People

Contributors

kaixxx avatar macmanpb avatar pettijohn avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

csv-bom-plus's Issues

Possible Encoding Error

When trying to write a BOM in Fusion 360 2.0.9313 for windows 10 X64, I was getting encoding errors. I was able to fix the problem locally with adding "encoding='utf-8'" to the open argument (CSV_BOM_Core.py:118). Don't know if this is an issue with my PC or a broader issue but I figured I'd post it here just in case.

Values in inches have a rounding error IE 20 inches is output as 19.9999997

UnitsManager.formatInternalValue not properly adjusting for General Precision as set in User Preference. It's a known issue. F360 stores data as CM and CVS-BOM converts it back to Inches if that's your working unit of measure, but the conversion is off just a little. For example, 20 inches is converted to 19.9999997 and output as the same instead of being rounded to based on your defined preference.

The solution is simple, but it might not be worth adding if they plan on fixing the function. If somebody needs it like I did, they can update their code with the following changes. I did not test this fix with any other units of measure like ft, cm, mm, inches with fractions.

Before getting to my code, I wanted to thank pettijohn for sharing his work and some nicely documented and structured code. It make researching this fix so much easier for someone who has never coded in python before.

Add the following lines after app is defined in CSV_BOM_Plus.py after ui is defined. It pulls the general precision value from preferences. You can do this using the edit command from the add-ins window.

genPrecision = app.preferences.unitAndValuePreferences.generalPrecision

Then update the lines
"x": maxPointX - minPointX,
"y": maxPointY - minPointY,
"z": maxPointZ - minPointZ

to be as follows
"x": round(maxPointX - minPointX, genPrecision),
"y": round(maxPointY - minPointY, genPrecision),
"z": round(maxPointZ - minPointZ, genPrecision)

This will round the height, width and length to reflect the General Precision setting you have defined in your preferences.

addition

iscreenshot
screenshot2
Good morning,
is it possible to add an option to create categories like on the attached image.

Seiwa

  • Mr.PlanAP0-5x
  • M.PlanAP0-20x
  • M.PlanAP0-10x

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.