Jump to content

Recommended Posts

Posted

I have problem.

 

Is possible to use AutoCad command line, draw "rectang" ?

 

I need draw rectang (H)40cm x (W)70cm.

and show (H)=40cm, (W)=70cm string.

 

Any idea please!

 

I'm use Autocad 2009.

Posted

REC is the rectangle command. It lets you pick the initial and opposite corner or enter the width and height. If you want to show the (H) and (W), you could do that with mtext.

Posted

Would you mind to tell me FULL step...

 

[new], select (.dwt) "acad.dwt", OPEN

rec, ENTER

any mouse point X

any mouse point Y

 

 

BUT, how to correct 40x70cm ?

Posted

start 'rectang' commmand

first corner - anywhere on screen

other corner: @70,40

Posted

To use the rectang command, simply click at any point on the screen and type the x-distance followed by a comma [,] and the y-distance. If you have a 150 by 150 square, you click anywhere on the screen or a location of your choice and type without the braces "150,150". If you have a room say 3m500 x 4m, you click anywhere on the screen or a selected spot and then type in 3500,4000. Of course, all the dimensions are entered within the context of the RECTANG command. You can also used the directed line segment to draw rectangle and other regular shapes but it is going to be more lengthy.

 

Using Pedit, M for Multiple and you select the four lines created and type J for Join and Press Enter twice, you have a perfect rectangle. The reverse can be done by selecting any rectangle or regular polygon created with polylines and clicking on EXPLODE or using the EXPLODE command at the command prompt.

 

 

 

A combination of rectang and line or simply l command is very useful in architectural drawings. All the columns and walls are done with the rectang command and the line are used on a more temporary basis, used mainly to locate point and facilitate the creation of rectangular walls.

 

Hope this help. :)

Posted

Maybe I have a different rectangle command but as I recall when I first start the command AutoCAD prompts me to "Specify the first corner point or..." which is followed by picking a point on my screen. Then I am prompted to "Specify other corner point or..." This is where I type "D" , for Dimensions, and the following prompts appear:

 

Specify length for rectangles : 40

Specify width for rectangles : 70

 

Finally, I am prompted to "Specify other corner point or..." At this prompt where I make that second pick determines the orientation of the rectangle.

 

rpool: Is this what you see on your screen?

Posted

Yes, I can do it.

 

but some question.

 

my step:

rectang

any mouse point, _click

D

40

70

any mouse point _Click

 

 

but last mouse point _Click(). Mouse move to Upper Left, that square

Upper Left, Upper Right

Lower Left, Lower Right ?

 

what is this ?

Posted

What you are seeing is the one option AutoCAD gives you to select the orientation of your rectangle. That's all it is.

Posted

Now,

mouse move to BLUE square.

assist line, show 70, 40

 

But, how to automatic generate (H)="40cm", (L)="70cm" string ?

Posted

How to dimension the rectangle? There is no "automatic" but there is QDIM (Quick Dimension). Refer to your AutoCAD Help files for instructions on how to use this feature.

 

One other thought. Could you be looking for these dimensions to show up in the rectangle? Maybe as a field?

Posted

You might also load this as a lsp-file.

 

You are beeing asked the width and length of the rectangle, and then the insertion point:

 

 
(DEFUN C:REC () 
(SETQ X (GETREAL "\nX-Length :"))
(SETQ Y (GETREAL "\nY-Length :"))
(SETQ PUNKT (GETPOINT "\nBase Point :"))
(COMMAND "_OSNAP" "")
(COMMAND "_RECTANG" PUNKT (LIST (+ (CAR PUNKT) X) (+ (CADR PUNKT) Y)))
(COMMAND "_OSNAP" "_END,_INT,_MID,_CEN,_INS,_PER")
(COMMAND "_REDRAW")
)   

 

If you need help to load, just say so.

Posted

Is correct method ?

appload

load my lsp file, {load}

 

and run command: REC, +enter

 

Done ?

Posted

I have problem:

 

Paper: A4 paper, 21.0cm, 29.7cm, All size is set "CM"

 

(Q1) this "dwt" file is correct I need?

 

(Q2) how to "automatic show that line(s) length result, mean !

 

any idea how to simple doing: [command: named "alen"]

 

alen +enter

[any mouse point [blue squale1] _Click1

[any mouse point [blue squale2] _Click2

automatic generate between [blue squal1] and [blue squal2] length string?

 

mean function:

mtext

[any mouse point [blue squale1] _Click1

[any mouse point [blue squale2] _Click2

input this string "40cm" +enter

 

any idea please!

ex1.jpg

re1.dwg

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...