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



    « AutoCAD 2008 - new ObjectARX samples | Main | AutoCAD 2008 – other new APIs »

    February 15, 2007

    TrackBack

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

    Listed below are links to weblogs that reference AutoCAD 2008 - new .NET samples:

    Comments

    Hi,Kean
    I noticed that there is a new namespace in AutoCAD 2008:ComponentModel.
    Can you say something about this namespace?
    Thanks!

    Great, managed C++ wrappers could be very interesting.

    The problem with that is when the custom object class/data is too complex and frequently updated. It's a pain the keep the wrapper syncronized with the C++ code.

    Maybe some macros could automate this task but it won't help too much once the method's parameters may vary a lot.

    I'm not able to think now about anything else to do this better than by hand. Maybe you guys from Autodesk can create a pattern or wizard to do that.

    In fact we are talking about how to fill the lack of not being able to create custom objects inside .NET API. The rest of the unmanaged C++ API will be covered soon by .NET wrappers (guess we are almost covering 90% of ObjectARX API except the custom object part). I don't know much of Autodesk strategy about migration of the AutoCAD core to .NET but maybe this will happen soon.

    I'm just concerned about the great number of wrappers like COM and, most recently, .NET created just to expose the C++ core to other APIs.

    Just to think about... :)

    Hey Kean,
    I'm glad to see the updated CUISamp. I spent a bit of time working on what I wanted to be a full stand alone CUI installation application before Bill Z. and I discussed some of the limitations of that approach.

    Hi csharpbird,

    Autodesk.AutoCAD.ComponentModel appears to be related to the Data Extraction feature... I'll add it to my list to research and cover in a future post.

    Regards,

    Kean

    Hi,

    we are developing an autoprint .net windows application, to print the autocad files automatically. Before printing we need to set customize the footer part and put user specific information.

    I tried a lot using AutoCAD APIs to access footer part of the document, no luck.

    could you please give any idea or workarounds?....

    Hi my friend
    I would like to draw a solid3d in one viewport with c#.net (AutoCAD .NET)
    It is like command SOLDRAW or SOLPROF.
    Do you know to do that?
    Where could i find a good documentation about AutoCAD .NET?

    Thanks a lot my friend.

    Hi Luis,

    I haven't done it myself, but you might try creating a Section object and calling GenerateSectionGeometry() with your Solid3d.

    The best place to get documentation on AutoCAD .NET is in the ObjectARX SDK, otherwise you might try searching the AutoCAD .NET Discussion Group or this blog.

    Cheers,

    Kean

    Thanks very much Kean, I will try to do that.

    Cheers. :-)

    Luizo

    Sorry Kean, but that not generate entitys, like a SOLDRAW and SOLPROF. :-( Ok?
    Thanks,
    Luizoo

    If you know C++ you might check out the HLR API in the Utils directory of the ObjectARX SDK.

    Kean

    Thanks, but C++ ..... It's very complicate to me yet!.....

    I have done good somethigs in AutopLisp and VB (ActiveX) but ARX ....

    Ok Dean, thanks for your attention.

    Cheers. :-)

    Hi Kean, all right?
    On the code below i get to set a Ucs active, but the view do not keep like it was.
    [CommandMethod("myucs")]
    public void myucs()
    {
    Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
    Database db1 = HostApplicationServices.WorkingDatabase;
    Transaction trans = db1.TransactionManager.StartTransaction();

    ViewportTable viewTbl = (ViewportTable)trans.GetObject(db1.ViewportTableId, OpenMode.ForWrite);
    ViewportTableRecord viewTblRec;
    SymbolTableEnumerator symEnum = viewTbl.GetEnumerator();


    if (db1.TileMode == false)
    {
    db1.TileMode = true;
    }

    symEnum.Reset();

    while (symEnum.MoveNext())
    {
    viewTblRec = (ViewportTableRecord)symEnum.Current.GetObject(OpenMode.ForWrite);
    if (viewTblRec.Name == "*Active")
    {
    viewTblRec.SetUcs(new Point3d(100, 100, 0), new Vector3d(1, 1, 0), new Vector3d(-1, 1, 0));
    ed.UpdateTiledViewportsFromDatabase();
    }
    }

    trans.Commit();
    trans.Dispose();

    }
    I would like to rotate the ucs without change the view. Do you know how i can do that?

    Thanks.

    Kean, I would like to know if exist an Extension Dictionary data that behaves like a 1011 Xdata code. The 1011 Xdata chance when we move, rotate, etc the object. Is there an Extension Dictionary data that behaves like this? I have tried to find but i haven't got it yet!...
    Could you help me?

    Cherrs.

    Luizoo

    Hi Luiz,

    Please submit your question via the discussion groups or the ADN website (if you're a member).

    Regards,

    Kean

    Hi Kean,

    Is there a way to reference a specific sheet within an Excel workbook(spreadsheet) when creating a datalink to an AutoCAD table using vb.NET? For example, I want to create three tables on my drawing. The three sheets within the Excel workbook(spreadsheet) contains the data for each table.

    Thank you for your help.

    Hi Mark,

    Sorry, I don't know off the top of my head, and don't have time to research this.

    Please post your question to the ADN team, if you're a member, of 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