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: 

ObjectID/CAO ??

1 REPLY 1
Reply
Message 1 of 2
Anonymous
227 Views, 1 Reply

ObjectID/CAO ??

First a thank you to Scott for leading me in the right direction, the fog is
begining to lift! Now I am wondering: In the db_sample.dwg were is the
ObjectID attached to the object and how is that ID assigned.

The reason I am asking is that I have inherited a customized application for
Map that connects to an Access DB programatically via AODBC. I am trying to
figure out how to use Tony Tanzillo's AcadX tool tips feature to access the
DB I am using. Currently we don't attach the DB in the workspace. I am
learning this as I go and I have made the assumption that CAO and AODBC
aren't exactly compatible.

I hope this makes sense and that I'm not showing too much of my newbie-ness.


Thank you in advance

Bart
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

The ObjectID is a unique identifier created by AutoCAD for every object in
the DWG. You don't create these, AutoCAD does. As far as links to a
database, there are two pieces of information an object will be tagged with:
Link Template Name & Key Field Value - this is if you are using CAO for
database connectivity. You said you do not attach the DB to the workspace,
which leads me to believe that you are taking another route for DB
connectivity. Your application may be storing Xdata for each object that
contains the DB link information, and using ADO to connect to the DB
programmatically. Without seeing the code I obviously have to guess on this
part. Tony's example is first evaluating if the object has any CAO
database links, if it does, it then takes the key value off the object and
uses ADO to query the datasource and receive all the other field
information - this information is then added into the tooltip.

Scott



"B Wells" wrote in message
news:52AF7949A73F60F6CC065A5A6DEB4879@in.WebX.maYIadrTaRb...
> First a thank you to Scott for leading me in the right direction, the fog
is
> begining to lift! Now I am wondering: In the db_sample.dwg were is the
> ObjectID attached to the object and how is that ID assigned.
>
> The reason I am asking is that I have inherited a customized application
for
> Map that connects to an Access DB programatically via AODBC. I am trying
to
> figure out how to use Tony Tanzillo's AcadX tool tips feature to access
the
> DB I am using. Currently we don't attach the DB in the workspace. I am
> learning this as I go and I have made the assumption that CAO and AODBC
> aren't exactly compatible.
>
> I hope this makes sense and that I'm not showing too much of my
newbie-ness.
>
>
> Thank you in advance
>
> Bart
>
>
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost