Kean Walmsley

July 2009

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Twitter Updates

    follow me on Twitter



    « Closing all open AutoCAD documents from a .NET application | Main | Adding XData to AutoCAD entities using .NET »

    March 30, 2007

    TrackBack

    TrackBack URL for this entry:
    http://www.typepad.com/services/trackback/6a00d83452464869e200d8341fd68153ef

    Listed below are links to weblogs that reference Manipulating the draw order of a newly created AutoCAD hatch using .NET:

    Comments

    Kean,

    Thanks. Draworder code is quite neat and simple in .NET.(As I know in VBA, there is no draworder function)

    BTW, I figured out the error for xdata.
    I replaced hatch.xdata.add(ResultBuffer) with hatch.xdata=ResultBuffer and it works.

    Have fun in China!

    Hi There!
    Thank You! Very Useful!
    See you... Bye

    I have some problems when I use the DrawOrderTable, can you help me?
    //----------
    //if (orderTable.FirstEntityIsDrawnBeforeSecond(id1, id2)) //Why it will be crash?
    {
    //orderTable.SwapOrder(id1, id2); //Why it didn't execute?

    ObjectIdCollection ids = new ObjectIdCollection();
    ids.Add(id1);
    orderTable.MoveAbove(ids, id2); //It's OK.
    //orderTable.MoveBelow(ids, id2); //It's OK.
    //orderTable.MoveToBottom(ids); //It's OK.
    //orderTable.MoveToTop(ids); //It's OK.
    }
    //----------
    >>> Problems detail

    Thank you!

    Hi Bill,

    Sorry - I don't have time to dig into this.

    Please post your question to the ADN team, if you're a member, or to the AutoCAD .NET Discussion Group.

    Regards,

    Kean

    Verify your Comment

    Previewing your Comment

    This is only a preview. Your comment has not yet been posted.

    Working...
    Your comment could not be posted. Error type:
    Your comment has been posted. Post another comment

    The letters and numbers you entered did not match the image. Please try again.

    As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

    Having trouble reading this image? View an alternate.

    Working...

    Post a comment

    Feed & Share

    Search