Distinguished Contributor
Posts: 359
Registered: ‎12-05-2003
Message 1 of 1 (178 Views)

how to work with DrawOrderTable?

178 Views, 0 Replies
01-09-2006 08:41 AM
I am playing with DrawOrderTable but got no luck.
I read this thread: HowTo: Get Reference to DrawOrderTable at http://discussion.autodesk.com/thread.jspa?messageID=5025267
Here is the my code:
ObjectId oidDOT = Autodesk.AutoCAD.DatabaseServices.BlockTableRecord.DrawOrderTableId;
DrawOrderTable DOT = (DrawOrderTable) trans.GetObject(oidDOT, OpenMode.ForWrite, false);
// DrawOrderTable DOT = new DrawOrderTable(); <<-- version 2
DOT.MoveAbove(oidCol, oid);

none of them work.
What's wrong in my code? Thank you very much for your help.

Vault Pro 2014, Windows 7 64 bit, AutoCAD (ACA, Map) 2014
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
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.