- In Microsoft Visual Studio, click Project menu
<Project> Properties.
- In the Properties dialog, click the References tab.
- Click Reference Paths.
- In the Reference Paths dialog box, click [...] to the right of the Folder text box.
- In the Select Reference Path dialog box, browse to and select the
inc-x64 folder. Click OK.
By default inc-x64 folders are located under <drive>:\ObjectARX <version>.
Note: Substitute <drive> and <version> with the drive letter in which the ObjectARX SDK is installed and the release for which you are building the application. - Click Add Folder and then click OK.
- In the Properties dialog, click the Debug tab.
- Click Start External Program and click [...] to the right of the text box.
- In the Select File dialog box, browse to and select
acad.exe. Click Open.
By default, the acad.exe file is located under one of the following locations based on the release installed:
- C:\Program Files\AutoCAD <release>
- C:\Program Files\Autodesk\AutoCAD <release>
- Register the plug-in with the Windows Registry using a REG file.
- In Microsoft Visual Studio, in the code editor window, set the breakpoints where you want execution to be interrupted.
Remember: The Initialize method is the entry point of a CAD Standards plug-in.
- Click Debug menu
Start Debugging.
- In AutoCAD, open the drawing file to check.
- Configure the drawing standards, do one of the following:
- On the ribbon, Manage tab
CAD Standards panel
Configure.
- At the Command prompt, enter standards.
- On the ribbon, Manage tab
- In the Configure Standards dialog box, Standards tab, click Add and select the drawing standards (DWS) files to use.
- On the Plug-ins tab, enable the use of the custom CAD Standard plug-in.
- Save the drawing file before starting the CAD standards checking process.
- Click Check Standards to start checking the drawing.
In Microsoft Visual Studio, execution pauses at the first breakpoint.