discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Meassuerments workarround

KE
Karl Exler
Tue, Apr 20, 2021 6:49 AM

Dear friends

I never had such a strong learning curve with OpenScad. It is 100% the tool
I looked ever.. I can do all my drafts and ideas in a very short time.

The only thing I miss is MEASSUREMENTs.

As far I could found out there is no convenient way to add meassurement to
my constructions

So I guess there should be an easy was to export my construction and import
it in LibreCad or Freecad (I'm using Mint).

I don't need a detailed explanation but the raw steps would be great.

Many Thanks
Karl

P.S.
As I focused in trhe beginning I have no CAD experience. I'm coming from
programming

--
Sent from: http://forum.openscad.org/

Dear friends I never had such a strong learning curve with OpenScad. It is 100% the tool I looked ever.. I can do all my drafts and ideas in a very short time. The only thing I miss is MEASSUREMENTs. As far I could found out there is no convenient way to add meassurement to my constructions So I guess there should be an easy was to export my construction and import it in LibreCad or Freecad (I'm using Mint). I don't need a detailed explanation but the raw steps would be great. Many Thanks Karl P.S. As I focused in trhe beginning I have no CAD experience. I'm coming from programming -- Sent from: http://forum.openscad.org/
D
Dave
Tue, Apr 20, 2021 8:12 AM

I export the file as an STL file and then open it with 3d-Tool Free Viewer it has an excellent measuring capability.

Dave On 20/04/2021 07:49, Karl Exler wrote:

Dear friends

I never had such a strong learning curve with OpenScad. It is 100% the tool I looked ever.. I can do all my drafts and ideas in a very short time.

The only thing I miss is MEASSUREMENTs.

As far I could found out there is no convenient way to add meassurement to my constructions

So I guess there should be an easy was to export my construction and import it in LibreCad or Freecad (I'm using Mint).

I don't need a detailed explanation but the raw steps would be great.

Many Thanks
Karl

P.S.
As I focused in trhe beginning I have no CAD experience. I'm coming from programming


Sent from the OpenSCAD mailing list archive at Nabble.com.

<pre class="moz-quote-pre" wrap="">_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to <a class="moz-txt-link-abbreviated" href="mailto:discuss-leave@lists.openscad.org">discuss-leave@lists.openscad.org</a>
KE
Karl Exler
Tue, Apr 20, 2021 8:39 AM

Thanks a lot for the quick answer.... But as I wrote I'm Linux-User and
this tool is only available for Win.

BR
Karl

Am 20.04.21 um 10:12 schrieb Dave:

I export the file as an STL file and then open it with 3d-Tool Free
Viewer it has an excellent measuring capability.

Dave

On 20/04/2021 07:49, Karl Exler wrote:

Dear friends

I never had such a strong learning curve with OpenScad. It is 100%
the tool I looked ever.. I can do all my drafts and ideas in a very
short time.

The only thing I miss is MEASSUREMENTs.

As far I could found out there is no convenient way to add
meassurement to my constructions

So I guess there should be an easy was to export my construction and
import it in LibreCad or Freecad (I'm using Mint).

I don't need a detailed explanation but the raw steps would be great.

Many Thanks
Karl

P.S.
As I focused in trhe beginning I have no CAD experience. I'm coming
from programming

Sent from the OpenSCAD mailing list archive
http://forum.openscad.org/ at Nabble.com.


OpenSCAD mailing list
To unsubscribe send an email todiscuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Thanks a lot for the quick answer.... But as I wrote I'm Linux-User and this tool is only available for Win. BR Karl Am 20.04.21 um 10:12 schrieb Dave: > > I export the file as an STL file and then open it with 3d-Tool Free > Viewer it has an excellent measuring capability. > > Dave > > > On 20/04/2021 07:49, Karl Exler wrote: >> Dear friends >> >> I never had such a strong learning curve with OpenScad. It is 100% >> the tool I looked ever.. I can do all my drafts and ideas in a very >> short time. >> >> The only thing I miss is MEASSUREMENTs. >> >> As far I could found out there is no convenient way to add >> meassurement to my constructions >> >> So I guess there should be an easy was to export my construction and >> import it in LibreCad or Freecad (I'm using Mint). >> >> I don't need a detailed explanation but the raw steps would be great. >> >> Many Thanks >> Karl >> >> P.S. >> As I focused in trhe beginning I have no CAD experience. I'm coming >> from programming >> ------------------------------------------------------------------------ >> Sent from the OpenSCAD mailing list archive >> <http://forum.openscad.org/> at Nabble.com. >> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email todiscuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
DE
David Eccles (gringer)
Tue, Apr 20, 2021 9:30 AM

FreeCAD has a measurement tool; you can import the STL(s) into FreeCAD and
use that:

https://www.freecadweb.org/

Apparently FreeCAD has an OpenSCAD workbench which allows you to do some
OpenSCAD things within FreeCAD.

--
Sent from: http://forum.openscad.org/

FreeCAD has a measurement tool; you can import the STL(s) into FreeCAD and use that: https://www.freecadweb.org/ Apparently FreeCAD has an OpenSCAD workbench which allows you to do some OpenSCAD things within FreeCAD. -- Sent from: http://forum.openscad.org/
LM
Leonard Martin Struttmann
Tue, Apr 20, 2021 12:23 PM

Also, Sketchup (https://sketchup.com/try-sketchup#for-personal) is a web
browser based 3D tool that allows me to insert an STL and make
measurements.  It's free for personal use.

On Tue, Apr 20, 2021 at 4:30 AM David Eccles (gringer) <
bioinformatics@gringene.org> wrote:

FreeCAD has a measurement tool; you can import the STL(s) into FreeCAD and
use that:

https://www.freecadweb.org/

Apparently FreeCAD has an OpenSCAD workbench which allows you to do some
OpenSCAD things within FreeCAD.

Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

Also, Sketchup (https://sketchup.com/try-sketchup#for-personal) is a web browser based 3D tool that allows me to insert an STL and make measurements. It's free for personal use. On Tue, Apr 20, 2021 at 4:30 AM David Eccles (gringer) < bioinformatics@gringene.org> wrote: > FreeCAD has a measurement tool; you can import the STL(s) into FreeCAD and > use that: > > https://www.freecadweb.org/ > > Apparently FreeCAD has an OpenSCAD workbench which allows you to do some > OpenSCAD things within FreeCAD. > ------------------------------ > Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> > at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
JB
Jordan Brown
Tue, Apr 20, 2021 3:34 PM

Truly measuring from one point to another on a model is close to
impossible, because of the structure of the language.  Modules are black
holes; you can't get any information out of them.

However, here's a measuring stick that you can drop into your model.  If
you position it so that it lines up with the two points, you can read
off the dimension.

It doesn't have any actual numeric markings; instead, it has black marks
every once in a while that you can count.  You can set the interval, or
it'll automatically pick a power-of-ten interval based on how far away
the camera is at refresh.  Adding numbers wouldn't be too hard.  Note
that it's only visible if you set $measure true.

module measuringstick(len, interval=pow(10,floor(log($vpd)-1)), center=false) {
if (!is_undef($measure) && $measure) {
r = 0.5;
mark = interval * 0.01;
%translate([0, 0, center ? -len/2 : 0]) {
for (z=[0:interval:len]) {
mark1 = min(len-z, mark/2);
if (mark1 > 0) {
translate([0,0,z]) color("black") cylinder(r=r, h=mark/2);
}
z2 = z + mark1;
block = min(len-z2, interval-mark);
if (block > 0) {
translate([0,0,z2]) cylinder(r=r, h=block);
}
z3 = z2 + block;
mark2 = min(len-z3, mark/2);
if (mark2 > 0) {
translate([0,0,z3]) color("black") cylinder(r=r, h=mark/2);
}
}
}
}
}

//$measure=true;
rotate([10,0,0]) measuringstick(100);

Truly measuring from one point to another on a model is close to impossible, because of the structure of the language.  Modules are black holes; you can't get any information out of them. However, here's a measuring stick that you can drop into your model.  If you position it so that it lines up with the two points, you can read off the dimension. It doesn't have any actual numeric markings; instead, it has black marks every once in a while that you can count.  You can set the interval, or it'll automatically pick a power-of-ten interval based on how far away the camera is at refresh.  Adding numbers wouldn't be too hard.  Note that it's only visible if you set $measure true. module measuringstick(len, interval=pow(10,floor(log($vpd)-1)), center=false) { if (!is_undef($measure) && $measure) { r = 0.5; mark = interval * 0.01; %translate([0, 0, center ? -len/2 : 0]) { for (z=[0:interval:len]) { mark1 = min(len-z, mark/2); if (mark1 > 0) { translate([0,0,z]) color("black") cylinder(r=r, h=mark/2); } z2 = z + mark1; block = min(len-z2, interval-mark); if (block > 0) { translate([0,0,z2]) cylinder(r=r, h=block); } z3 = z2 + block; mark2 = min(len-z3, mark/2); if (mark2 > 0) { translate([0,0,z3]) color("black") cylinder(r=r, h=mark/2); } } } } } //$measure=true; rotate([10,0,0]) measuringstick(100);
KE
Karl Exler
Wed, Apr 21, 2021 7:14 PM

I have found a suitable way to apply measurements to my constructions:

  1. I use projection() to make make a 2D model from my 3D construction
  2. export it as DXF
  3. import it in LibreCad, where I can easily make measurements

BR
Karl

Am 20.04.21 um 08:49 schrieb Karl Exler:

Dear friends

I never had such a strong learning curve with OpenScad. It is 100% the
tool I looked ever.. I can do all my drafts and ideas in a very short
time.

The only thing I miss is MEASSUREMENTs.

As far I could found out there is no convenient way to add
meassurement to my constructions

So I guess there should be an easy was to export my construction and
import it in LibreCad or Freecad (I'm using Mint).

I don't need a detailed explanation but the raw steps would be great.

Many Thanks
Karl

P.S.
As I focused in trhe beginning I have no CAD experience. I'm coming
from programming

Sent from the OpenSCAD mailing list archive
http://forum.openscad.org/ at Nabble.com.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I have found a suitable way to apply measurements to my constructions: 1) I use projection() to make make a 2D model from my 3D construction 2) export it as DXF 3) import it in LibreCad, where I can easily make measurements BR Karl Am 20.04.21 um 08:49 schrieb Karl Exler: > Dear friends > > I never had such a strong learning curve with OpenScad. It is 100% the > tool I looked ever.. I can do all my drafts and ideas in a very short > time. > > The only thing I miss is MEASSUREMENTs. > > As far I could found out there is no convenient way to add > meassurement to my constructions > > So I guess there should be an easy was to export my construction and > import it in LibreCad or Freecad (I'm using Mint). > > I don't need a detailed explanation but the raw steps would be great. > > Many Thanks > Karl > > P.S. > As I focused in trhe beginning I have no CAD experience. I'm coming > from programming > ------------------------------------------------------------------------ > Sent from the OpenSCAD mailing list archive > <http://forum.openscad.org/> at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org