Zoom to physical size
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Zoom to physical size
Creating a drawing with TechDraw could be useful too.
Regards / Viele Grüße
Max
Max
Re: Zoom to physical size
Script works, thank you.
-
- Veteran
- Posts: 5505
- Joined: Thu Apr 05, 2018 1:53 am
Re: Zoom to physical size
https://github.com/FreeCAD/FreeCAD/pull/5125
This PR adds Mario's kisolre's macro to the View menu:
If someone wants to build it and test it that would be nice. It doesn't work properly on my build machine, which is running inside a virtual machine, but neither does the macro and it works on my host machine.
This PR adds Mario's kisolre's macro to the View menu:
If someone wants to build it and test it that would be nice. It doesn't work properly on my build machine, which is running inside a virtual machine, but neither does the macro and it works on my host machine.
Last edited by TheMarkster on Sun Oct 24, 2021 6:51 pm, edited 1 time in total.
Re: Zoom to physical size
Hi
good addition tanks but :
there is with FreeCAD the scale view (by carlopav)
13:40:57 Traceback (most recent call last):
13:40:57 File "C:\FreeCAD_weekly-builds-25943-Win-Conda_vc14.x-x86_64\Mod\Draft\draftutils\init_draft_statusbar.py", line 171, in _set_scale
13:40:57 scale_widget.scaleLabel.setText(text_scale)
13:40:57 AttributeError: 'NoneType' object has no attribute 'scaleLabel'
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.25943 (Git)
Build type: Release
Branch: master
Hash: a65464b722a846bd2999aa2fecdff1132b15b297
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/Mars (fr_MA)
mario
good addition tanks but :
this is not Mario's macro this is very good kisolre's macro ([FEATURE REQUEST] Life-size view ?)
there is with FreeCAD the scale view (by carlopav)
but give the error and not runcarlopav wrote:ping
13:40:57 Traceback (most recent call last):
13:40:57 File "C:\FreeCAD_weekly-builds-25943-Win-Conda_vc14.x-x86_64\Mod\Draft\draftutils\init_draft_statusbar.py", line 171, in _set_scale
13:40:57 scale_widget.scaleLabel.setText(text_scale)
13:40:57 AttributeError: 'NoneType' object has no attribute 'scaleLabel'
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.25943 (Git)
Build type: Release
Branch: master
Hash: a65464b722a846bd2999aa2fecdff1132b15b297
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/Mars (fr_MA)
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: Zoom to physical size
This widget has nothing to do with scaling the view. See Draft_annotation_scale_widget.
I have no issue with the widget. But we would probably need a step-by-step scenario to verify.
Code: Select all
OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.26155 (Git)
Build type: Release
Branch: master
Hash: 0926a4148bcff11249fd4f56bc30256102ffe105
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Dutch/Netherlands (nl_NL)
Re: Zoom to physical size
Hi
ok but not work (tested by Draft_Text)
20:05:56 Traceback (most recent call last):
20:05:56 File "C:\FreeCAD_weekly-builds-25943-Win-Conda_vc14.x-x86_64\Mod\Draft\draftutils\init_draft_statusbar.py", line 171, in _set_scale
20:05:56 scale_widget.scaleLabel.setText(text_scale)
20:05:56 AttributeError: 'NoneType' object has no attribute 'scaleLabel'
thanks
mario
ok but not work (tested by Draft_Text)
20:05:56 Traceback (most recent call last):
20:05:56 File "C:\FreeCAD_weekly-builds-25943-Win-Conda_vc14.x-x86_64\Mod\Draft\draftutils\init_draft_statusbar.py", line 171, in _set_scale
20:05:56 scale_widget.scaleLabel.setText(text_scale)
20:05:56 AttributeError: 'NoneType' object has no attribute 'scaleLabel'
TheMarkster wrote:ping
if you want to correct the name (first post github) of the real author kisolreBased on a macro from mario52:
thanks
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
-
- Veteran
- Posts: 5505
- Joined: Thu Apr 05, 2018 1:53 am
Re: Zoom to physical size
I have corrected on github and in comments in the code to give proper credit to kisolre.mario52 wrote: ↑Sun Oct 24, 2021 6:06 pm Hi
ok but not work (tested by Draft_Text)
20:05:56 Traceback (most recent call last):
20:05:56 File "C:\FreeCAD_weekly-builds-25943-Win-Conda_vc14.x-x86_64\Mod\Draft\draftutils\init_draft_statusbar.py", line 171, in _set_scale
20:05:56 scale_widget.scaleLabel.setText(text_scale)
20:05:56 AttributeError: 'NoneType' object has no attribute 'scaleLabel'
TheMarkster wrote:pingif you want to correct the name (first post github) of the real author kisolreBased on a macro from mario52:
thanks
mario
Re: Zoom to physical size
Can you post the steps to reproduce? I also do not experience problems with the scale widget...mario52 wrote: ↑Sun Oct 24, 2021 6:06 pm ok but not work (tested by Draft_Text)
20:05:56 Traceback (most recent call last):
20:05:56 File "C:\FreeCAD_weekly-builds-25943-Win-Conda_vc14.x-x86_64\Mod\Draft\draftutils\init_draft_statusbar.py", line 171, in _set_scale
20:05:56 scale_widget.scaleLabel.setText(text_scale)
20:05:56 AttributeError: 'NoneType' object has no attribute 'scaleLabel'
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26035 +4 (Git)
Build type: Release
Branch: Draft_newSubelementMove
Hash: e26b6c04f887bacb5bceba5a1e9dfb4a87bd15a4
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Italian/Italy (it_IT)
follow my experiments on BIM modelling for architecture design
Re: Zoom to physical size
Hi
@carlopav only if the widget is in top toolBar
other : if the widget is below, i reduce FC after i restore FC the widget is positionned in top toolBar
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.25943 (Git)
Build type: Release
Branch: master
Hash: a65464b722a846bd2999aa2fecdff1132b15b297
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/Mars (fr_MA)
mario
@carlopav only if the widget is in top toolBar
other : if the widget is below, i reduce FC after i restore FC the widget is positionned in top toolBar
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.25943 (Git)
Build type: Release
Branch: master
Hash: a65464b722a846bd2999aa2fecdff1132b15b297
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: French/Mars (fr_MA)
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.