bitbybit icon indicating copy to clipboard operation
bitbybit copied to clipboard

Save shape STEP with color

Open denblock opened this issue 4 months ago • 1 comments

Hey, are there any plans to support saving of a shape in STEP format with a provided color?

I am no expert in OCCT, but I think you have to create a doc with the shape, use the XCAFDoc_DocumentTool_ColorTool and create the STEP file with STEPCAFControl_Writer instead of STEPControl_Writer.

As far as I can tell, there are already bindings for STEPCAFControl_Reader in bitbybit-dev-occt, but not for STEPCAFControl_Writer.

denblock avatar Nov 21 '25 07:11 denblock

Hey @denblock,

STEP Colors indeed are not supported at the moment - both during import and export. I'm preoccupied with some other stuff, but I have some beginnings of assembly implementation where I thought colors could come into play. It would provide more "natural" way to assign colors to different shapes within assembly. The problem is that assembly support is quite a big feature and it sits stacked due to time limitations. Whereas simple color support might be a bit easier to implement... I do not have a timeline for this, but I'll let you know when I analyse this more.

matas-bitbybit-dev avatar Nov 25 '25 06:11 matas-bitbybit-dev

Hi @denblock,

The latest release candidate introduces a wide range of new assembly features. I’m happy to share that it’s now possible to save STEP files while preserving colors from Bitbybit.

Check release notes: https://github.com/bitbybit-dev/bitbybit/releases/tag/v1.0.0-rc.1

Blog post: https://learn.bitbybit.dev/blog/step-assembly-support-v1-rc1

matas-bitbybit-dev avatar Feb 05 '26 08:02 matas-bitbybit-dev