[ Fixed ] New TechDraw_ActiveView does not work?

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

[ Fixed ] New TechDraw_ActiveView does not work?

Post by Roy_043 »

When I try the new TechDraw_ActiveView command I get the error listed below. The created view is empty (just the dashed outline and the label).

Code: Select all

17:03:41  G3d::quickView - no viewer for ActiveView - returning
17:03:41  <class 'SyntaxError'>: ("(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \\UXXXXXXXX escape", ('<string>', 1, 45, None))
17:03:41  Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: ("(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \\UXXXXXXXX escape", ('<string>', 1, 45, None))

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.21.30345 (Git)
Build type: Release
Branch: master
Hash: f42a47aa0fd8c4f34ef63c185d9f29b9b6e84737
Python 3.8.13, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods: 
Last edited by Roy_043 on Fri Sep 16, 2022 7:37 am, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6270
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: [ Bug ] New TechDraw_ActiveView does not work?

Post by wandererfan »

Roy_043 wrote: Sun Sep 11, 2022 3:06 pm When I try the new TechDraw_ActiveView command I get the error listed below. The created view is empty (just the dashed outline and the label).
Are you on the 3d view or the TD page view when you push the button? If I'm on the TD page, I get a message about no active view, but nothing about "unicodeescape codec". I'll try on windows next time I'm near that machine.

I think I'll have to add something to search the 3d views if the "active view" isn't a 3d window.
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Bug ] New TechDraw_ActiveView does not work?

Post by Roy_043 »

wandererfan wrote: Sun Sep 11, 2022 4:12 pm Are you on the 3d view or the TD page view when you push the button?
The error occurs in either case.
User avatar
wandererfan
Veteran
Posts: 6270
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: [ Bug ] New TechDraw_ActiveView does not work?

Post by wandererfan »

Roy_043 wrote: Sun Sep 11, 2022 3:06 pm When I try the new TechDraw_ActiveView command I get the error listed below. The created view is empty (just the dashed outline and the label).
Was not handling "\" in file names properly. Should be fixed by git commit 92294c448e.
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Fixed ] New TechDraw_ActiveView does not work?

Post by Roy_043 »

Thanks for the fix.
Post Reply