I start a new cad session with an empty doc.
I manually create a new UCS.
I use DDUCS and give it a name.
I do this for someother new ones.
Then i try to get the current UCS name for the active viewport using NET (not the WCS).
It fails.Invalid object id no matter what the current UCS is.
I did a Visual Studio QuickcWatch and found that the activeviewportrecord.ucs has the expected correct values.
It is obvious that the ActiveViewportRecord.Ucsname property does not expose the expected UCS object id!
I think i have made no mistakes.Anybody else met the same problem?
I can get the name by writing some code but...
Also please someone write down to the online guide the importance of use and the difference among UpdateTiledViewportsInDatabase and UpdateTiledViewportsFromDatabase.
I did the post -with code- 4 months ago.50 views.No answer.
Am i the only one to use this property?Not anybody else had the same problem?
Any autodesk official answer?Or should i join the ADN for an answer?
http://forums.autodesk.com/t5/NET/ActiveViewTableRecord-UcsName-error-eNullObjectId/td-p/2776770
Here is the code to reproduce the error.
Just load the visual basic file into a DLL program with the proper NET references as for any simple autocad program.
Read the comments and set a debug point at the line it catches the error.
It works fine for visual basic net 2010 and civil 3d 2011 64 bit.