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

how to work with DrawOrderTable?

0 REPLIES 0
Reply
Message 1 of 1
wesbird
459 Views, 0 Replies

how to work with DrawOrderTable?

Hi
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.



Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
0 REPLIES 0

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost