.NET

Reply
Contributor
Nk_long
Posts: 15
Registered: ‎05-31-2012
Message 1 of 4 (170 Views)

How to store ObjectId please!

170 Views, 3 Replies
05-31-2012 12:27 AM

I can store some ObjectId from my drawing to text file. After that how we can get back ObjectId from string read from that text file. Or have a diferrent way to store the ObjectID. Somebody please help me, tks alot.

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 4 (165 Views)

Re: How to store ObjectId please!

05-31-2012 12:42 AM in reply to: Nk_long

Try to save Handle instead,

 

string hdl= obj.Handle.ToString();

 

you can get object from text file using this method:

 

http://through-the-interface.typepad.com/through_the_interface/2007/02/getting_access_.html

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Contributor
Nk_long
Posts: 15
Registered: ‎05-31-2012
Message 3 of 4 (154 Views)

Re: How to store ObjectId please!

05-31-2012 12:49 AM in reply to: Hallex

Ok, I can do it already. Thank so much..

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 4 of 4 (145 Views)

Re: How to store ObjectId please!

05-31-2012 01:16 AM in reply to: Nk_long

Glad I could help

Cheers :smileyhappy:

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.