OficineRobotica wrote: ↑Mon Sep 28, 2020 9:02 am
If, on the other hand, I create part design body based directly on the slices , colors will work as expected. See video from minute 4.16 What I noticed is that the "BaseFeature" icon is different also in this case. With this second technique the model is even parametric but it should work correctly even if the base feature is a simple solid.
The green icon means the base feature is brought in using my SubShapeBinder. Currently, it is used if you bring any object that is inside either an App::Part or PartDesign::Body. SubShapeBinder will take care of cross coordinate system placement tracking. The SubShapeBinder, when used for BaseFeature or Reference (in Boolean) also has MapFaceColor turned on by default. So it will get its color from its source objects. I will modify the code to turn off color mapping when the user manually sets the shape color.
OficineRobotica wrote: ↑Mon Sep 28, 2020 9:28 am
If part design "Pad" would be able to extrude wires (or single line sketch) wouldn't the "Split the previous feature in to multiple solids" be able to do this model all inside the part design workbench instead of jumping between various workbenches? How cool would that be as workflow.
I just checked code. Doing wire extrusion using pad is pretty straight forward. However, it is a bit complicated to manage the generated face. We can't treat it like normal Pad feature which expects a solid, and we shouldn't combine the shape with the previous tip, because combine face with solids makes little sense. The generated shape should be treated like a binder or sketch. Or, maybe like Catia, group them under some folder named 'Geometry', or something like that.
Anyway, even if you can't extrude wire in PartDesign right now, you can, however, do slice using my newly added 'Split' feature. You can import the slicing face into body using SubShapeBinder. By default, the first sliced solid is used as the new tip. You can double click to enable/disable other solids. Or, create another body using those solids as base.
- Screenshot from 2020-09-29 15-18-52.png (15.13 KiB) Viewed 2513 times