[SOLVED] view solid colors in technical drawing

Discussions about the development of the TechDraw workbench
jango
Posts: 7
Joined: Sun Aug 26, 2018 9:43 pm

[SOLVED] view solid colors in technical drawing

Postby jango » 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:

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

Re: view solid colors in technical drawing

Postby wandererfan » Mon Aug 27, 2018 1:32 pm

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.
jango
Posts: 7
Joined: Sun Aug 26, 2018 9:43 pm

Re: [SOLVED] view solid colors in technical drawing

Postby jango » Tue Aug 28, 2018 3:20 am

Not a perfect and easy solution, but function for now.
User avatar
yorik
Site Admin
Posts: 11510
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: [SOLVED] view solid colors in technical drawing

Postby yorik » Tue Aug 28, 2018 1:46 pm

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...
wandererfan
Posts: 2968
Joined: Tue Nov 06, 2012 5:42 pm

Re: [SOLVED] view solid colors in technical drawing

Postby wandererfan » Wed Aug 29, 2018 12:40 am

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? ;)
jango
Posts: 7
Joined: Sun Aug 26, 2018 9:43 pm

Re: [SOLVED] view solid colors in technical drawing

Postby jango » Thu Aug 30, 2018 3:33 pm

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 667 times
gear.png
gear.png (20.94 KiB) Viewed 667 times
User avatar
Kunda1
Posts: 5482
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] view solid colors in technical drawing

Postby Kunda1 » Fri Aug 31, 2018 7:57 am

Does this Feature Request merit a ticket ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
wandererfan
Posts: 2968
Joined: Tue Nov 06, 2012 5:42 pm

Re: [SOLVED] view solid colors in technical drawing

Postby wandererfan » 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.
User avatar
Kunda1
Posts: 5482
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] view solid colors in technical drawing

Postby Kunda1 » Fri Aug 31, 2018 1:07 pm

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.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 5482
Joined: Thu Jan 05, 2017 9:03 pm

Re: [SOLVED] view solid colors in technical drawing

Postby Kunda1 » Fri Aug 31, 2018 1:15 pm

Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features