AutoCAD-Mechanical-2011-API_第1页
AutoCAD-Mechanical-2011-API_第2页
AutoCAD-Mechanical-2011-API_第3页
AutoCAD-Mechanical-2011-API_第4页
AutoCAD-Mechanical-2011-API_第5页
已阅读5页,还剩46页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Autodesk Manufacturing Developers Camp 2010AutoCAD Mechanical APIWayne BrillDeveloper Technical Services - API ConsultantImage courtesy of MastenbroekAbout the PresenterWayne BrillDeveloper Technical ServicesAmericas (resides in the Seattle area)Wayne been an Autodesk employee since 1991 and started

2、 working in Developer Technical Services in 2000. He supports the APIs for the following products: AutoCAD, AutoCAD Mechanical, AutoCAD OEM , RealDWG and Inventor. In his off hours he enjoys music and playing golf. Areas of FocusAPI OverviewC+ API COM APIAPI OverviewAPI ArchitectureAutoCADAutoCADAut

3、oCADAutoCADAPI ArchitectureLibraryXLibraryY - LibraryX is based on LibraryYLibraryX LibraryY- LibraryX is dependent on LibraryYCOM Automation APIGeAutoMcad2DSPreview.ocxSymBBAutoAcadmAutoC+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ APIC+ API Class

4、HierarchyFrom: “.AcadM_2011_sdkacadmapidocacadmcpp_15_0.chm”C+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API AcmSymBB Bill Of MaterialsPart ListBalloonsPart ReferenceDrafting Standards (ISO, etc.)C+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiA

5、mdt_attributesStructure APIAmgTitleAmgUtilC+ API - AcmSymBBSymbolsSurface Texture Feature Identifier Datum IdentifierDatum TargetFeature Control FrameWeldingC+ API AcmSymBB new in ACM 2009Functionality Added in ACM 2009Symbols Edge, Detail, Taper, NoteBOM Predefined ListPart List Filters, Alignments

6、C+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API AcmSymBB new in ACM 2010 New Classes Symbol Library added in ACM 2010AmdtSymbolLibraryAmdtWeldingLibraryAmdtSurfTextLibraryAmdtWeldingLibObjectAmdtSurfTextLibObjectC+ SDK APIacadmapimcadapiAcmSymBBAm

7、dt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API - AmgTitleFunctionality Added in ACM 2009Title BorderC+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API AmgTitle new in ACM 2010 Functionality Added in ACM 2010 Revision ListC+ SDK API

8、acadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API AmgUtil new in ACM 2009Functionality Added in ACM 2009Scale AreaC+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApi

9、Amdt_attributesStructure APIAmgTitleAmgUtilC+ API Amdt_stdimpCreating new standards e.g. adding new signs to welding symbolsC+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API - McadApiMigration to Mechanical StructureStandard Parts (Added in ACM 2004

10、DX)Block (Added in ACM 2006)Mechanical Structure Functionality Added in ACM 2004Create new structure objectsC+ API McadApi Functionality Mechanical Structure FunctionalityCreate, Edit Component, Component View and FolderHide SituationsGet structure object from entityHighlight entities in structure o

11、bjectsExternal Path of Xref Structure ComponentsLocalize and get external databasesConvert Structure to Blocks and blocks to structureAMSPURGE, AMSCOPYDEF, AMSEDIT, AMEXPLODE, AMSMOVE, AMSREPLACEDEFC+ SDK APIacadmapimcadapiAcmSymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilC+ API M

12、cadApi new in ACM 2010Mechanical Structure New Classes Added in ACM 2010ami2DSIsStructureModeami2DSSetStructureModeami2DSIsReferenceLockModeami2DSSetReferenceLockModeami2DSIsSelectionLockModeami2DSSetSelectionLockModeami2DSGetSelectionOrderModeami2DSSetSelectionOrderModeC+ SDK APIacadmapimcadapiAcmS

13、ymBBAmdt_stdimpMcadApiAmdt_attributesStructure APIAmgTitleAmgUtilThe 2010 SDK is available for download from this location:http:/ download includes Object ARX2011 version still needs to be made available for download C+ API SDK Download The SDK delivered as a zip file. The root directory is named du

14、ring the extraction32 and 64 bit SDK both includedC+ API SDK InstallSDK Documentation and SamplesReference Guide:sdk_Installxxxxacadmapidocacadmcpp_15_0.chmC+ and .NET samples available:HTM files describe the C+ and .NET samples:C:AcadM_2011_sdkacadmapisampleSamplesReadme.htmC:AcadM_2011_sdkacadmapi

15、sampledotNet netSamplesReadme.htm2010 & 2011 SDK headers & VS 2008Header FilesSectionSym.h, AcmRevisionList.h, SymbolLib.hWeldSymLib.h, SurfSymLib.hNeed to use Visual Studio 2008 + SP1C+ API - Header File PathsC+ API - Library PathsC+ API - LibrariesC+ - vspropsC+ API DemoRun the Revision Li

16、st sampleC:AcadM_2011_sdkacadmapisampleRevisionListCOM APICOM APIGeAutoMcad2DSPreview.ocxAcadmAutoStructure functionality (Annotation View, Component View, Folder, etc.)BOM, Balloons, Part lists, Part references, Symbols, etc.Transient Geometrical ObjectsDisplay a thumbnail bitmap of a block, a list

17、 of entities, a folder, a component view, or an entire component COM Automation APIGeAutoMcad2DSPreview.ocxSymBBAutoAcadmAutoSymBBAutoAcadmAutoFrom the AutoCAD Mechanical 2011 ActiveX and VBA Reference:C:Program FilesAutodeskACADM 2011Helpacadmauto_15_0.chmCOM API - GeAutoGeAutoMcad2DSPreview.ocxAca

18、dmAutoStructure functionality (Annotation View, Component View, Folder, etc.)BOM, Balloons, Part lists, Part references, Symbols, etc. Transient Geometrical Objects Display a thumbnail bitmap of a block, a list of entities, a folder, a component view, or an entire component COM Automation APIGeAutoM

19、cad2DSPreview.ocxSymBBAutoAcadmAutoSymBBAutoGeAuto Object ModelFrom the AutoCAD Mechanical 2011 ActiveX and VBA Reference:C:Program FilesAutodeskACADM 2011Helpacadmauto_15_0.chmCOM API - VBA EnvironmentInside AutoCAD we can just press Alt+F11 to reach itCOM API - ReferencesSelect the above libraries

20、 and click OK2010 updates Autodesk SymBBAuto 2.0 Type Library to Autodesk SymBBAuto 3.0 Type Library“Interfaces can be reached via AutoCAD Application objectSub AccessLibraries() Dim acmApp As AcadmApplication Set acmApp = Application.GetInterfaceObject(AcadmAuto.AcadmApplication) Dim symMgr As Mcad

21、SymbolBBMgr Set symMgr = Application.GetInterfaceObject(SymBBAuto.McadSymbolBBMgr) Dim geApp As GeApplication Set geApp = Application.GetInterfaceObject(Ge.Application)End SubCOM API - GetInterfaceObjectVBA in 2010 & 2011VBA editor is no longer be included on product DVDsFree download http:/ ADN

22、 websiteAcadmAuto Structure VBA DemosCreateStructureCreate structure from selected entities (uses GeAuto)ConvertStructureConvert a block to structure MoveComponent (in the mechanical structure)CreateHideSituationiterateComponentsPrint out components in the immediate windowCOM API - SymBBAutoGeAutoMc

23、ad2DSPreview.ocxAcadmAutoStructure functionality (Annotation View, Component View, Folder, etc.)BOM, Balloons, Part lists, Part references, Symbols, etc.Transient Geometrical ObjectsDisplay a thumbnail bitmap of a block, a list of entities, a folder, a component view, or an entire component COM Auto

24、mation APIGeAutoMcad2DSPreview.ocxSymBBAutoAcadmAutoSymBBAutoSymBBAuto Object ModelFrom the AutoCAD Mechanical 2011 ActiveX and VBA Reference:C:Program FilesAutodeskACADM 2011Helpacadmauto_15_0.chmCOM API - Mcad2DSPreviewGeAutoMcad2DSPreview.ocxAcadmAuto Structure functionality (Annotation View, Com

25、ponent View, Folder, etc.)BOM, Balloons, Part lists, Part references, Symbols, etc.Transient Geometrical ObjectsDisplay a thumbnail bitmap of a block, a list of entities, a folder, a component view, or an entire component COM Automation APIGeAutoMcad2DSPreview.ocxSymBBAutoAcadmAutoSymBBAuto SymBBAut

26、o VBA DemosSetBOMItemDataGetBOMItemDataMakeSureColumnExistsSortBOMCreateBalloon and PartsListFilterPartListCreateTitleBorderCreateSurfaceSymbolCreateRevListChangeNoteTextCOM Sample Applications - .NETCOM API from - .NET - ReferencesCOM API from - .NET - Debugging.NET DemoCreate VB .NET Project from scratchAdd a Part Reference and a Parts listRun the .NET Section line sampleC:AcadM_2011_sdkacadmapisampledotNe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论