AutoCAD Developer's Guide - Autodesk

2y ago
176 Views
19 Downloads
1.52 MB
541 Pages
Last View : 26d ago
Last Download : 1m ago
Upload by : Luis Waller
Transcription

AutoCAD .NETDeveloper’s GuideStephen PretonAutodesk Developer Technical Services Team (DevTech)

AutoCAD .NET Developers GuideAuthor:Stephen PretonAutodesk Developer Technical Services Team (DevTech)Contents1Introduction .22Topics in this section . 22Guide Organization . 22Overview of the AutoCAD .NET API. 22Components of the AutoCAD .NET API. 23Overview of Microsoft Visual Studio . 25Topics in this section . 25Which Edition of Microsoft Visual Studio to Use. 25Use COM Interoperability with .NET . 26Dependencies and Restrictions . 27For More Information. 27Sample Code . 27Transition from ActiveX Automation to .NET . 282Getting Started with Microsoft Visual Studio .28Topics in this section . 28Understand Microsoft Visual Studio Projects . 29Define the Components in a Project . 29Class Modules . 30Forms . 30References . 30View Project Information . 30Work with Microsoft Visual Studio Projects. 31Procedures . 31Topics in this section . 32Create a New Project. 32Procedures . 32Open an Existing Project or Solution. 35Procedures . 35Save a Project or Solution . 36Procedures . 36Work with Multiple Projects in a Solution . 37Add a project to a solution . 37Unload a project from a solution . 37Procedures . 37Edit an Existing Project or Solution. 37Topics in this section . 37Add New Items . 38Procedures . 38Import Existing Items . 39Procedures . 39Edit Items . 40Procedures . 40Topics in this section . 40Use the Code Window. 40

Use the Windows Form Designer . 42Procedures . 42Use the Properties Window . 43Procedures . 44Rename a Project . 44Procedures . 45Add and Reference Other Projects . 45Procedures . 46Set the Options for Microsoft Visual Studio . 47Procedures . 47Load an Assembly into AutoCAD . 47Procedures . 48Access and Search Referenced Libraries (Object Browser) . 48Procedures . 49Exercises: Create Your First Project. 50Topics in this section . 50Exercise: Create a New Project . 50Exercise: Reference the AutoCAD .NET API Files. 51Exercise: Create a New Command . 51Exercise: Set the Target Framework for a Project. 54Exercise: Build and Load a .NET Assembly in AutoCAD. 54Related AutoCAD Commands and Terminology. 55Commands . 55Terminology. 55More Information . 563Basics of the AutoCAD .NET API.57Topics in this section . 57Understand the AutoCAD Object Hierarchy. 57Topics in this section . 58The Application Object. 58The Document Object. 60The Database Object. 61Symbol Tables and Dictionaries. 61VBA/ActiveX Cross Reference. 62The Graphical and Nongraphical Objects . 62The Collection Objects. 63Non-Native Graphical and Nongraphical Objects . 64Access the Object Hierarchy . 65VB.NET . 65C#. 65Topics in this section . 65Reference Objects in the Object Hierarchy . 65VB.NET . 65C#. 65VB.NET . 66C#. 66VB.NET . 66C#. 66VB.NET . 66C#. 67VBA/ActiveX Code Reference. 68Access the Application Object. 68VB.NET . 68C#. 68VBA/ActiveX Code Reference. 68Collection Objects . 68

Topics in this section . 70Access a Collection . 70VB.NET . 70C#. 70VBA/ActiveX Code Reference. 71Add a New Member to a Collection Object. 71VB.NET . 71C#. 71VBA/ActiveX Code Reference. 72Iterate through a Collection Object. 72VB.NET . 73C#. 73VBA/ActiveX Code Reference. 73Iterate through the LayerTable object . 73VB.NET . 73C#. 73VBA/ActiveX Code Reference. 74Find the layer table record named MyLayer in the LayerTable object. 74VB.NET . 74C#. 75VBA/ActiveX Code Reference. 75Erase a Member of a Collection Object. 76VB.NET . 76C#. 76VBA/ActiveX Code Reference. 77Understand Properties and Methods . 78Out-of-Process versus In-Process. 78VB.NET . 79C#. 80VBA/ActiveX Code Reference. 81Define Commands and AutoLISP Functions . 81Topics in this section . 81Command Definition . 82Syntax to Define a Command . 82VB.NET . 82C#. 83VB.NET . 83C#. 83AutoLISP Function Definition . 83Syntax to Define an AutoLISP Function . 83VB.NET . 83C#. 84Retrieve Values Passed into an AutoLISP Function. 84To define an AutoLISP Function . 84VB.NET . 84C#. 854Control the AutoCAD Environment .86Topics in this section . 86Control the Application Window. 86Position and size the Application window. 86VB.NET .

AutoCAD .NET Developer’s Guide Stephen Preton Autodesk Developer Technical Services Team (DevTech)

Related Documents:

Build Your AutoCAD IQ! Webinar Landing Page Register for the series, or send to your colleagues Autodesk AutoCAD Community Forums Ask your peers and share your knowledge AutoCAD Customer Council Join the Beta to influence the future of AutoCAD! For AutoCAD: Autocad.beta@autodesk.com For AutoCAD LT: Autocad.lt.council .

Build Your AutoCAD IQ! Webinar Landing Page Register for the series, or send to your colleagues Autodesk AutoCAD Community Forums Ask your peers and share your knowledge AutoCAD Customer Council Join the Beta to influence the future of AutoCAD! For AutoCAD: Autocad.beta@autodesk.com For AutoCAD LT: Autocad.lt .

Build Your AutoCAD IQ! Webinar Landing Page Register for the series, or send to your colleagues Autodesk AutoCAD Community Forums Ask your peers and share your knowledge AutoCAD Customer Council Join the Beta to influence the future of AutoCAD! For AutoCAD: Autocad.beta@autodesk.com For AutoCAD LT: Autocad.lt .

AutoCAD Map 3D 2008 14 Revit Structure 2009 24 Autodesk Map 3D 2009 14 Revit MEP 2008 24 AutoCAD MEP Mechanical/Electrical 2008 15 Revit MEP 2009 24 AutoCAD MEP 2009 15 AutoCAD P&ID 2008 25 AutoCAD Mechanical 2008 16 AutoCAD P&ID 2009 25 AutoCAD Mechanical 2009 16 Autodesk Vault 2008 26 AutoCAD Raster Design 2008 17 .

ADESK011 Autodesk Certified User - Autodesk Inventor Autodesk Architecture & Construction CAPE Industry Certification Autodesk Inventor 2011 or later 0.2 ADESK021 Autodesk Certified Professional - AutoCAD Autodesk Architecture & Construction CAPE Industry Certification AutoCAD 2011 or later 0.2 ADESK023 Autodesk Certified Professional - AutoCAD .

AutoCAD 2000 Learning Assistance, provided on a separate CD, is a multi-media learning tool that focuses on working in AutoCAD, understanding dif-ficult concepts and underutilized AutoCAD features, and collaborating with other AutoCAD professionals. AutoCAD Training Autodesk Official Training Courseware (AOTC) is the Autodesk-endorsed courseware for instructor-led training. To register for a .

The benefits of using AutoCAD vs. AutoCAD LT 2 Introduction AutoCAD has seen over 30 versions in its time, with each version of the software becoming more sophisticated and new features added with every release. There are two variants of AutoCAD available: AutoCAD and AutoCAD LT . Both variants run the same core features. However, AutoCAD offers

Autodesk AutoCAD Mechanical 2018 Autodesk AutoCAD Raster Design 2018 Autodesk ReCap Autodesk 3ds Max Design 2018: Autodesk Navisworks Simulate 2018 Autodesk Vault Autodesk Showcase 2018 JMAG Designer 2D/3D magnetostatic JMAG Express Motor-Cad