AutoCAD .NET Training DevTV: downloadable session recordings

In addition to posting the transcripts, we've now posted recordings of the recent DevTV series on AutoCAD .NET for you to download and watch.

AutoCAD .NET DevTV sessions on the AutoCAD Developer CenterYou'll find them on the AutoCAD .NET Developer Center, under the Samples and Documentation section (see the image on the right, if you have trouble finding them).

If you'd prefer to watch them online, here are direct links to the sessions:

We hope you've found these sessions useful. We'd certainly appreciate your feedback on whether they were worthwhile (and how we might improve them).

On a somewhat related note, we've just started work on the My First AutoCAD Plug-In guide (comparable with this one for Revit and the soon-to-be-posted one for Inventor), which we hope to make available later this year.

4 responses to “AutoCAD .NET Training DevTV: downloadable session recordings”

  1. This not work in AutoCAD 2012 ,but AutoCAD 2011 well.

    acLdr.Annotation = acMText.ObjectId
    acLdr.EvaluateLeader()

    Is bug? Thank you.

  2. Kean Walmsley Avatar

    Sorry - is this related to a particular post of mine? If so, which one?

    If not, please submit it via ADN or post it to the AutoCAD .NET Discussion Group.

    Thanks,

    Kean

  3. This is a sample in AutoCAD.NET Programming Guide,but not work in AutoCAD 2012.
    Now I can not create Leader.
    I am ADN member,But my English is not good, can not ask questions.

    Imports Autodesk.AutoCAD.Runtime
    Imports Autodesk.AutoCAD.ApplicationServices
    Imports Autodesk.AutoCAD.DatabaseServices
    Imports Autodesk.AutoCAD.Geometry

    <commandmethod("createleader")> _
    Public Sub CreateLeader()
    '' Get the current database
    Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
    Dim acCurDb As Database = acDoc.Database

    '' Start a transaction
    Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()

    '' Open the Block table for read
    Dim acBlkTbl As BlockTable
    acBlkTbl = acTrans.GetObject(acCurDb.BlockTableId, _
    OpenMode.ForRead)

    '' Open the Block table record Model space for write
    Dim acBlkTblRec As BlockTableRecord
    acBlkTblRec = acTrans.GetObject(acBlkTbl(BlockTableRecord.ModelSpace), _
    OpenMode.ForWrite)

    '' Create the leader
    Dim acLdr As Leader = New Leader()
    acLdr.SetDatabaseDefaults()
    acLdr.AppendVertex(New Point3d(0, 0, 0))
    acLdr.AppendVertex(New Point3d(4, 4, 0))
    acLdr.AppendVertex(New Point3d(4, 5, 0))
    acLdr.HasArrowHead = True

    '' Add the new object to Model space and the transaction
    acBlkTblRec.AppendEntity(acLdr)
    acTrans.AddNewlyCreatedDBObject(acLdr, True)

    '' Commit the changes and dispose of the transaction
    acTrans.Commit()
    End Using
    End Sub

  4. As you're an ADN member, I've asked a member of our DevTech China team to contact you about this issue (please let me know if you're not comfortable discussing the issue in Chinese - I'm assuming you are, based on your email address.

    Kean

Leave a Reply to kelo Cancel reply

Your email address will not be published. Required fields are marked *