• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual Basic Customization

    Reply
    *Medernach, Warren

    Anybody working with simple AutoCAD Surfaces in VBA?

    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
    Please use plain text.
    *Morrissette, Luc

    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
    >
    Please use plain text.
    *Medernach, Warren

    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
    > >
    >
    Please use plain text.
    *Morrissette, Luc

    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
    > > >
    > >
    >
    Please use plain text.
    *Medernach, Warren

    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
    > > > >
    > > >
    > >
    >
    Please use plain text.