Error inserting simple cube into TechDraw Page

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
toddg
Posts: 2
Joined: Sat Oct 23, 2021 7:48 pm

Error inserting simple cube into TechDraw Page

Post by toddg »

Sample
My simple project is here, not sure why there are two FCSTD files, I only created this once...
https://github.com/ToddG/experimental/t ... er/freecad

Repro

1. Create a sketch, in my example 82" x 112.5"
2. Resolve, goes green, save
3. Pad
4. First error, after padding, I had to search around for the zoom to fit as the scale didn't auto adjust. Don't remember where I found a zoom to fit, but eventually found it.
5. Open TechDraw workbench
6. Second error, the buttons to insert were all greyed out, figured out to go to the menu and "insert page using template", selected US_Letter_Landscape.svg
7. Now that the template is showing, press the insert button -> Error "No shapes, Groups, or Links in this selection". WTF does that mean?
8. Go back to 3D pad view, select a face, go back to tech draw page, press insert -> Error, the inserted object is 10x the size of my page. WTF. What am I supposed to do now? Why doesn't this autoscale? How do I scale this?
9. Another error, how come I only get the TOP view and not an isometric view like what I was looking at in the 3D pad view? What magic do I have to do to get an isometric view in techdraw?
10. Go back to 3D Pad view, right click and select the top, side and fronts of this cube, go back to tech draw page and insert... again it only inserts the TOP view, and again, 10x the size of my page.

Questions
Q1. What is the best way to insert drawings into tech draw? For me the whole reason of using Freecad is so I can design objects parametrically and then generate shop drawings so I can build these things.
Q2. How do I insert drawings into tech draw so they auto scale to the page? I would have thought that's the default.
Q3. How do I insert drawings into tech draw such that I get isometric shapes? Just getting the TOP view is not super helpful.

Freecad Version (using appimage 19.2
```
OS: Ubuntu 20.04.3 LTS (xmonad)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
```

Report View

```
12:38:16 OpenGL version is: 4.6 (4.6 (Compatibility Profile) Mesa 20.2.6)
12:38:16 Run Gui init script
12:38:16 Init: Running FreeCADGuiInit.py start script...
12:38:16 Init: Searching modules...
12:38:17 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/AddonManager... done
12:38:17 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Arch... done
12:38:17 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Draft... done
12:38:17 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Drawing... done
12:38:17 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Fem... done
12:38:17 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Idf(InitGui.py not found)... ignore
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Image... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Import... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Inspection... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Material... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Measure(InitGui.py not found)... ignore
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Mesh... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/MeshPart... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/OpenSCAD... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Part... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/PartDesign... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Path... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Points... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Raytracing... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/ReverseEngineering... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Robot... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Show(InitGui.py not found)... ignore
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Sketcher... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Spreadsheet... done
12:38:18 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Start... done
12:38:19 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Surface... done
12:38:19 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/TechDraw... done
12:38:19 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Test... done
12:38:19 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Tux... done
12:38:19 Init: Initializing /tmp/.mount_freecaSnSo5M/usr/Mod/Web... done
12:38:19 Init: Initializing freecad.appimage
12:38:19 Init: Initializing freecad.appimage... done
12:38:19 Init: Loading FreeCAD GUI
12:38:19 Init: Running FreeCADGuiInit.py start script... done
12:38:21 Init: Activating default workbench StartWorkbench
12:38:21 Loading GUI of Web module... done
12:38:21 Loading GUI of Start module... done
12:38:21 Loading Start module... done
12:38:21 Init: Showing main window
12:38:21 Main window restored
12:38:21 Show main window
12:38:21 Toolbars restored
12:38:21 Connected to spacenav daemon
12:38:21 Init: Entering event loop
12:38:21 Init: Processing command line files
12:39:22 Module: Part
12:39:22 Loading Part module... done
12:39:22 Loading Sketcher module... done
12:39:22 Loading PartDesign module... done
12:39:22 Loading GUI of Part module... done
12:39:22 Loading GUI of Sketcher module... done
12:39:22 Loading GUI of PartDesign module... done
12:39:37 Sketcher::setUpSketch()-T:0.001
12:39:37 Sketcher::Solve()-DogLeg-T:0
12:39:37 Sketcher::setUpSketch()-T:0
12:39:37 Sketcher::Solve()-DogLeg-T:0
12:40:09 Sketcher::setUpSketch()-T:0
12:40:09 Sketcher::Solve()-DogLeg-T:0
12:40:09 Sketcher::setUpSketch()-T:0
12:40:09 Sketcher::Solve()-DogLeg-T:0
12:40:09 Sketcher::setUpSketch()-T:0
12:40:09 Sketcher::Solve()-DogLeg-T:0
12:40:09 Sketcher::setUpSketch()-T:0
12:40:09 Sketcher::Solve()-DogLeg-T:0
12:40:09 Sketcher::setUpSketch()-T:0
12:40:09 Sketcher::Solve()-DogLeg-T:0
12:40:09 Sketcher::setUpSketch()-T:0
12:40:09 Sketcher::Solve()-DogLeg-T:0
12:40:10 Sketcher::setUpSketch()-T:0
12:40:10 Sketcher::Solve()-DogLeg-T:0
12:40:10 Sketcher::setUpSketch()-T:0.001
12:40:10 Sketcher::Solve()-DogLeg-T:0
12:40:10 Sketcher::setUpSketch()-T:0
12:40:10 Sketcher::Solve()-DogLeg-T:0
12:40:10 Sketcher::setUpSketch()-T:0
12:40:10 Sketcher::Solve()-DogLeg-T:0.001
12:40:10 Sketcher::setUpSketch()-T:0
12:40:10 Sketcher::Solve()-DogLeg-T:0
12:40:10 Sketcher::setUpSketch()-T:0
12:40:10 Sketcher::Solve()-DogLeg-T:0
12:40:11 Sketcher::setUpSketch()-T:0
12:40:11 Sketcher::Solve()-DogLeg-T:0
12:40:11 Sketcher::setUpSketch()-T:0
12:40:11 Sketcher::Solve()-DogLeg-T:0
12:40:11 Sketcher::setUpSketch()-T:0.001
12:40:11 Sketcher::Solve()-DogLeg-T:0
12:40:11 Sketcher::setUpSketch()-T:0
12:40:11 Sketcher::Solve()-DogLeg-T:0
12:40:11 Sketcher::setUpSketch()-T:0
12:40:11 Sketcher::Solve()-DogLeg-T:0
12:40:11 Sketcher::setUpSketch()-T:0
12:40:11 Sketcher::Solve()-DogLeg-T:0
12:40:13 Sketcher::setUpSketch()-T:0
12:40:13 Sketcher::Solve()-DogLeg-T:0
12:40:13 Sketcher::setUpSketch()-T:0.001
12:40:13 Sketcher::Solve()-DogLeg-T:0
12:40:13 Sketcher::setUpSketch()-T:0.001
12:40:13 Sketcher::Solve()-DogLeg-T:0
12:40:13 Sketcher::setUpSketch()-T:0.001
12:40:13 Sketcher::Solve()-DogLeg-T:0
12:40:13 Sketcher::setUpSketch()-T:0
12:40:13 Sketcher::Solve()-DogLeg-T:0
12:40:13 Sketcher::setUpSketch()-T:0.001
12:40:13 Sketcher::Solve()-DogLeg-T:0
12:40:29 Sketcher::setUpSketch()-T:0.001
12:40:29 Sketcher::Solve()-DogLeg-T:0
12:40:29 Sketcher::setUpSketch()-T:0.001
12:40:29 Sketcher::Solve()-DogLeg-T:0
12:40:29 Sketcher::setUpSketch()-T:0
12:40:29 Sketcher::Solve()-DogLeg-T:0
12:40:36 Sketcher::setUpSketch()-T:0
12:40:36 Sketcher::Solve()-DogLeg-T:0
12:40:47 Sketcher::setUpSketch()-T:0
12:40:47 Sketcher::Solve()-DogLeg-T:0
12:40:47 Sketcher::setUpSketch()-T:0
12:40:47 Sketcher::Solve()-DogLeg-T:0
12:40:47 Sketcher::setUpSketch()-T:0
12:40:47 Sketcher::Solve()-DogLeg-T:0
12:40:47 Sketcher::setUpSketch()-T:0
12:40:47 Sketcher::Solve()-DogLeg-T:0
12:40:47 Sketcher::setUpSketch()-T:0
12:40:47 Sketcher::Solve()-DogLeg-T:0
12:40:47 Sketcher::setUpSketch()-T:0.001
12:40:47 Sketcher::Solve()-DogLeg-T:0
12:40:53 Sketcher::setUpSketch()-T:0.001
12:40:53 Sketcher::Solve()-DogLeg-T:0
12:41:03 Sketcher::setUpSketch()-T:0
12:41:03 Sketcher::Solve()-DogLeg-T:0
12:41:03 Sketcher::setUpSketch()-T:0
12:41:03 Sketcher::Solve()-DogLeg-T:0
12:41:03 Sketcher::setUpSketch()-T:0
12:41:03 Sketcher::Solve()-DogLeg-T:0
12:41:03 Sketcher::setUpSketch()-T:0
12:41:03 Sketcher::Solve()-DogLeg-T:0
12:41:03 Sketcher::setUpSketch()-T:0.001
12:41:03 Sketcher::Solve()-DogLeg-T:0
12:41:03 Sketcher::setUpSketch()-T:0
12:41:03 Sketcher::Solve()-DogLeg-T:0
12:42:47 Loading Inspection module... done
12:42:47 Loading TechDraw module... done
12:42:47 Loading TechDrawGui module... done
12:42:58 Template Directory: /tmp/.mount_FreeCAnFUdWY/usr/share/Mod/TechDraw/Templates is not readable
12:43:25 Sketcher::setUpSketch()-T:0.001
12:43:25 Sketcher::Solve()-DogLeg-T:0
12:43:28 MDIVP::onSelectionChanged - unhandled: 4
12:43:28 MDIVP::onSelectionChanged - unhandled: 5
12:43:28 MDIVP::onSelectionChanged - unhandled: 4
12:43:29 MDIVP::onSelectionChanged - unhandled: 5
12:43:29 MDIVP::onSelectionChanged - unhandled: 4
12:43:37 Sketcher::setUpSketch()-T:0.001
12:43:37 Sketcher::Solve()-DogLeg-T:0
12:43:37 Copy '/tmp/FreeCAD_Doc_6b007fe3-de96-4c0b-aaf9-106e1625d3de_167da9_285090/USLetter_Landscape.svg' to '/tmp/FreeCAD_Doc_6b007fe3-de96-4c0b-aaf9-106e1625d3de_167da9_285090/USLetter_Landscape.svg.d8c76df5-7bec-4672-8a88-08a6bf126b46'
12:43:37 MDIVP::onSelectionChanged - unhandled: 5
12:43:41 Sketcher::setUpSketch()-T:0
12:43:41 Sketcher::Solve()-DogLeg-T:0
12:43:43 Sketcher::setUpSketch()-T:0
12:43:43 Sketcher::Solve()-DogLeg-T:0
12:44:18 Loading Draft workbench, done.
12:44:18 Draft workbench activated.
12:44:26 Draft workbench deactivated.
12:44:27 Draft workbench activated.
12:44:31 Draft workbench deactivated.
12:44:31 Sketcher::setUpSketch()-T:0
12:44:31 Sketcher::Solve()-DogLeg-T:0
12:44:36 Sketcher::setUpSketch()-T:0
12:44:36 Sketcher::Solve()-DogLeg-T:0
12:44:36 Draft workbench activated.
12:44:59 Pick a face, 3 vertices or a WP Proxy to define the drawing plane
12:45:52 MDIVP::onSelectionChanged - unhandled: 4
12:45:52 MDIVP::onSelectionChanged - unhandled: 5
12:45:52 MDIVP::onSelectionChanged - unhandled: 4
12:45:52 MDIVP::onSelectionChanged - unhandled: 5
12:45:52 MDIVP::onSelectionChanged - unhandled: 4
12:45:52 MDIVP::onSelectionChanged - unhandled: 5
12:45:52 MDIVP::onSelectionChanged - unhandled: 4
12:45:53 MDIVP::onSelectionChanged - unhandled: 5
12:45:53 MDIVP::onSelectionChanged - unhandled: 7
12:45:53 Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 348, in getOffset
o = float(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftutils/todo.py", line 141, in doTasks
f()
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 181, in checkSelection
if self.handle():
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 206, in handle
FreeCAD.DraftWorkingPlane.alignToFace(sel.SubObjects[0], self.getOffset())
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 350, in getOffset
o = FreeCAD.Units.Quantity(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

12:45:53 Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 348, in getOffset
o = float(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftutils/todo.py", line 141, in doTasks
f()
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 181, in checkSelection
if self.handle():
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 206, in handle
FreeCAD.DraftWorkingPlane.alignToFace(sel.SubObjects[0], self.getOffset())
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 350, in getOffset
o = FreeCAD.Units.Quantity(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

12:45:53 ToDo.doTasks, Unexpected error:
<class 'AttributeError'>
in <bound method Draft_SelectPlane.checkSelection of <draftguitools.gui_selectplane.Draft_SelectPlane object at 0x7f56e1a986a0>>(None)
12:45:54 MDIVP::onSelectionChanged - unhandled: 4
12:45:54 MDIVP::onSelectionChanged - unhandled: 5
12:46:03 Draft workbench deactivated.
12:46:13 MDIVP::onSelectionChanged - unhandled: 4
12:46:13 MDIVP::onSelectionChanged - unhandled: 5
12:46:13 MDIVP::onSelectionChanged - unhandled: 4
12:46:13 MDIVP::onSelectionChanged - unhandled: 5
12:46:13 MDIVP::onSelectionChanged - unhandled: 4
12:46:13 MDIVP::onSelectionChanged - unhandled: 5
12:46:13 MDIVP::onSelectionChanged - unhandled: 4
12:46:14 MDIVP::onSelectionChanged - unhandled: 5
12:46:14 MDIVP::onSelectionChanged - unhandled: 7
12:46:14 Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 348, in getOffset
o = float(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftutils/todo.py", line 141, in doTasks
f()
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 181, in checkSelection
if self.handle():
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 206, in handle
FreeCAD.DraftWorkingPlane.alignToFace(sel.SubObjects[0], self.getOffset())
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 350, in getOffset
o = FreeCAD.Units.Quantity(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

12:46:14 Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 348, in getOffset
o = float(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftutils/todo.py", line 141, in doTasks
f()
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 181, in checkSelection
if self.handle():
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 206, in handle
FreeCAD.DraftWorkingPlane.alignToFace(sel.SubObjects[0], self.getOffset())
File "/tmp/.mount_freecaSnSo5M/usr/Mod/Draft/draftguitools/gui_selectplane.py", line 350, in getOffset
o = FreeCAD.Units.Quantity(self.taskd.form.fieldOffset.text())
AttributeError: 'NoneType' object has no attribute 'fieldOffset'

12:46:14 ToDo.doTasks, Unexpected error:
<class 'AttributeError'>
in <bound method Draft_SelectPlane.checkSelection of <draftguitools.gui_selectplane.Draft_SelectPlane object at 0x7f56e1a986a0>>(None)
12:46:16 Line Group File: /tmp/.mount_freecaSnSo5M/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv is not readable
12:46:16 TIMING - View GO spent: 17.314 millisecs in HLRBRep_Algo & co
12:46:16 TIMING - View GO spent: 0.215 millisecs in hlrToShape and BuildCurves
12:46:16 TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
12:46:16 TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
12:46:16 TechDraw::GeometryObject::addGeomFromCompound edgeCompound is NULL
12:47:01 Hide main window
12:47:58 Show main window
12:47:59 Hide main window
12:49:49 Show main window
12:49:51 Hide main window
12:49:53 Show main window

```
User avatar
M4x
Veteran
Posts: 1472
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: Error inserting simple cube into TechDraw Page

Post by M4x »

First of all: Welcome to the forum!

Please have a look at the thread in the big red banner at the top and provide us with the missing information. Regarding the error messages: Please put those in the code tags to make it more readable.

Regarding your questions: For me it looks like you're trying to use TechDraw without having a look at the wiki or a tutorial beforehand. What you're describing as errors seems to be your misusage of this tool. Please look into this: Basic_TechDraw_Tutorial and TechDraw_Workbench

edit
The big red banner can be found in the help section of this forum where this thread should be moved to. You're welcome to use the link in my current signature.
domad
Veteran
Posts: 2052
Joined: Mon Jun 22, 2020 12:16 pm

Re: Error inserting simple cube into TechDraw Page

Post by domad »

toddg wrote: Sat Oct 23, 2021 8:09 pm ....
Hi toddg, greetings to the community!
.... in continuity with what @ M4x recommends, I am attaching your file with a technical drawing page, so when you have read the basics on how to use the "TechDraw" workbench you can analyze it.
Attachments
garage-woodshop.FCStd
(38.3 KiB) Downloaded 42 times
garage-woodshop.png
garage-woodshop.png (151.35 KiB) Viewed 3866 times
User avatar
M4x
Veteran
Posts: 1472
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: Error inserting simple cube into TechDraw Page

Post by M4x »

Thanks domad, good idea!
toddg
Posts: 2
Joined: Sat Oct 23, 2021 7:48 pm

Re: Error inserting simple cube into TechDraw Page

Post by toddg »

You guys are awesome, thank you. Since this post I've easily spent several hundred hours watching freecad videos, reading the wiki, and tinkering with 0.19, and with realthunder's linkstage3 branch. I'm back on the 0.19 branch, and things are starting to make much more sense now.
Post Reply