2

Click here to load reader

AutoCAD® API .NET Tips and Tricks - Autodeskaucache.autodesk.com/au2012/sessionsFiles/2761/2660/handout_2761... · AutoCAD® API .NET Tips and Tricks James E. Johnson – Synergis

  • Upload
    vanque

  • View
    218

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AutoCAD® API .NET Tips and Tricks - Autodeskaucache.autodesk.com/au2012/sessionsFiles/2761/2660/handout_2761... · AutoCAD® API .NET Tips and Tricks James E. Johnson – Synergis

AutoCAD® API .NET Tips and Tricks James E. Johnson – Synergis Software

CP2761-R In this roundtable session, we will cover and share tips and tricks for developing AutoCAD software add-ins using .NET. We hope you will find them helpful for your next project. Any samples discussed in the session will be shared and done in both VB.NET and C# whenever applicable or possible.

Learning  ObjectivesAt the end of this class, you will be able to:• Describe different ways to select objects from selection sets to stepping through the drawing

database.• Use different Microsoft® Visual Studio® features to speed up development• Manage drawings and entities, opening drawings, adding/deleting entities, and adding references• Describe new features from the latest version of AutoCAD .NET API

About  the  SpeakerJames has worked with CAD products for more than 25 years, involved in many positions from being a CAD drafter to writing automation applications. In his current position, he is doing CAD integration for Adept document management system. In previous positions, he has used Autodesk® RealDWG® to write custom automation to create AutoCAD® drawings of industrial kitchen equipment, and has worked at Autodesk resellers in software development groups doing custom applications for Inventor® and AutoCAD®. He has taught AutoCAD® and VBA classes while working for resellers, and was a CAD instructor at two different community colleges.

Email: [email protected]

Page 2: AutoCAD® API .NET Tips and Tricks - Autodeskaucache.autodesk.com/au2012/sessionsFiles/2761/2660/handout_2761... · AutoCAD® API .NET Tips and Tricks James E. Johnson – Synergis

This is an outline of what will be covered in the roundtable. After the roundtable this document will be updated with detail and any additional topics covered...

Describe different ways to select objects from selection sets to stepping through the drawing database.

a. Selection Sets with selection set filters

b. Database selection iterating through entire database objects

c. Use LINQ queries

Use different Microsoft® Visual Studio® features to speed up development.a. Use snippets

b. Reference precompiled DLL libraries

c. Use LINQ queries

d. Use Extension methods

Manage drawings and entities, opening drawings, adding/deleting entities, and adding references.

a. Using transactions and when to Lock the document

b. Working with Dictionaries and symbol tables

c. RXobject for working with database objects

d. ReadDwgFile for open and Insert

Describe new features from the latest version of AutoCAD .NET API.a. Using LINQ

b. Using DLR (dynamic type)

AutoCAD® API .NET Tips and Tricks

2