[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Multiple Shortcuts for Saved Chamfer Distance Values
Tip# 4488 By Kent Cooper On 15-Jun-2015
5
Rated By 1 users Downloaded : 186
Categories : 2D Operations, 2D Editing
Software type : AutoCAD 2016
Rename File To : ChamferMult.lsp
Here's an AutoLISP routine that offers quick access to saved chamfer values.

Building on Tip #4457, Multiple Fillet Radius Values, frequent tipster Kent Cooper has made a similar routine that works with AutoCAD's Chamfer command instead of Fillet. The commands C0, C1, C2....C9 can be defined for quick access to saved chamfer values.

Start by loading the AutoLISP file, then run any command Cx (where x is a number between 0 and 9). For example, you can run the command C2 and set the chamfer distance to 2.0.  At that point forward until you might change it, the C2 command will execute a chamfer with both distances set to 2. The chamfer values you set for each Cx command are stored in environment variables so they will be saved in between drawing sessions.

 

Average Rating:
5


User comments
Comment by Cooper,Kent
Posted on 2015-06-19 11:11:41
I would just point that while the description above might be interpreted to mean that both distances will always be the same, that's not the case. You can set different distances for Chamfer's Dist1 and Dist2 values in these commands, and they do remember BOTH distances [and independent of regular Chamfer's CHAMFERA & CHAMFERB System Variable settings, which are not affected by these commands].