CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 4183 

CAD tip CAD tip # 11295:

Question CAD 
 %  platform  category 
Q - question

Iterative Move, Scale and Rotate - till boundary touch.

A - answer With the freeware utility CADstudio MoveTill you can edit the selected drawing object so that it will just touch the specified boundary object(s). You can choose between the operations Move, Scale and Rotate. Unlike standard commands, you don't specify exact parameters of the operation - you only suggest the direction.

This type of AutoCAD editing operations can be usually performed with the help of object snaps (osnaps). In some situations (e.g. if it is not clear where will the objects touch first, 'scale to fill-up' or 'passing through a limited space' tasks, etc.) it is not possible to use osnaps, and here will help this iterative method of incremental changes performed in an automatic loop with more and more accurate steps - see an example:

You can download the MoveTill utility from and load it into AutoCAD with APPLOAD. Then you can type the command MOVETILL, SCALETILL or ROTATETILL to start the requested iterative operation. Within it you will select the edited object, the potential boundary object or objects and the reference point or direction for the stepped changes. The application supports all types of 2D DWG objects.

For Move you specify the direction vector (its site is irrelevant), for Scale you specify just the reference point, for Rotate you specify the reference point and the direction of the rotation (cw, ccw).

In Setup you can select the animation mode (fast, slow, interactive on pressing Enter), precision for detecting the intersection (interference with the boundary), the iteration rate (speed) and the maximum number of iteration loops.

In some cases (e.g. with thin objects) the iteration proces may not come to a solution - in this case try to decrease the iteration rate, e.g. to 0.8.

You can also preset the iteration parameters with the LISP variables:

(setq _TillMinMove 0.01) ; initial move (coef.)
(setq _TillMinScale 1.01) ; initial scale
(setq _TillMinRotate 0.01) ; initial rotation
(setq _TillFuzzEqual 0.000001) ; match coef.
(setq _TillMaxLoops 100) ; max. loops
(setq _TillIterRate 1.0) ; relative iter.speed
(setq _TillAnimate "No") ; animation type "Slow" "Fast" "Interactive"
100% *  CAD 
3.2.2017    2206×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 9763:Lasso - new method for selecting objects in AutoCAD 2015.
Tip 7648:Area not displayed for some boundaries or hatches.

Back   All CAD Tips All CAD tips&tricks

"Clock Error" when starting Autodesk CAD application. « | » Adding, multiplying and rounding numbers inside DWG drawing texts - NumInText.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.