Jump to content

Drawing Rectangles to specific dimensions


ADAM'S_APPLE

Recommended Posts

Hello,

 

As advanced as my AutoCAD skills are I don't know how to specify the dimensions of a rectangle or square yet. Anyone know the prompts I need to follow after typing the 'rec' command in?

 

Best

Adam

Link to comment
Share on other sites

Pick your start point, type "D" for dimensions and enter the appropriate values. Move your cursor to orient the rectangle in the direction you want to go. Then click. Done.

Link to comment
Share on other sites

There are a couple of other options that are a bit quicker, IMO.

 

1) Start the Rectangle command followed by the "@" symbol, followed by the X and Y dimensions

 

2) If you have Dynamic Input turned on, Start the Rectangel Command, followed by the X and Y dimensions

Link to comment
Share on other sites

Heres another variation on drawing rectangle but at an angle and with an offset chucked in as well

 

; draw pits with 100mm walls
(setq oldsnap (getvar "osmode"))
(setq oldlayer (getvar "clayer")) 
(command "_layer" "n" "Design-Drainage-Pits" "c" 4 "Design-Drainage-Pits" "")
(setvar "clayer" "Design-Drainage-Pits")
(setq length (getreal "\nPlease enter length m eg 0.9: "))
(setq width (getreal "\nPlease enter width : "))
(setq pt1 (getpoint "\npick 1st point to place pit : "))
(setq pt2 (getpoint "\nPick 2nd point for orientation"))
(setvar "osmode" 0)
(setq pt7 (getpoint "\Pick pt on pit side : "))
(setq ang (angle pt1 pt2))
(setq ang5 (angle pt2 pt7))
(setq diffang (- ang ang5))
(if (> diffang 1.5707) 
(setq ang2 (- ang 1.570796))
(setq ang2 (+ ang 1.570796))
)
(setq ang3 (+ ang 3.1415926))
(setq ang4 (- ang 1.570796))
(setq pt3 (polar pt1 ang length))
(setq pt4 (polar pt3 ang2 width))
(setq pt5 (polar pt4 ang3 length))

(command "pline" pt1 pt3 pt4 pt5 "c")
(setq pt6 (polar pt1 ang 50.0))
(command "offset" 0.1 pt4 pt6 "")
(setvar "osmode" oldsnap)
(setvar "clayer" oldlayer)
(princ)

Link to comment
Share on other sites

  • 1 year later...

Sorry for piggyback riding into this thread..........

We have recently installed 2012 Architecture, and I am having problems drawing rectanlges in the way mentioned in option 2 above. This is how I have always drawn them, and I find it hugely frustrating that for some reason, it is not working at present......I have dynamic input on and can enter the first dimension, then when I tab to the next one, it completly ignores it and draws a rectangle of complete random size?! Any thoughts??? I will use the rectangle, and dimension option for the time being.

 

Thanks in advance,

 

Spezza

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...