parts diagrams?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

parts diagrams?

seph
Hi all, I think this is probably a feature request.

I've been enjoying using openscad to design simple parametric
parts, which I then make. Generally, I'm making things by hand,
sometimes in wood, but more often in metal. Generally I'm not 3d
printing them.

I keep wanting a simple way to get part diagrams out of openscad. Being
parametric, I usually end up designing something and then wanting to
know the rest of the dimensions. My current approach is to export each
part as an STL, and them import the STL into something that will display
dimensions, but that's very roundabout.

seph

Reply | Threaded
Open this post in threaded view
|

Re: parts diagrams?

Giles Bathgate-2
On Thu, 2010-12-30 at 09:28 -0500, seph wrote:

> Hi all, I think this is probably a feature request.
>
> I've been enjoying using openscad to design simple parametric
> parts, which I then make. Generally, I'm making things by hand,
> sometimes in wood, but more often in metal. Generally I'm not 3d
> printing them.
>
> I keep wanting a simple way to get part diagrams out of openscad. Being
> parametric, I usually end up designing something and then wanting to
> know the rest of the dimensions. My current approach is to export each
> part as an STL, and them import the STL into something that will display
> dimensions, but that's very roundabout.
>

Good Idea but.. I think for this to work you would have to be able to
work with the objects openscad produces in a more GUI way. i.e. you
would have to click on points in the view, to measure the distance
between them or draw a dimension line. You would need all sorts of
clever interaction such as snapping to vertex and facet points etc..

When I want to measure an externally imported STL What I usually do is
draw a temporary cylinder of "known" height then make a note of the
height of the cylinder and put this in a "parametric" parameter.

If you have designed the script carefully, then at the top there might
be a list of all the dimensions that you need, although I can see why if
you were doing a wood carving, that you might need to know a dimension
which wasn't explicitly stated.

Also check out this:

http://www.gilesbathgate.com/2010/06/extracting-2d-mendel-outlines-using-openscad/

Maybe you can create a set of 2d drawings which you can then dimension
up in QCad for reference while you are carving.

Regards

Giles



Reply | Threaded
Open this post in threaded view
|

Re: parts diagrams?

andy@kirbyand.co.uk
I guess something like an export in dxf format 2d from a stated angle or cross section would do it. in dxf format you can then dimension it up in another package ie Qcad as sugested.

Or maybe inkscape.

Must admit i am still looking for an easy way to do this with stl files.

--
Like a rolling stone
----- Original message -----

> On Thu, 2010-12-30 at 09:28 -0500, seph wrote:
> > Hi all, I think this is probably a feature request.
> >
> > I've been enjoying using openscad to design simple parametric
> > parts, which I then make. Generally, I'm making things by hand,
> > sometimes in wood, but more often in metal. Generally I'm not 3d
> > printing them.
> >
> > I keep wanting a simple way to get part diagrams out of openscad. Being
> > parametric, I usually end up designing something and then wanting to
> > know the rest of the dimensions. My current approach is to export each
> > part as an STL, and them import the STL into something that will
> > display dimensions, but that's very roundabout.
> >
>
> Good Idea but.. I think for this to work you would have to be able to
> work with the objects openscad produces in a more GUI way. i.e. you
> would have to click on points in the view, to measure the distance
> between them or draw a dimension line. You would need all sorts of
> clever interaction such as snapping to vertex and facet points etc..
>
> When I want to measure an externally imported STL What I usually do is
> draw a temporary cylinder of "known" height then make a note of the
> height of the cylinder and put this in a "parametric" parameter.
>
> If you have designed the script carefully, then at the top there might
> be a list of all the dimensions that you need, although I can see why if
> you were doing a wood carving, that you might need to know a dimension
> which wasn't explicitly stated.
>
> Also check out this:
>
> http://www.gilesbathgate.com/2010/06/extracting-2d-mendel-outlines-using-openscad/
>
> Maybe you can create a set of 2d drawings which you can then dimension
> up in QCad for reference while you are carving.
>
> Regards
>
> Giles
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|

Re: parts diagrams?

Giles Bathgate-2
On Thu, 2010-12-30 at 16:07 +0000, Andy Kirby wrote:
> I guess something like an export in dxf format 2d from a stated angle or cross section would do it. in dxf format you can then dimension it up in another package ie Qcad as sugested.

This is exactly what project(cut=true) does

http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/3D_to_2D_Projection

Anyway on further thought what might be useful is a builtin module (or
modifier character) that can be applied to a sub-tree of primitives.

The module might be called "dimension" and output the children of the
module as well as a semi-transparent bounding box, it might also echo
the bounding box dimensions, or even render dimension cylinders (with a
cone at each end much like an 3d arrow) and text.

it might be used as such

module thing()
{
...
}

dimension() thing();

or as a modifier character '?'

module thing()
{
...
}

?thing();


Regards

Giles.


Reply | Threaded
Open this post in threaded view
|

Re: parts diagrams?

seph
In reply to this post by Giles Bathgate-2
Given how I'm designing, this is entirely about finding the dimensions I
did not specify. A simple example would be a vertical triangle --
perhaps I want to specify the height and the angle, but want my cad tool
to find me the base.

I'm not sure what kind of GUI it would require. At the most complex,
something to point and click points of interest, but there might be
something simpler.

My current solution is to import the STL into google sketchup, and do
the measuring there.

For simpler parts, the 3d-2d projection and dxf looks a bit cleaner.

seph

Giles Bathgate <[hidden email]> writes:

> On Thu, 2010-12-30 at 09:28 -0500, seph wrote:
>> Hi all, I think this is probably a feature request.
>>
>> I've been enjoying using openscad to design simple parametric
>> parts, which I then make. Generally, I'm making things by hand,
>> sometimes in wood, but more often in metal. Generally I'm not 3d
>> printing them.
>>
>> I keep wanting a simple way to get part diagrams out of openscad. Being
>> parametric, I usually end up designing something and then wanting to
>> know the rest of the dimensions. My current approach is to export each
>> part as an STL, and them import the STL into something that will display
>> dimensions, but that's very roundabout.
>>
>
> Good Idea but.. I think for this to work you would have to be able to
> work with the objects openscad produces in a more GUI way. i.e. you
> would have to click on points in the view, to measure the distance
> between them or draw a dimension line. You would need all sorts of
> clever interaction such as snapping to vertex and facet points etc..
>
> When I want to measure an externally imported STL What I usually do is
> draw a temporary cylinder of "known" height then make a note of the
> height of the cylinder and put this in a "parametric" parameter.
>
> If you have designed the script carefully, then at the top there might
> be a list of all the dimensions that you need, although I can see why if
> you were doing a wood carving, that you might need to know a dimension
> which wasn't explicitly stated.
>
> Also check out this:
>
> http://www.gilesbathgate.com/2010/06/extracting-2d-mendel-outlines-using-openscad/
>
> Maybe you can create a set of 2d drawings which you can then dimension
> up in QCad for reference while you are carving.
>
> Regards
>
> Giles
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: parts diagrams?

Giles Bathgate-2
On 30 December 2010 16:18, seph <[hidden email]> wrote:

> Given how I'm designing, this is entirely about finding the dimensions I
> did not specify. A simple example would be a vertical triangle --
> perhaps I want to specify the height and the angle, but want my cad tool
> to find me the base.
>
> I'm not sure what kind of GUI it would require. At the most complex,
> something to point and click points of interest, but there might be
> something simpler.
>
> My current solution is to import the STL into google sketchup, and do
> the measuring there.
>
> For simpler parts, the 3d-2d projection and dxf looks a bit cleaner.
>
> seph

Also there is a

dxf_dim(file="example009.dxf" name="bodywidth");

It would be nice if this builtin function could be documented (I
noticed it on the http://openscad.org/example1.png image) and if
possible also made to work with any 2d node, such as the result of
projection(cut=true);

Regards

Giles