Giter Site home page Giter Site logo

Comments (10)

davesrocketshop avatar davesrocketshop commented on June 2, 2024

ShapeColor is implemented as a custom attribute. There should be no issue. But of course that doesn't mean there isn't.

Please include simple steps to reproduce as I'm not familiar with the workbench

from freecad_sheetmetal.

maxwxyz avatar maxwxyz commented on June 2, 2024

I'm not sure if related to Material but it worked with the last weekly build before the Material merge.
Just select any edge or point and try any commands, no feature is working.
You can create a base shape with the right button and select another edge and click e.g. bend:
grafik

from freecad_sheetmetal.

shaise avatar shaise commented on June 2, 2024

if shapeColor no longer available it will break Fasteners as well.
Isn't it backward compatible?

from freecad_sheetmetal.

maxwxyz avatar maxwxyz commented on June 2, 2024

With a quick test, Fasteners WB works as usual. Maybe there was another change introduced?

from freecad_sheetmetal.

shaise avatar shaise commented on June 2, 2024

@maxwxyz Do you have the latest version?
In the latest version (as of yesterday) I added an option to set custom default color for fasteners in the preferences.

from freecad_sheetmetal.

maxwxyz avatar maxwxyz commented on June 2, 2024

@shaise you are right, I was using 0.5.15.
But also adding or moving fasterners with the 0.5.16 works fine.
The default color seems to have no effect though, or does it need a restart?
Edit: Also with a restart the default color setting in the preferences has no effect. But there are no errors. Maybe there could be an option to set the default material instead? But it obviously shouldn't break it for users on the stable 0.21.2.

from freecad_sheetmetal.

shaise avatar shaise commented on June 2, 2024

I understand why it has no effect. it just sets the diffuse color attrib, but this attrib has no meaning anymore. This is not good.
It should be backward compatible.
Regarding sheetmetal, I will try a new approach and let you know.

from freecad_sheetmetal.

shaise avatar shaise commented on June 2, 2024

Hi @maxwxyz ,
The feature that was broken is the material preservation system. This means that if you change the color of a sheetmetal part, each time you add a new bend or other sheetmetal feature, the color will be preserved and not revert to gray.
I have changed the preservation system to be more robust and it now works both on new and old builds.
Please try and let me know.
However what I don't like is that in the new builds there is no way to change the color of a part without setting a new material. Even setting "Random Color" which I use a lot has no effect!
This is probably why fasteners default color no longer works.

shai

from freecad_sheetmetal.

maxwxyz avatar maxwxyz commented on June 2, 2024

The SM features work now! But I cannot set a Material or ShapeColor to the body

from freecad_sheetmetal.

maxwxyz avatar maxwxyz commented on June 2, 2024

But this seems to be the issue with FreeCAD/FreeCAD#13344 I can apply a Material to a specific SM feature, e.g. a Bend
And for RandomColor there seems to be a PR which fixes this: FreeCAD/FreeCAD#13332

from freecad_sheetmetal.

Related Issues (20)

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.