Visual Basic Customization

Reply
*Medernach, Warren
Message 1 of 5 (83 Views)

Anybody working with simple AutoCAD Surfaces in VBA?

83 Views, 4 Replies
03-23-2001 12:58 AM
Hello all.

I need to generate many 'boxes' by reading values from a database.

I started off by using the Acad3DSolid, but the dwgs are ending up just too
large 6+ megs, and my test is placing about 1600 boxes, and I'll eventually
need to place many more.

So I thought I would try creating the ai_box (3D surface), but there is no
method in VBA for creating this, so you have to create it manually using the
IAcadPolygonMesh object. But the problem with this is you need to pass it
54 coordinates just to create a simple box! This just seems complex, and
there must be a more efficient method?

So I'm just curious if anybody has been working with surfaces, and what
might be some efficient methods to work with them.

Any info creatly appreciated.
Warren Medernach
*Morrissette, Luc
Message 2 of 5 (83 Views)

Re: Anybody working with simple AutoCAD Surfaces in VBA?

03-26-2001 03:26 AM in reply to: *Medernach, Warren
Hi,

You have to work with the base entity (AcadPolygonMesh).

It is not that complex to write a MeshBox function that will create the
PolygonMesh with the 54 pts needed.

Luc Morrissette,
Flairbase inc.

"Warren Medernach" wrote in message
news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYIadrTaRb...
> Hello all.
>
> I need to generate many 'boxes' by reading values from a database.
>
> I started off by using the Acad3DSolid, but the dwgs are ending up just
too
> large 6+ megs, and my test is placing about 1600 boxes, and I'll
eventually
> need to place many more.
>
> So I thought I would try creating the ai_box (3D surface), but there is no
> method in VBA for creating this, so you have to create it manually using
the
> IAcadPolygonMesh object. But the problem with this is you need to pass it
> 54 coordinates just to create a simple box! This just seems complex, and
> there must be a more efficient method?
>
> So I'm just curious if anybody has been working with surfaces, and what
> might be some efficient methods to work with them.
>
> Any info creatly appreciated.
> Warren Medernach
>
*Medernach, Warren
Message 3 of 5 (83 Views)

Re:

03-27-2001 03:22 AM in reply to: *Medernach, Warren
Hello Luc.

Thanks for the info.
Can you give me a 'kick' in the right direction?
How do I determine which coordinate belongs where?
Where can I find more info on the AcadPolygonMesh?

Thanks
Warren Medernach

"Luc Morrissette" wrote in message
news:78F2003360D4FEBE0258D2A546BA59B6@in.WebX.maYIadrTaRb...
> Hi,
>
> You have to work with the base entity (AcadPolygonMesh).
>
> It is not that complex to write a MeshBox function that will create the
> PolygonMesh with the 54 pts needed.
>
> Luc Morrissette,
> Flairbase inc.
>
> "Warren Medernach" wrote in message
> news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYIadrTaRb...
> > Hello all.
> >
> > I need to generate many 'boxes' by reading values from a database.
> >
> > I started off by using the Acad3DSolid, but the dwgs are ending up just
> too
> > large 6+ megs, and my test is placing about 1600 boxes, and I'll
> eventually
> > need to place many more.
> >
> > So I thought I would try creating the ai_box (3D surface), but there is
no
> > method in VBA for creating this, so you have to create it manually using
> the
> > IAcadPolygonMesh object. But the problem with this is you need to pass
it
> > 54 coordinates just to create a simple box! This just seems complex,
and
> > there must be a more efficient method?
> >
> > So I'm just curious if anybody has been working with surfaces, and what
> > might be some efficient methods to work with them.
> >
> > Any info creatly appreciated.
> > Warren Medernach
> >
>
*Morrissette, Luc
Message 4 of 5 (83 Views)

Re:

03-27-2001 11:13 PM in reply to: *Medernach, Warren
Hi,

Draw a box with Autocad 2000, bring the properties box, and use the vertex
property to navigate trough the vertex. This will show you what is the
sequence needed. This vertex list is the array you have to pass to the
coordinates property of the AcadPolygonMesh. Dont forget to set M and N
vertex count as well.

Bye,

Luc Morrissette,
Flairbase inc.

"Warren Medernach" wrote in message
news:B5E60600515D5F023DE48C772AFA7969@in.WebX.maYIadrTaRb...
> Hello Luc.
>
> Thanks for the info.
> Can you give me a 'kick' in the right direction?
> How do I determine which coordinate belongs where?
> Where can I find more info on the AcadPolygonMesh?
>
> Thanks
> Warren Medernach
>
> "Luc Morrissette" wrote in message
> news:78F2003360D4FEBE0258D2A546BA59B6@in.WebX.maYIadrTaRb...
> > Hi,
> >
> > You have to work with the base entity (AcadPolygonMesh).
> >
> > It is not that complex to write a MeshBox function that will create the
> > PolygonMesh with the 54 pts needed.
> >
> > Luc Morrissette,
> > Flairbase inc.
> >
> > "Warren Medernach" wrote in message
> > news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYIadrTaRb...
> > > Hello all.
> > >
> > > I need to generate many 'boxes' by reading values from a database.
> > >
> > > I started off by using the Acad3DSolid, but the dwgs are ending up
just
> > too
> > > large 6+ megs, and my test is placing about 1600 boxes, and I'll
> > eventually
> > > need to place many more.
> > >
> > > So I thought I would try creating the ai_box (3D surface), but there
is
> no
> > > method in VBA for creating this, so you have to create it manually
using
> > the
> > > IAcadPolygonMesh object. But the problem with this is you need to
pass
> it
> > > 54 coordinates just to create a simple box! This just seems complex,
> and
> > > there must be a more efficient method?
> > >
> > > So I'm just curious if anybody has been working with surfaces, and
what
> > > might be some efficient methods to work with them.
> > >
> > > Any info creatly appreciated.
> > > Warren Medernach
> > >
> >
>
*Medernach, Warren
Message 5 of 5 (83 Views)

Re:

03-28-2001 05:53 AM in reply to: *Medernach, Warren
Duh! Such a simple answer, I looked right by it ;-)

Thanks Luc.

Warren Medernach

"Luc Morrissette" wrote in message
news:458B88BF2670D1F6F4C60B818856566D@in.WebX.maYIadrTaRb...
> Hi,
>
> Draw a box with Autocad 2000, bring the properties box, and use the vertex
> property to navigate trough the vertex. This will show you what is the
> sequence needed. This vertex list is the array you have to pass to the
> coordinates property of the AcadPolygonMesh. Dont forget to set M and N
> vertex count as well.
>
> Bye,
>
> Luc Morrissette,
> Flairbase inc.
>
> "Warren Medernach" wrote in message
> news:B5E60600515D5F023DE48C772AFA7969@in.WebX.maYIadrTaRb...
> > Hello Luc.
> >
> > Thanks for the info.
> > Can you give me a 'kick' in the right direction?
> > How do I determine which coordinate belongs where?
> > Where can I find more info on the AcadPolygonMesh?
> >
> > Thanks
> > Warren Medernach
> >
> > "Luc Morrissette" wrote in message
> > news:78F2003360D4FEBE0258D2A546BA59B6@in.WebX.maYIadrTaRb...
> > > Hi,
> > >
> > > You have to work with the base entity (AcadPolygonMesh).
> > >
> > > It is not that complex to write a MeshBox function that will create
the
> > > PolygonMesh with the 54 pts needed.
> > >
> > > Luc Morrissette,
> > > Flairbase inc.
> > >
> > > "Warren Medernach" wrote in message
> > > news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYIadrTaRb...
> > > > Hello all.
> > > >
> > > > I need to generate many 'boxes' by reading values from a database.
> > > >
> > > > I started off by using the Acad3DSolid, but the dwgs are ending up
> just
> > > too
> > > > large 6+ megs, and my test is placing about 1600 boxes, and I'll
> > > eventually
> > > > need to place many more.
> > > >
> > > > So I thought I would try creating the ai_box (3D surface), but there
> is
> > no
> > > > method in VBA for creating this, so you have to create it manually
> using
> > > the
> > > > IAcadPolygonMesh object. But the problem with this is you need to
> pass
> > it
> > > > 54 coordinates just to create a simple box! This just seems
complex,
> > and
> > > > there must be a more efficient method?
> > > >
> > > > So I'm just curious if anybody has been working with surfaces, and
> what
> > > > might be some efficient methods to work with them.
> > > >
> > > > Any info creatly appreciated.
> > > > Warren Medernach
> > > >
> > >
> >
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community