ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Concert AcDbObjectId to String?

4 REPLIES 4
Reply
Message 1 of 5
Robert-
718 Views, 4 Replies

Concert AcDbObjectId to String?

Is this possibel?
And how?


Greetings Robert
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Robert-

An AcDbObjectId object is simply a container that
holds a long that is actually a pointer to an AcDbStub object.  The
AcDbStub object is a go-between for the actual database resident object/entity
such as an AcDbCircle, AcDbLine, etc. 

 

So, yes you can certainly convert the long data
member of an AcDbObjectId to a string, but I don't know what good it would do
you since the long is really a memory address which is only good for that
session of AutoCAD.

 

Why do you want to convert an ObjectId to a
string?


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Is
this possibel?
And how?


Greetings Robert

Message 3 of 5
Anonymous
in reply to: Robert-

Do you really want convert the handle to
string?

That makes more sense than objectid. Handles are
drawing specific and are valid as long as drawing is present. But you will lose
your handle integrity if you wblock the drawing entities  into another
one.

 

cheers.

jay

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

An AcDbObjectId object is simply a container that
holds a long that is actually a pointer to an AcDbStub object.  The
AcDbStub object is a go-between for the actual database resident object/entity
such as an AcDbCircle, AcDbLine, etc. 

 

So, yes you can certainly convert the long data
member of an AcDbObjectId to a string, but I don't know what good it would do
you since the long is really a memory address which is only good for that
session of AutoCAD.

 

Why do you want to convert an ObjectId to a
string?


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Is
this possibel?
And how?


Greetings Robert

Message 4 of 5
Robert-
in reply to: Robert-

I´m looking for a method do refer an entity of my currently running AutoCAD-Project to one AcDbXRecord in my Dictionary. It is possible that there is a simply way, but I´m an Arx- Newbie and I don´t know it. So I want to name my XRecord like the ID of my Entity.

Perhaps you could show me a simpler way of refering.

Thanks.

Greetings Robert.
Message 5 of 5
Anonymous
in reply to: Robert-

You can store a reference to the XRecord in your entity
(if it's a custom entity), or in an XRecord attached to the
entity's extension dictionary, if it's an AutoCAD entity.

See the discussion on soft/hard pointer/ownership references
in the ObjectARX documentation.

"Robert-" wrote in message news:f10e9ee.2@WebX.maYIadrTaRb...
> I´m looking for a method do refer an entity of my currently running AutoCAD-Project to one AcDbXRecord in my
Dictionary. It is possible that there is a simply way, but I´m an Arx- Newbie and I don´t know it. So I want to name my
XRecord like the ID of my Entity.
> Perhaps you could show me a simpler way of refering.
>
> Thanks.
>
> Greetings Robert.
>
>

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

Post to forums  

Autodesk Design & Make Report

”Boost