![]() ![]() ![]() ![]() Autocad R12 Dos Windows Code In VS2008Īdd your breakpoints to the code in VS2008. Specify the location of AutoCAD so it is started when debugging begins. ![]() The following needs to be changed for each plug-in if starting from the samples: Change the helper classes StandardsHelp.vb Class name, ProgId, a few of the global variables Description() and Name() properties GetObjectFilter() and SetupForAudit() methods PlugInNext() and PlugInClear() methods GetAllFixes()and GetRecommendedFix() methods Fi圎rror() method and WriteStandardsItemsInfo() methods.Īdd a reference path to the inc-win32 folder in the ObjectARX SDK. The Plug-in needs to be registered with: Windows Using RegAsm.exe AutoCAD Using a Registry key. You need to handle writing out the information about the standards you are using to check against the drawing for you plug-in. There is also something else what seems to be a limitation of the API. However, you need to call the WritePluginInfo method to populate the information about your plug-in for the Batch Standards Checker report. The revised properties need to be assigned to the bad (error) object and the error object needs to be updated corrrectly if the fix was applied. The following methods are used to get the current error being looked at, all available fixes, the recommended fix based on the current error, and display the property differences for the error and selected fix: GetError GetAllFixes GetRecommendedFix GetPropertyDiffs. The following methods are used to identify and step through each error in a drawing against a DWS file: SetContext Start Next Done Clear. The properties you must support are: Author Description HRef Icon Name Version.Ī plug-in is initialized during one of the following conditions: Opening of a drawing with an associated DWS file and the plug- in and real-time checking are enabled Enabling a plug-in in the CAD Standards dialog box or the Batch Standards Checker The following methods must be implemented for initialization: Initialize SetupForAudit. Implemented methods and properties being in the following categories: CAD Standard properties Initialization Error iterations an error being a standards violation Retrieve errors and fixes Fix errors Report errors. Reference the COM library Microsoft XML Type library (Microsoft XML, v6.0) Used for reporting in the Batch Standards Checker 4. Reference the following libraries from the ObjectARX SDK: AcStMgr.dll CAD Standards Manager library Axdb18enu.tlb AutoCAD ActiveXCOM library 3. Type tlbimp acstmgr.tlb and press Enter The file AcStMgr.dll will be added to the inc-win32 folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |