AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

adding an object into the object data programmically

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
411 Views, 2 Replies

adding an object into the object data programmically

Hi,
I know we can attach an object to an object data manually but now I need to
attach a single object to the object data but I need to do this
programatically, (i.e. using either the VBA or the Lisp) so that using this
script whenever an object is drawn it is automatically attached to the
object data table.

Any help???

Thanks

Sherine Fayez
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Sherine,

The Map Digitize feature within AutoCAD Map may work for you. You can
create a toolbar with scripts that will set the feature type to be digitized
(linear or point/block), and you can also set it up to automatically attach
Object Data. Once it is set up and the user digitizes an object they will
automatically be prompted to fill in the Object Data Record.

But, if you want to accomplish through VBA it is possible. To get started
load the MapSample.dvb found in the Example subfolder of Map. This contains
VBA code samples for attaching Object Data to objects.

Hope this helps,

Scott


"Sherine Fayez" wrote in message
news:EF696E574EEE3C50C23194683587E321@in.WebX.maYIadrTaRb...
> Hi,
> I know we can attach an object to an object data manually but now I need
to
> attach a single object to the object data but I need to do this
> programatically, (i.e. using either the VBA or the Lisp) so that using
this
> script whenever an object is drawn it is automatically attached to the
> object data table.
>
> Any help???
>
> Thanks
>
> Sherine Fayez
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Hi Scott,
Thanks for your help. It did work

Sherine

"Scott Friedrich" wrote in message
news:3F8309871D19B5DEE9B4201422FCED0D@in.WebX.maYIadrTaRb...
> Sherine,
>
> The Map Digitize feature within AutoCAD Map may work for you. You can
> create a toolbar with scripts that will set the feature type to be
digitized
> (linear or point/block), and you can also set it up to automatically
attach
> Object Data. Once it is set up and the user digitizes an object they will
> automatically be prompted to fill in the Object Data Record.
>
> But, if you want to accomplish through VBA it is possible. To get started
> load the MapSample.dvb found in the Example subfolder of Map. This
contains
> VBA code samples for attaching Object Data to objects.
>
> Hope this helps,
>
> Scott
>
>
> "Sherine Fayez" wrote in message
> news:EF696E574EEE3C50C23194683587E321@in.WebX.maYIadrTaRb...
> > Hi,
> > I know we can attach an object to an object data manually but now I need
> to
> > attach a single object to the object data but I need to do this
> > programatically, (i.e. using either the VBA or the Lisp) so that using
> this
> > script whenever an object is drawn it is automatically attached to the
> > object data table.
> >
> > Any help???
> >
> > Thanks
> >
> > Sherine Fayez
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost