Visual Basic Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
*Medernach, Warren
Anybody working with simple AutoCAD Surfaces in VBA?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
66 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
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
Re: Anybody working with simple AutoCAD Surfaces in VBA?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.maYI adrTaRb...
> 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 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"
news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYI
> 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
Re:
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.maYI adrTaRb...
> 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.maYI adrTaRb...
> > 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
> >
>
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"
news:78F2003360D4FEBE0258D2A546BA59B6@in.WebX.maYI
> 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"
> news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYI
> > 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
Re:
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.maYI adrTaRb...
> 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.maYI adrTaRb...
> > 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.maYI adrTaRb...
> > > 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
> > >
> >
>
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"
news:B5E60600515D5F023DE48C772AFA7969@in.WebX.maYI
> 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"
> news:78F2003360D4FEBE0258D2A546BA59B6@in.WebX.maYI
> > 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"
> > news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYI
> > > 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
Re:
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.maYI adrTaRb...
> 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.maYI adrTaRb...
> > 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.maYI adrTaRb...
> > > 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.maYI adrTaRb...
> > > > 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
> > > >
> > >
> >
>
Thanks Luc.
Warren Medernach
"Luc Morrissette"
news:458B88BF2670D1F6F4C60B818856566D@in.WebX.maYI
> 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"
> news:B5E60600515D5F023DE48C772AFA7969@in.WebX.maYI
> > 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"
> > news:78F2003360D4FEBE0258D2A546BA59B6@in.WebX.maYI
> > > 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"
> > > news:418E4BD6ACEC956CE8FB9A490BAE880C@in.WebX.maYI
> > > > 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
> > > >
> > >
> >
>
