VBA and AutoCAD 2002 3D kernal

VBA and AutoCAD 2002 3D kernal

Anonymous
Not applicable
352 Views
5 Replies
Message 1 of 6

VBA and AutoCAD 2002 3D kernal

Anonymous
Not applicable
With VBA and a 3D model of a pipe is it possible to get the diameter of the pipe and the length?

If not...

Could you draw 2D lines around the pipe's exterior and interior radius using VBA?
0 Likes
353 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Hi,

Yes.

Every AutoCAD object has geometric properties which can be accessed with the
code.

--


Laurie Comerford
CADApps
www.cadapps.com.au

"Major" wrote in message
news:f15091a.-1@WebX.maYIadrTaRb...
> With VBA and a 3D model of a pipe is it possible to get the diameter of
the pipe and the length?
> If not...
>
> Could you draw 2D lines around the pipe's exterior and interior radius
using VBA?
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
Laurie,



Could you please expand on this please? The only way I've found to get the properties of a 3D object (other than the Centroid and the Volume) was to explode it and look at the properties of the resultant objects. I'd certainly be interested to know if there is a better way.



Thanks



Wayne Ivory

IT Analyst Programmer

Wespine Industries Pty Ltd
0 Likes
Message 4 of 6

Anonymous
Not applicable
No. 3D entities are abstract objects that describe themselves
in more generic terms. IOW, a cylinder does not understand
that it is a cylinder, so it can't tell you its diameter or
length.

"Major" wrote in message news:f15091a.-1@WebX.maYIadrTaRb...
> With VBA and a 3D model of a pipe is it possible to get the diameter of the pipe and the length?
> If not...
>
> Could you draw 2D lines around the pipe's exterior and interior radius using VBA?
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
FWIW, the 3d objects created by mechanical desktop can be queried in this
way (radius, faces, surface area, etc.).

--
Kevin


"Tony Tanzillo" wrote in message
news:48FA52FF4FAB204D18ED0021E9588A6C@in.WebX.maYIadrTaRb...
> No. 3D entities are abstract objects that describe themselves
> in more generic terms. IOW, a cylinder does not understand
> that it is a cylinder, so it can't tell you its diameter or
> length.
>
> "Major" wrote in message
news:f15091a.-1@WebX.maYIadrTaRb...
> > With VBA and a 3D model of a pipe is it possible to get the diameter of
the pipe and the length?
> > If not...
> >
> > Could you draw 2D lines around the pipe's exterior and interior radius
using VBA?
> >
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
Yes they can, but they're nothing like AutoCAD's abstract
3D objects (3DSOLID and BODY).


"Kevin Terry" wrote in message news:138476FFE69C4C39A99658A4EC96E606@in.WebX.maYIadrTaRb...
> FWIW, the 3d objects created by mechanical desktop can be queried in this
> way (radius, faces, surface area, etc.).
>
> --
> Kevin
>
>
> "Tony Tanzillo" wrote in message
> news:48FA52FF4FAB204D18ED0021E9588A6C@in.WebX.maYIadrTaRb...
> > No. 3D entities are abstract objects that describe themselves
> > in more generic terms. IOW, a cylinder does not understand
> > that it is a cylinder, so it can't tell you its diameter or
> > length.
> >
> > "Major" wrote in message
> news:f15091a.-1@WebX.maYIadrTaRb...
> > > With VBA and a 3D model of a pipe is it possible to get the diameter of
> the pipe and the length?
> > > If not...
> > >
> > > Could you draw 2D lines around the pipe's exterior and interior radius
> using VBA?
> > >
> >
> >
>
>
0 Likes