Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Wayne
Brill
Wayne has been a member of Autodesk Developer Technical services supporting ADN (Autodesk Developer Network) over eleven years. Currently, Wayne provides API support for AutoCAD, Autodesk Inventor, ETO and Vault
2012 Autodesk
Eight Sessions
1. AutoCAD .NET Basics Getting Started Wayne Brill 2. User Interaction - User Input Wayne Brill 3. Database fundamentals Fenton Webb 4. Database Events, PaletteSet Gopinath Taget 5. Dictionaries, Containers - Balaji Ramamoorthy 6. Input PointMonitor - Philippe Leefsma 7. Jigs - Philippe Leefsma 8. User Interface elements - Balaji Ramamoorthy
2012 Autodesk
Course Objective
It
is to understand:
the fundamentals of the AutoCAD .NET API how to teach yourself the AutoCAD .NET API where to get help
What
it is not:
Teach you .NET framework or C# , VB programming language Give you complete of coverage of all API functions
2012 Autodesk
See
Learn
2012 Autodesk
2012 Autodesk
.NET Framework
VB C++ C# JScript Visual Studio 2008 / 2010
Windows Forms
2012 Autodesk
IL code created by the compiler Provides a common execution environment for .NET apps Code that runs in the CLR is Managed code
Framework
Object
2012 Autodesk
Assembly IL Code
Assembly IL Code
Assembly IL Code
.NET Assemblies
Assembly
A IL
Contains:
CLR
ensures:
methods are called in a type safe manner
That
That
For
2012 Autodesk
Reflector
http://www.reflector.net/ Ildasm
Fuslogvw
FxCop
Check conformance with Design Guidelines http://msdn.microsoft.com/en-us/library/bb429476(VS.80).aspx Install - C:\Program Files\Microsoft SDKs\Windows\v7.0A\FXCop
2012 Autodesk
http://msdn.microsoft.com/library/aa730858.aspx#netvbde v01_topic7
2012 Autodesk
2012 Autodesk
Development Environment
AutoCAD 2013
2012 Autodesk
(This is the training to use with this series) (Use this if just getting started with .NET)
AutoCAD DevBlog
http://adndevblog.typepad.com/autocad/
2012 Autodesk
Start with a Class Library application type with DLL output. Add references to AutoCADs managed assemblies
acdbmgd.dll
Database
services and DWG file manipulation (like ObjectDBX) Application specific core logic
acmgd.dll
AutoCAD
accoremgd.dll
AutoCAD
Find them in the AutoCAD install folder (set COPY LOCAL = FALSE)
2012 Autodesk
Project VB.NET
Compile
Assembly (.dll)
2012 Autodesk
2012 Autodesk
Namespaces
Add
In In
AutoCAD
Available
2012 Autodesk
2012 Autodesk
Get the editor object for the active document Call the editors WriteMessage method
<CommandMethod("HelloWorld")> _ Public Sub HelloWorld()
End Sub
2012 Autodesk
5. Create the procedure that will run when the command is run in AutoCAD
2012 Autodesk
2012 Autodesk
NETLOAD command AUTOLOADER Startup On command invocation Demand Load (Registry) Startup On command invocation On request
On proxy detection
[HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R19.0\ACADB001:409\Applications\AcLayer] "DESCRIPTION"="AutoCAD Layer Manager" "LOADER"="C:\\Program Files\\AutoCAD 2013\\aclayer.dll" "LOADCTRLS"=dword:0000000e "MANAGED"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R19.0\ACADB001:409\Applications\AcLayer\Commands] "LAYER"="LAYER [HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R19.0\ACADB001:409\Applications\AcLayer\Groups] "ACLAYER_CMDS"="ACLAYER_CMDS
AutoLoader
2012 Autodesk
2012 Autodesk
Completed
2012 Autodesk
Thank You !
2012 Autodesk