DraftView positioning and TechDraw

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: DraftView positioning and TechDraw

Post by paullee »

(mess up posting, this should be after of below post :oops: )

paullee wrote: Fri Oct 08, 2021 6:14 pm Strangely, while attempt to do something that may not be 'orthodox' - putting a few Layer in Group...
(as there is only 1 Layers object, but many Group objects can be created)

Not knowing if there is any side effects, seems working ... :)
yorik wrote: Ping

draft-and-tech-draw-issue_ r2.FCStd
(23.11 KiB) Downloaded 67 times
draft-and-tech-draw-issue_ r2.FCStd
(23.11 KiB) Downloaded 67 times
Attachments
Screenshot from 2021-10-09 02-13-37.png
Screenshot from 2021-10-09 02-13-37.png (201.18 KiB) Viewed 2470 times
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: DraftView positioning and TechDraw

Post by paullee »

(mess up posting, this should be in front of above post :oops: )

Strangely, while attempt to do something that may not be 'orthodox' - putting a few Layer in Group...

find putting a Group into a DraftView by Gui does not works

Need to click Source in an existing DraftView and select the desirable Group to put in :!:

Screenshot from 2021-10-09 02-05-06.png
Screenshot from 2021-10-09 02-05-06.png (200.46 KiB) Viewed 2468 times
Screenshot from 2021-10-09 02-13-04.png
Screenshot from 2021-10-09 02-13-04.png (157.99 KiB) Viewed 2468 times
stanluk
Posts: 13
Joined: Fri Oct 08, 2021 6:43 am

Re: DraftView positioning and TechDraw

Post by stanluk »

Thank You all for posting answers. My problem is now solvable however i'm a but unsatisfied of the solution :)

Let me go back to problem definition. As I mentioned in first post I have N layers, and I want to draw M tech draws. In each tech draw there can be up to two layers on the drawing simultaneously. However the same layers can be repeated in other TechDraw also!.

As I correctly understood the solution, You proposed is to make single DrawView instead of two to workaround placing issue. However I can't make the same object bo be contained in many groups without making deep copy, or is it possible?

I've attached other file to better diagnose the problem.
Attachments
draft-and-tech-draw-issue-updated.FCStd
(63.68 KiB) Downloaded 54 times
stanluk
Posts: 13
Joined: Fri Oct 08, 2021 6:43 am

Re: DraftView positioning and TechDraw

Post by stanluk »

Ok, I've just found Link feature, however linking the Layers and putting links in the group also doesn't work (nothing appears in TechDraw)
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: DraftView positioning and TechDraw

Post by Roy_043 »

chrisb wrote: Fri Oct 08, 2021 5:07 pm It seems to be my config. It works with a plain vanilla config. Any idea which parameter may cause this?
Edit → Preferences... → Draft → General settings → Use Part Primitives when available
:?:
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: DraftView positioning and TechDraw

Post by paullee »

It seems putting Links in a Group, then DraftView point to the Groups works ?


draft-and-tech-draw-issue-updated_ r.FCStd
(67.54 KiB) Downloaded 53 times
Screenshot from 2021-10-09 12-58-48.png
Screenshot from 2021-10-09 12-58-48.png (238.68 KiB) Viewed 2206 times
Screenshot from 2021-10-09 13-00-00.png
Screenshot from 2021-10-09 13-00-00.png (244.59 KiB) Viewed 2206 times
stanluk
Posts: 13
Joined: Fri Oct 08, 2021 6:43 am

Re: DraftView positioning and TechDraw

Post by stanluk »

Nice one, however I think You hacked my example a bit. Consider that in real project (the one that I cannot share unfortunately) I have hundreds of wires in each layer. When I make a link to a layer instead of single wire the TechDraw do not show anything.

I've tried additionally to exchange Layers with groups however with same effect. (The exception is throw additionally)
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: DraftView positioning and TechDraw

Post by chrisb »

Roy_043 wrote: Fri Oct 08, 2021 11:35 pm Edit → Preferences... → Draft → General settings → Use Part Primitives when available
Thanks, that helped. When it is on, "Insert Draft Workbench Object" fails. If it is off, it works. Is this worth a ticket?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: DraftView positioning and TechDraw

Post by paullee »

stanluk wrote: Sat Oct 09, 2021 7:24 am Nice one, however I think You hacked my example a bit. Consider that in real project (the one that I cannot share unfortunately) I have hundreds of wires in each layer. When I make a link to a layer instead of single wire the TechDraw do not show anything.

I've tried additionally to exchange Layers with groups however with same effect. (The exception is throw additionally)
Indeed. Had tried a combination of LinkGroup and Layer under Group / Group under Layer, not good :)

Maybe you can file a Feature Request in Mantis BugTracker.

Hope others have more idea.

draft-and-tech-draw-issue-updated_ r2.FCStd
(71.97 KiB) Downloaded 54 times
Screenshot from 2021-10-09 17-04-56.png
Screenshot from 2021-10-09 17-04-56.png (304.08 KiB) Viewed 2090 times
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: DraftView positioning and TechDraw

Post by Roy_043 »

chrisb wrote: Sat Oct 09, 2021 8:36 am
Roy_043 wrote: Fri Oct 08, 2021 11:35 pm Edit → Preferences... → Draft → General settings → Use Part Primitives when available
Thanks, that helped. When it is on, "Insert Draft Workbench Object" fails. If it is off, it works. Is this worth a ticket?
AFAIK this is correct behavior. Some Draft commands can create Part objects. The TechDraw_DraftView command is not intended to handle them.
Post Reply