Название: AutoCAD Platform Customization
Автор: Ambrosius Lee
Издательство: Автор
Жанр: Зарубежная образовательная литература
isbn: 9781118798911
isbn:
Figure 1.8 Changing the notification and Check Standards settings
Figure 1.9 Access to CAD Standards notifications and settings is just a click away.
Checking For and Fixing Standards Violations
After you have associated at least one DWS file to a drawing and specified which plug-ins to use, you can check your drawing for standards violations. While you are checking for standards violations, each plug-in is executed one by one, and how a plug-in checks for standards violations can vary between plug-ins.
The standard four plug-ins that come with AutoCAD compare the name of an object in the current drawing to the names of objects in the associated DWS files. When a match is found, AutoCAD checks to see whether the properties of the two named objects are the same. If they are the same, AutoCAD moves on to the next named object and checks it. If the properties are different, you are asked to fix or ignore the standards violation. If no matching named object is found between the drawing and DWS files, you are prompted to select one of the approved named objects from the associated DWS files or ignore the standards violation.
Follow these steps to check a drawing for any standards violations:
1. On the ribbon, click Manage tab ➢ CAD Standards panel ➢ Check (or at the command prompt, enter checkstandards and press Enter).
The Check Standards dialog box (see Figure 1.10) is displayed. If no DWS file is associated with the drawing file, you will be presented with an error message. Click OK to configure the CAD standards settings for the drawing and then continue checking for standards violations.
2. In the Check Standards dialog box, in the Problem area review the first standards violation found. The Problem area provides you with a description of the standards violation.
3. In the Replace With area, choose one of the available fixes.
The Replace With area provides you with all the possible fixes that one of the plug-ins identified for the standards violation. A plug-in can recommend a fix that is indicated by a blue check mark to the left of the item. After selecting a possible fix for the standards violation, you can see an overview of the changes that will be made in the Preview Of Changes area. You can have AutoCAD automatically fix standards violations that have nonstandard properties by clicking the Settings button and enabling Automatically Fix Non-standard Properties in the CAD Standards Settings dialog box. If your DWS files offer more than one recommendation for a fix, you can specify the preferred DWS file that you want to use from the CAD Standards Settings dialog box as well.
4. Click Fix to correct or Next to skip the standards violation, and move to the next one found.
When you skip a standards violation, you can click Mark This Problem As Ignored to not have the violation show up the next time the drawing is checked. You can choose to display all ignored violations by clicking the Settings button and enabling Show Ignored Problems in the CAD Standards Settings dialog box.
5. Continue stepping through each standards violation until the Check Standards – Check Complete message box is displayed. Click Close.
The Check Standards – Check Complete message box (see Figure 1.11) provides you with a summary of the actions taken to resolve the standards violations found.
6. Click Close to close the Check Standards dialog box and return to your drawing.
Figure 1.10 Standards violation found
Figure 1.11 The check for standards violations is complete.
While working on a drawing with CAD standards configured, you might see the Standards Violation balloon (see Figure 1.12) come up. This indicates that something in the drawing conflicts with your company's standards. A custom routine might have caused the standards violation, or maybe you inserted a drawing that contains named objects that were not updated with the latest standards. Click the Run Check Standards link in the balloon to fix or ignore the standards violation.
Figure 1.12 Standards violation detected
Checking Drawings in Batches
The Check Standards dialog box is efficient for checking the standards of the current drawing, but it is not ideal if you have five, ten, or even hundreds of drawings in your project that need to be checked. When AutoCAD is installed, it also installs an external utility called the Batch Standards Checker. The Batch Standards Checker allows you to select a number of drawings and check them against the standards defined in a DWS file.
The Batch Standards Checker allows you to check the drawing files using the DWS files that are already associated with each file, or you can specify which DWS files should be used. This utility uses the same plug-ins that are available in the Configure Standards dialog box. The one feature that the Batch Standards Checker does not support is the ability to fix any of the violations found; that must be done by opening each drawing and using the checkstandards command.
The following steps explain how to use the Batch Standards Checker:
1. Do one of the following:
• (Windows XP and Windows 7) Click the Windows Start button ➢ [All] Programs ➢ Autodesk ➢ AutoCAD <release> ➢ Batch Standards Checker.
• (Windows 8) On the Start screen, right-click and click All Apps. Under the AutoCAD <release> category, click Batch Standards Checker.
The Batch Standards Checker dialog box (see Figure 1.13) is displayed.
2. In the Batch Standards Checker, on the Drawings tab click the + (plus) button.
3. In the Batch Standards Checker – File Open dialog, browse to and select the drawings and drawing templates you want to check for standards violations. Click Open.
Press and hold the Ctrl key when browsing to select more than one file.
4. Optionally, click the Check External References Of Listed Drawings check box.
When this option is enabled, the Batch Standards Checker will also check the external references attached to the listed files for any standards violations.
5. Click the Standards tab.
This tab is similar to the Standards tab of the Configure Standards dialog box in AutoCAD. The only difference is the two options located along the top of the tab.
6. Choose one of the two options along the top of the tab:
• The Check Each Drawing Using The Associated Standards Files option instructs the Batch Standards Checker to use the DWS files associated with each drawing file; if no DWS file is associated with a drawing file, the drawing is not checked for standards violations.
• СКАЧАТЬ