Parametric dimensions from vertices???
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!
Parametric dimensions from vertices???
Hi All,
I see in the documentation http://www.freecadweb.org/wiki/index.ph ... _Dimension that by selecting an edge with ALT you can create a parametric dimension. If however you do not have an edge to select, but two vertices is it currently possibly to create a parametric dimension.
Every time I create a dimension for a drawing and change the parametric model the dimensions do not become updated. I.E. the dimensions do not stay snapped with the original vertices and do not scale in magnitude.
Any advice?
--------------------
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6704 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
I see in the documentation http://www.freecadweb.org/wiki/index.ph ... _Dimension that by selecting an edge with ALT you can create a parametric dimension. If however you do not have an edge to select, but two vertices is it currently possibly to create a parametric dimension.
Every time I create a dimension for a drawing and change the parametric model the dimensions do not become updated. I.E. the dimensions do not stay snapped with the original vertices and do not scale in magnitude.
Any advice?
--------------------
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6704 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Re: Parametric dimensions from vertices???
Hello,
http://www.freecadweb.org/wiki/index.ph ... mensioning
AFAIK It is not possible.Korslight wrote:If however you do not have an edge to select, but two vertices is it currently possibly to create a parametric dimension.
You could try the Drawing Dimensioning add-on. Rather than create Draft Dimensions in the 3D view, it allows you to add dimensions directly to the drawing views. When some changes are made to the part, you can recompute the dimensions.Korslight wrote:Any advice?
http://www.freecadweb.org/wiki/index.ph ... mensioning
Re: Parametric dimensions from vertices???
Hello NormandC,
Thank you for your response and suggestions.
I downloaded the "DrawingDimensioning" workbench and gave it a shot, but no dice unfortunately. When I updated the parametric model the drawing dimensions did not update.
I am a little confused because the documentation says:
Is creating parametric drawings just something that is not yet available in FreeCAD? I am not a programmer, but it seems like the foundation to this has already been made in the "Sketcher" workbench as it is able to pull parametric information from the "Spreadsheet" workbench and from other dimensions created within sketches.
Would something like this be possible to incorporate into 0.17? That is unless it is already available and I do not know how to utilize it.
Thanks
Thank you for your response and suggestions.
I downloaded the "DrawingDimensioning" workbench and gave it a shot, but no dice unfortunately. When I updated the parametric model the drawing dimensions did not update.
I am a little confused because the documentation says:
So doesn't that mean that it does not support parametric updating?No parametric updating, if the drawing is updated the dimensions need to be redone.
Is creating parametric drawings just something that is not yet available in FreeCAD? I am not a programmer, but it seems like the foundation to this has already been made in the "Sketcher" workbench as it is able to pull parametric information from the "Spreadsheet" workbench and from other dimensions created within sketches.
Would something like this be possible to incorporate into 0.17? That is unless it is already available and I do not know how to utilize it.
Thanks
Re: Parametric dimensions from vertices???
Yes in addition this part is important:Korslight wrote:I downloaded the "DrawingDimensioning" workbench and gave it a shot, but no dice unfortunately. When I updated the parametric model the drawing dimensions did not update.
Therefore you have to manually press on the Drawing Dimensioning recompute tool button.NormandC wrote:When some changes are made to the part, you can recompute the dimensions.
Re: Parametric dimensions from vertices???
triplus,
Ah I see! That seemed to do the trick. I was thinking refresh (F5) like how to update the drawing normally. I had not discovered the "recompute dimensions" button.
Works perfect!
Cheers.
Ah I see! That seemed to do the trick. I was thinking refresh (F5) like how to update the drawing normally. I had not discovered the "recompute dimensions" button.
Works perfect!
Cheers.
Re: Parametric dimensions from vertices???
triplus,
Quick question. Would you know how to execute the recompute dimensions command from script or console? Unlike many other FreeCAD functions it does not post the command to the console.
Thanks again
Quick question. Would you know how to execute the recompute dimensions command from script or console? Unlike many other FreeCAD functions it does not post the command to the console.
Thanks again
Re: Parametric dimensions from vertices???
One example:
Code: Select all
import recomputeDimensions
recomputeDimensions.RecomputeDimensions().Activated()
Re: Parametric dimensions from vertices???
triplus,
That is exactly what I am looking for, thank you.
One last thing for future reference; I understand the
as that is the python module included in the DrawingDimensioning workbench, but how did you know to do the
function?
Once again, thanks for being so helpful.
That is exactly what I am looking for, thank you.
One last thing for future reference; I understand the
Code: Select all
import recomputeDimensions
as that is the python module included in the DrawingDimensioning workbench, but how did you know to do the
Code: Select all
recomputeDimensions.RecomputeDimensions().Activated()
function?
Once again, thanks for being so helpful.
Re: Parametric dimensions from vertices???
You're welcome.Korslight wrote:That is exactly what I am looking for, thank you.
I looked in the source code on how it is done....but how did you know to do theCode: Select all
recomputeDimensions.RecomputeDimensions().Activated()
function?
Re: Parametric dimensions from vertices???
I am having a difficult time opening Drawing Dimensioning from the FreeCADCmd.exe console.
When I try to import recomputeDimensions it gives me an error along the lines of
So I went into dimensioning.py and commented out the line:
I also commented the line out in recomputeDimensions.py:
I was then able to successfully import recomputeDimensions, but when I tried opening my file via FreeCAD.open("...") it would crash the console immediately with a "Fatal Python error: This thread must be current when releasing". This only crashed when I had items that pertained to the Drawing Dimensioning workbench such as dimlines. It would not crash a file that had been unaffected by Drawing Dimensioning.
Any idea how to resolve these issues?
When I try to import recomputeDimensions it gives me an error along the lines of
Code: Select all
import recomputeDimensions
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "...\Mod\DrawingDimensioning\rs.py", line 1, in <module>
from dimensioning import *
File "...\Mod\DrawingDimensioning\d
line 740, in <module>
FreeCADGui.addCommand('dd_help', helpCommand())
AttributeError: 'module' object has no attribute 'addCommand'
Code: Select all
FreeCADGui.addCommand('dd_help', helpCommand())
Code: Select all
FreeCADGui.addCommand('dd_recomputeDimensions', RecomputeDimensions())
Any idea how to resolve these issues?