AutoCAD Map 3D Developer

AutoCAD Map 3D Developer

Reply
Active Member
hmcdowney
Posts: 6
Registered: ‎11-03-2008
Message 11 of 14 (151 Views)

Re: Problem accessing ObjectData...

06-23-2011 07:04 AM in reply to: ckrath

Seems as though this should be in the documentation. If you gentlemen have found it there, would you mind posting the page in the Developer docs? Thanks!

 

-jk

-jk
*Expert Elite*
norman.yuan
Posts: 1,001
Registered: ‎04-27-2009
Message 12 of 14 (146 Views)

Re: Problem accessing ObjectData...

06-23-2011 07:22 AM in reply to: hmcdowney

Are you asking why/when the LockDocument() should be used? The OP's issue is due to the fact he uses a modeless form and tries to modify drawing data from the modeless form, thus locking document is needed.

 

In the Autodesk .NET development guide onlie (http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html), go to "Control AutoCAD Environment"->"Lock and Unlock Document" for more details.

 

Active Member
hmcdowney
Posts: 6
Registered: ‎11-03-2008
Message 13 of 14 (144 Views)

Re: Problem accessing ObjectData...

06-23-2011 07:52 AM in reply to: norman.yuan

Now that you mention it, I think that is what I am asking. :-) I am having a large degree of difficulty updating (even attaching) an Object Data record from a WinForm in C# with Map 2011. (I created a separate post on the issue.) I will check out the reference and see if it sheds any light on my difficulty. (I have included the lock document code that you mentioned but I'm afraid that the issue is over my head and the "error message" from Autodesk is a little too explicit for my young ears (in other words, it's extremely vague).

 

Really appreciate you responding so quickly!

-jk
Active Member
hmcdowney
Posts: 6
Registered: ‎11-03-2008
Message 14 of 14 (142 Views)

Re: Problem accessing ObjectData...

06-23-2011 08:00 AM in reply to: hmcdowney

Ok, I see that the drawing may have to be locked here. I will attempt to correctly lock the document and see if this solves the problem.

 

Thanks so much!!

-jk
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.