CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6599

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 Download 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 size 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).

The Multiple option in ScaleTill allows you to mass scale objects relative to their individual reference points (see video and see sample DWG).

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"
ACAD
100% *  CAD 
3.2.2017    39498×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 13150:How to hatch selected objects including overlays and islands?
Tip 12771:Simplification of an assembly in Fusion 360 - the shrinkwrap function
Tip 12766:Lines with a single grip, incorrect osnaps, intersections, offsets, hatches - CheckLarge
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



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   



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist