CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 6832:

Question

CAD 
 %  platform  category 
A
With a single AutoCAD command you can change rectangles drawn with the command RECTANGLE to true rectangles, which also behave like rectangles.

Compare the following two animations - they illustrate the behaviour of two similar objects. The first one is a normal rectangle created using the standard AutoCAD command. The second one is a true rectangle ("rectangle on steroids" if you want), which also behaves like a rectangle during grip-editing and other AutoCAD editing operations.

Standard rectangle (polyline)

True rectangle (constrained polyline)

So how to get a true rectangle from a standard rectangular polyline (pline)? Just a single "magic" command is enough: AUTOCONSTRAIN. With this command you will add automatic geometric constraints to the selected object - and these constraints will be then kept also during editing.

So you can e.g. add a new command for drawing rectangles to your AutoCAD command set (to the ribbon, toolbars, etc.) - use CUI and the following menu macro:

  
^C^C_RECTANGLE;\\_AUTOCONSTRAIN;_L;;  
This new command will directly create the "true" rectangles. Such rectangles will behave like rectangles even in AutoCAD LT 2010 (and higher), which itself cannot create such kind of constrained objects.

You can suppress displaying the constraint bars by setting the CONSTRAINTBARMODE variable to 0.

ACAD2010ADT2010ACADM2010Map2010
100% *CAD
31.7.2009    41149×  
Share the tip:
Digg it! Del.icio.us Facebook Twitter Google bookmark Technorati StumbleUpon

See also:
Tip 14098:How to use arc length parameter in Inventor sketch?
Tip 14088:3 methods of creating true rectangles in AutoCAD.
Tip 13788:Green square - mathematical charade and parametric constraints in AutoCAD.
Tip 13185:Constraining object movement to a specified curve (rail) in AutoCAD.
Tip 12961:Bolt-nut constraint/joint in Fusion 360.


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
  



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


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