Detailed Drawings > Setting Up and Configuring Drawings > Detail Options > User Commands for Detailed Drawings
User Commands for Detailed Drawings
User commands are used to perform a fix on a drawing or a part. When executed, they clean up data or perform an operation in bulk. You can execute a user command by adding it to the Detail Options.
To Execute a User Command
1. Click File > Prepare > Drawing Properties.
* 
Click File > Prepare > Model Properties, if you are working in the model environment.
2. Click change against Detail Options. The Options dialog box opens.
3. In the Option box, type user_command.
4. In the Value box, type the command you want to execute.
5. Click Add/Change.
6. Click OK. The Options dialog box closes.
7. Click Close. The Drawing Properties dialog box closes.
User Commands
The following table describes some of the common tasks and the user commands to be used:
Task
Description
Delete all unused symbol definitions from a drawing.
delete_unused_symbol_defs
When you insert a symbol in a drawing, the symbol gets stored with that drawing. If you delete this symbol, the symbol definition still remains with the drawing. Use delete_unused_symbol_defs to remove all such unused symbol definitions from the drawing.
* 
If you want to remove one symbol definition at a time, do the following:
1. Click Annotate > Annotations > Define Symbol. The SYM DEFINITION menu appears on the Menu Manager.
2. Click Delete > Name and select the symbol name to delete.
Delete all erased axes from a drawing.
delete_erased_axes
When you retrieve a drawing, all the erased annotations and datums are listed in the Drawing Tree. This may slow down the retrieval of the drawing. Use delete_erased_axes to delete all the erased axes.
Delete all erased notes from a drawing.
delete_erased_notes
When you retrieve a drawing, all the erased annotations and datums are listed in the Drawing Tree. This may slow down the retrieval of the drawing. Use delete_erased_notes to delete all the erased notes.
Delete all erased symbol instances and erased surface finish symbol instances from a drawing.
delete_erased_sym_insts
When you retrieve a drawing, all the erased annotations and datums are listed in the Drawing Tree. This may slow down the retrieval of the drawing. Use delete_erased_sym_insts to delete all the erased symbol instances and erased surface finish symbol instances.
Delete all erased dimensions from a drawing.
delete_erased_dimensions
When you retrieve a drawing, all the erased annotations and datums are listed in the Drawing Tree. This may slow down the retrieval of the drawing. Use delete_erased_dimensions to delete all the erased dimensions.
Delete all symbol instances that have references to missing annotations.
del_sym_on_missing_annotations
A drawing can contain symbols that are placed on annotations. If you delete these annotations, the symbol instances remain with the drawing. Use del_sym_on_missing_annotations to delete all such symbol instances from the drawing, and then click Annotate > Annotations > Delete Unused Symbols.
Repair the display sequence of all stacked model GTOLs in a drawing.
repair_stacked_gtols_sequence
The display sequence of stacked model GTOLs in a drawing is sometimes different than the display sequence in the corresponding model. Use repair_stacked_gtols_sequence to correct the sequence of stacked model GTOLs in the drawing.
* 
You should be careful while using this command. To make the drawing consistent with the model, this command may also delete some of the stacked GTOLs in the drawing.
Alternatively, if you perform the Change Reference operation on such GTOLs, their display sequence is automatically updated according to the model. A notification for this change is also displayed.
Assign units to all legacy angular dimensions that are shown in a model or a drawing.
update_angular_dimension_units
When you open a model or drawing, there might be some legacy angular dimensions without a unit. Use update_angular_dimension_units to assign a unit, as defined by the configuration option default_ang_units, to all the legacy angular dimensions. This works only on shown dimensions in the model and the drawing.
Delete the duplicate model entry from the drawing database.
delete_duplicate_drawing_model
When you replace a drawing model then in the drawing database the old model name, with same id, is retained in suppressed state. If the replaced model is embedded or replaced again, then drawing fails to retain some details of the replaced components as there are two models with same id in the database. Use delete_duplicate_drawing_model to delete the suppressed model entry from the drawing database.
Update all regions in all tables in the drawing to remove the region attribute.
update_region_rels_change_type
When you retrieve a legacy drawing with tables, the relation are regarded as an error if the other side of relation in the new table contains parameters, values, or expression that results in different parameter type.
Was this helpful?