Download presentation
Presentation is loading. Please wait.
1
Developer Days Online Share
2
AutoCAD 2010 APIs The Rice and the Wine
Stephen Preston
3
About the Presenter Stephen Preston DevTech Americas Manager Autodesk Developer Network Autodesk, Inc. Stephen has been a member of the Autodesk Developer Technical Services team since 2000, first as a support engineer and then as manager of the EMEA (Europe, Middle East, and Africa) Team. In those roles, his responsibilities included support for the AutoCAD APIs, including ObjectARX and AutoCAD .NET, as well as AutoCAD OEM and RealDWG technologies. Currently, he manages the Developer Technical Services team in the Americas and serves as Workgroup Lead, working closely with the AutoCAD engineering team on future improvements in the AutoCAD APIs. Stephen started his career as a scientist, and has a D.Phil. in Atomic and Laser Physics from the University of Oxford.
4
Autodesk Developer Network
Access to almost all Autodesk software and SDK’s Including early access to Beta software Members-only website with 1000s of technical articles Unlimited technical support Product direction through conferences Marketing benefits Exposure on autodesk.com Promotional opportunities 1 to 3 free API training classes Based on user level
5
APIs and Porting The Rice The Wine Making sure your application runs
Basic steps to support the next release The Wine Opportunities to add value Using the new features and APIs to increase the value of your and our products
6
The Rice Binary incompatible release Function signature changes
RibbonBar Installer change
7
The Rice – Binary incompatible release
ObjectARX requires Visual Studio 2008 SP1 Rebuild using new ObjectARX ‘17’ branded libs now ‘18’ New .NET assembly versions Much easier than AutoCAD 2007
8
The Rice – Function signature changes
Custom objects/entities ‘Search and Replace’ changes InputPointMonitor New function definition Old definition deprecated Other minor changes See Migration Guide Minor changes in .NET too
9
The Rice – Custom Object changes
Name changes to overridden functions Before: public virtual foo(…) After: protected virtual subFoo(…) Necessary for new Overrule API
10
The Rice – CUI API and UI Update
Reflects UI changes to RibbonBar/Menu Browser Significant runtime RibbonBar API changes AdRibbon.dll
11
The Rice – Installer change
Increment major version number R17.2 -> R18.0
12
Demo Basic steps to port your ObjectARX application
VS2008 migration wizard Custom object name changes Reference new Lib files
13
ADN API Wishlist Survey
.NET Developer’s Guide 116 42% Expose ObjectARX global functions to .NET 102 37% .NET support for custom objects 97 35% Integrated Workspace/Menu/Toolbar/CUI/ATC/Palette API 94 34% Enhanced 3D solid editing API 70 25% Improve accuracy of AutoCAD at large coordinates 65 24% CUI API for Ribbon Bar 55 20% .NET Property Palette API 53 19% Access to Debug Symbols database for ObjectARX applications 50 18% Action Recorder export to .NET code 39 14% Enhanced Undo API 33 12% API for importing materials definitions in ATC files into AutoCAD 10 4%
14
The Wine – New APIs Parametric drawing Freeform modeling Overrule protocol CUI API and UI update And the rest …
15
A word about product features
This presentation is about the new APIs. For information on product features visit:
16
The Wine – Parametric drawing
Inventor design workflow in AutoCAD Parametric design Geometric constraints Dimensional Constraints Custom entities can participate Initially available in ObjectARX only
17
Parametric Drawing – Diagram 1
d1 = a + b 2D Constraint Group Dimension Dependency Variable d1 Value Dependency Variable a = 5 Variable b = 2
18
Parametric Drawing – Diagram 2
2D Constraint Group Geom Dependency Geom Dependency
19
Demo – Parametric Drawing
Adding constraints to native AutoCAD entities Custom entity support for constraints
20
The Wine – Freeform modeling
AutoCAD 3D isn’t just boxes New SubDMesh entity Uses Catmull-Clark algorithm Edge and surface creasing Conversion between ASM solid and SubDMesh and back Available in ObjectARX and .NET
21
What is SubD? A subdivision surface is a smooth surface created from a coarse mesh. The smooth surface is calculated by iteratively subdividing each polygonal face into smaller faces that better approximate the smooth surface. See
22
Demo – Freeform Modeling
Basic SubDMesh operations Create from primitive Create from ASM solid Apply creases Transform mesh elements Convert to ASM solid
23
The Wine – Overrule Protocol
Custom entity behavior without the custom entity Customize behavior for any entity Per class Per instance Data dependent Custom filters No more proxy warnings Available in ObjectARX and .NET
24
The Wine – Overrule Protocol
Impact on custom objects Name changes to overridden functions Before: public virtual foo(…) After: protected virtual subFoo(…)
25
Overrule Protocol - AcDbObject
PropertiesOverrule GetClassID ObjectOverrule DeepClone WblockClone No change for Open Close Cancel Erase
26
Overrule Protocol - AcDbEntity
DrawableOverrule SetAttributes WorldDraw ViewportDraw ViewportDrawLogicalFlags PropertiesOverrule List OsnapOverrule GetObjectSnapPoints TransformOverrule TransformBy GetTransformedCopy Explode CloneMeForDragging HideMeForDragging GripOverrule GetGripPoints MoveGripPointsAt GetStretchPoints MoveStretchPointsAt OnGripStatusChanged
27
Overrule Protocol - AcDbEntity
SubentityOverrule AddSubentPaths DeleteSubentPaths GetSubentPathsAtGsMarker GetGsMarkersAtSubentPaths GetGripPointsAtSubentPath MoveGripPointsAtSubentPaths SubentGripStatus SubentPtr TransformSubentPathsBy GetCompoundObjectTransform GetSubentPathGeomExtents GetSubentClassId HighlightOverrule Highlight Unhighlight GeometryOverrule GetGeomExtents IntersectWith
28
Demo – Overrule Protocol
Draw Overrule Grip Overrule Extension Dictionary Filter
29
The Wine – CUI API and UI Update
Changes to RibbonBar and Menu Browser Runtime API is significantly changed (AdRibbon.dll) RibbonBar now included in CUI API CUI Format has changed, now packaged into CUIx Ability to add custom Ribbon Controls Available in .NET Only
30
The Wine – Custom Ribbon Controls
Easily add custom controls to RibbonBar Based on WPF Participate with CUI Editor Available in .NET only Registry Entry needed... HKLM\SOFTWARE\Autodesk\AutoCAD\R18.0\ACAD-8001:409\RibbonControls
31
Demo – Custom Ribbon Control
Custom CUI Control WPF ResourceDictionary WPF BitmapImage RibbonSplitButton
32
The Wine … And the rest … .NET Developers Guide PDF Underlays
‘Selectable’ transient graphics …
33
Autodesk Developer Network
Access to almost all Autodesk software and SDK’s Including early access to Beta software Members-only website with 1000s of technical articles Unlimited technical support Product direction through conferences Marketing benefits Exposure on autodesk.com Promotional opportunities 1 to 3 free API training classes Based on user level
34
Share Partager Compartir Teilen Partilhar Parti 共有する 를 공유 分享 Del доля Sdílet Dijeliti Jakaa Akcji
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.