Tech Draw Navigation and general questions

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
JoeB
Posts: 18
Joined: Fri Nov 24, 2017 6:30 pm

Tech Draw Navigation and general questions

Post by JoeB »

Version 0.17 Rev 13247 on Windows 10.
I have several questions regarding TechDraw:
1) Is there any way to change the mouse navigation on tech draw pages so that it acts like the rest of Freecad? On my box it is set up with sliders so it is difficult to dimension parts that span the page.
2) Is there any way to move views from one page to another page?
Thank you in advance
Joe
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Tech Draw Navigation and general questions

Post by wandererfan »

JoeB wrote: Wed Apr 04, 2018 3:27 am 1) Is there any way to change the mouse navigation on tech draw pages so that it acts like the rest of Freecad? On my box it is set up with sliders so it is difficult to dimension parts that span the page.
We've only implemented the default pan/zoom so far. It's been on the list for a while.
JoeB wrote: 2) Is there any way to move views from one page to another page?
Yes, but not easily via the Gui. I don't recommend it at this time. Could do it with some Python code.
JoeB
Posts: 18
Joined: Fri Nov 24, 2017 6:30 pm

Re: Tech Draw Navigation and general questions

Post by JoeB »

Wow! You guys keep surprising me as to what FC can do. I should have looked at the specs on TechDraw first. It looks like I can generate a number of views, set the scales, and then add pages and or move the views around on different pages so they fit. Perfect!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Tech Draw Navigation and general questions

Post by NormandC »

wandererfan wrote: Wed Apr 04, 2018 1:31 pm Yes, but not easily via the Gui. I don't recommend it at this time.
No kidding.
  1. Make FC document with a TechDraw page and a ProjGroup
  2. Create a second TechDraw page
  3. Select ProjGroup in the first Page and all its content
  4. Right-click --> Copy
  5. To question whether to copy dependencies, click No
  6. Right-click on the second Page --> Paste
  7. Copied ProjGroup is created below and outside the second Page
  8. No way to drag it over the Page, not visible in it
  9. Double-click on the copied ProjGroup --> instant crash!
  10. Alternatively: if either second Page or ProjGroup is deleted, all document windows are "loosened" from the main area (odd hybrid between mosaic and tiled windows)
Maybe I should have refrained from posting. I don't want to delay the v0.17 release any further. :D
JoeB
Posts: 18
Joined: Fri Nov 24, 2017 6:30 pm

Re: Tech Draw Navigation and general questions

Post by JoeB »

Rough draft to see if moving a page view object move from one page to another works and it does
Pick two objects, the first being the wind to move, the second the page to move to

obj = FreeCADGui.Selection.getSelection()[0]# view to move
objp = FreeCADGui.Selection.getSelection()[1]# page to move view to.
objm = App.ActiveDocument.addObject('TechDraw::DrawViewPart',"test1")
objm.Source=obj.Source
objp.addView(objm)
objm.Scale=.obj.Scale
objm.LineWidth=obj.LineWidth

...... add more properties, etc, or select them all
then delete the original view....
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Tech Draw Navigation and general questions

Post by wandererfan »

JoeB wrote: Fri Apr 06, 2018 2:23 am Rough draft to see if moving a page view object move from one page to another works and it does
Pick two objects, the first being the wind to move, the second the page to move to
pobj.removeView(objm) removes test1 from the Tree, but not from page display. Need to fix that. Closing/reopening page is a workaround.

Moving the view using the standard cut/paste or drag/drop doesn't look simple. Might be a while before you can do this in the Gui.
JoeB
Posts: 18
Joined: Fri Nov 24, 2017 6:30 pm

Re: Tech Draw Navigation and general questions

Post by JoeB »

I was scared of doing that in a script as I am a newbie and wanted to make sure it works reliably. Tuning off the page "keep updated" on pages not being worked on really speeds up the process. You may want to post this to the naysayers about techdraw.
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Tech Draw Navigation and general questions

Post by wandererfan »

JoeB wrote: Fri Apr 06, 2018 5:23 pm I was scared of doing that in a script as I am a newbie and wanted to make sure it works reliably. Tuning off the page "keep updated" on pages not being worked on really speeds up the process. You may want to post this to the naysayers about techdraw.
Naysayers?!! We have naysayers?? We are in good company then. :lol:
JoeB
Posts: 18
Joined: Fri Nov 24, 2017 6:30 pm

Re: Tech Draw Navigation and general questions

Post by JoeB »

Another question:
Is there any way to tag items in FC with a circle (with mk number) and a leader pointing to the item? Cad-document.pdf shows an example and FC-document.pdf shows the FC equivalent. I generate the page, page views and bill of materials via python code.
Any guidance or advice would be appreciated
Attachments
cad-document.pdf
(43.84 KiB) Downloaded 95 times
fc-document.pdf
(522.52 KiB) Downloaded 66 times
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Tech Draw Navigation and general questions

Post by wandererfan »

JoeB wrote: Mon Apr 09, 2018 9:34 pm Is there any way to tag items in FC with a circle (with mk number) and a leader pointing to the item? Cad-document.pdf shows an example and FC-document.pdf shows the FC equivalent. I generate the page, page views and bill of materials via python code.
Leaders/callouts didn't make it into this release. You can fake it by inserting an Svg symbol, but that isn't very elegant.
Post Reply