[SOLVED] view solid colors in technical drawing

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
jango
Posts: 17
Joined: Sun Aug 26, 2018 9:43 pm

[SOLVED] view solid colors in technical drawing

Post by jango »

Is possible to represent views of a solid in a technical draw that preserve the object original colors? something like this:

Image
Last edited by jango on Tue Aug 28, 2018 3:19 am, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: view solid colors in technical drawing

Post by wandererfan »

jango wrote: Mon Aug 27, 2018 4:12 am Is possible to represent views of a solid in a technical draw that preserve the object original colors? something like this:
Yes, but it isn't perfect or easy. You can apply an SVG hatch using the Solid pattern to any Face in the drawing Image TechDraw_Hatch.

The bad news. 1) You have to apply the hatch to each Face individually. 2) the Face finding algorithm in TechDraw is imperfect, so you might have an area that isn't recognized as a Face.
User avatar
jango
Posts: 17
Joined: Sun Aug 26, 2018 9:43 pm

Re: [SOLVED] view solid colors in technical drawing

Post by jango »

Not a perfect and easy solution, but function for now.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [SOLVED] view solid colors in technical drawing

Post by yorik »

Note that using an Arch Section plane + Techdraw Arch View set in "Solid" rendering mode will produce colored views like the example above. But it is pretty buggy and will fail miserably with complex objects with a lot of curves...

@wandererfan, the current TD view already fills faces with white, right? An easy trick/fix would be to allow for the user to change this for another color...
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: [SOLVED] view solid colors in technical drawing

Post by wandererfan »

yorik wrote: Tue Aug 28, 2018 1:46 pm the current TD view already fills faces with white, right? An easy trick/fix would be to allow for the user to change this for another color...
Yes, solid white fill unless there is a hatch assigned to the face. Adding a Property::Color to the ViewProvider would be an improvement over using a solid hatch on each face.

But somebody is sure to ask for different colors on different faces, no? ;)
User avatar
jango
Posts: 17
Joined: Sun Aug 26, 2018 9:43 pm

Re: [SOLVED] view solid colors in technical drawing

Post by jango »

I've a suggestion: a technical draw is a very important tool for make easy understandable the manufacturing process and quality control of a large variety of products whose representations will be very different. In this sense we need mechanism to modify those representations: make drafts in it, modify "with one click" properties of individual or groups of points, lines, faces or bodies, texts. In example the following cases:
1. A gear arrangement draw have too much information, for simplify views we hide or paint white a group of lines and sketch some conventions.
2. Drawing fabric products we use colors in surfaces to differentiate distinct layers of materials and highlight individual lines that represent joints.
3. In large part lists commonly we need to modify a specific text box without the needing of recompute the whole table.
It's a very useful software! :D just pay more attention to the technical draw module. The examples bellow:
Image
Image
Attachments
inventor.PNG
inventor.PNG (47.67 KiB) Viewed 6831 times
gear.png
gear.png (20.94 KiB) Viewed 6831 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] view solid colors in technical drawing

Post by Kunda1 »

Does this Feature Request merit a ticket ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: [SOLVED] view solid colors in technical drawing

Post by wandererfan »

Kunda1 wrote: Fri Aug 31, 2018 7:57 am Does this Feature Request merit a ticket ?
Probably. But I'm not sure what the Feature Request actually is; easier color drawings, hide individual lines in the drawing, hightlight individual lines, don't recompute on text changes....

Don't see all that being done as one work package.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] view solid colors in technical drawing

Post by Kunda1 »

wandererfan wrote: Fri Aug 31, 2018 10:59 am
Kunda1 wrote: Fri Aug 31, 2018 7:57 am Does this Feature Request merit a ticket ?
Probably. But I'm not sure what the Feature Request actually is; easier color drawings, hide individual lines in the drawing, hightlight individual lines, don't recompute on text changes....

Don't see all that being done as one work package.
I'll split them in to 4 tickets then.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] view solid colors in technical drawing

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply