Results 1 to 9 of 9

Thread: Rectangle command draws 4 Lines instead of 1 Polyline

  1. #1
    Active Member jeff.garr's Avatar
    Join Date
    2003-06
    Location
    Palm Harbor, FL
    Posts
    84
    Login to Give a bone
    0

    Default Rectangle command draws 4 Lines instead of 1 Polyline

    Is it possible to change a setting when using the rectangle/polygon commands to have them created as a Polyline? It is currently set up as individual lines. Didn't previous versions allow for this?

  2. #2
    AUGI Addict
    Join Date
    2015-12
    Location
    Arizona
    Posts
    2,478
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    Jeff in 2002 at least the help file has this to say:

    RECTANG Draws a rectangular polyline , so polyline is
    the default entity. Sounds like someone has redefined your
    command.

    I haven't tested the rectang commands relation to the
    PLINETYPE system variable they may be related.
    Last edited by mjfarrell; 2004-09-30 at 03:41 PM.

  3. #3
    Active Member jeff.garr's Avatar
    Join Date
    2003-06
    Location
    Palm Harbor, FL
    Posts
    84
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    Michael-
    Thank you for letting me know about PLINETYPE- I was not aware of this, however this did not work. I tried creating a rectangle with RECTANG with PLINETYPE set to 0, 1, and 2 with no luck. When you go to help in '05 it says exactly what you said "draws a rectangular Polyline". I have checked with some of the other users here and they have the same problem with theirs they also mentioned that it worked that way in '04 as well. Drawing a POLYGON will do this for us, but that will not create a rectangle (just a square).

  4. #4
    I could stop if I wanted to roy.70844's Avatar
    Join Date
    2004-06
    Location
    South Wales UK
    Posts
    278
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    Hi,
    I think the PLINETYPE variable deals with the conversion of non-optimised (older version) polylines to optimised when opening existing drawings or creating new plines (including polygons, boundaries and rectangles). The default setting is 2.

    I think I would check for a re-defined command. Do a search for a file called either acad.lsp or acaddoc.lsp If one exists then have a look at it with notepad and look for some code like
    (defun-q S::STARTUP ( )
    (command "undefine" "rectang")
    ...

    )
    If this is there then the command has been undefined.

    Make a safe copy of the acad.lsp or acaddoc.lsp then edit out the (command "undefine" "rectang") line.

    Restart Autocad and see what happens.

    Good luck.
    Roy

  5. #5
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    Hi

    To go with Roy's suggestion, instead of searching for undefined commands simply put a period in-front of the native AutoCAD command, this will force the native command to run regardless....

    ._Rectang

    Have a good one, Mike
    Last edited by Mike.Perry; 2004-10-01 at 09:45 AM. Reason: Correct grammar

  6. #6
    Wish List Manager BrenBren's Avatar
    Join Date
    2000-11
    Location
    150700
    Posts
    3,439
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    I wish I knew what the variable was - I looked but didn't find anything. I can tell you that, in Vanilla 2005 and Mechanical 2005, both the rectangle command and the polygon command create polylines, not individual lines.

    It is almost as if yours are getting exploded somehow. I will look further to see if I can find anything.

  7. #7
    I could stop if I wanted to roy.70844's Avatar
    Join Date
    2004-06
    Location
    South Wales UK
    Posts
    278
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    oh yeah, I'd forgotten about the dot thing. Thanks for the reminder.

    Roy

  8. #8
    AUGI Addict jpaulsen's Avatar
    Join Date
    2002-04
    Location
    Colorado
    Posts
    2,020
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    I can confirm that the rectangle command draws polylines in Map and LDT 2005. I searched through the help but could not find any variables that would contorl this. I agree with above posts that the command has probably been redefined.

    You know I forgot about the "dot" thing also. I think the last time I used it was like Release 12. I tried experimenting with it in LDT 3 but it did not seem to work. Anyone know why not?

    In our system qleader is undefined and defined as leader. When I type ._qleader or .qleader it still runs the leader command.

    I changed the acaddoc.lsp to only undefine qleader and not define it as leader. When I type ._qleader or .qleader it says unknown command "QLEADER".

  9. #9
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Rectangle command draws 4 Lines instead of 1 Polyline

    Hi

    With QLeader undefined use the following to run the QLeader command -

    _.ACAD_DIM.QLEADER

    The following Technical Document explains further -

    ID: TS30704 - Executing undefined dimension commands

    Have a good one, Mike

Similar Threads

  1. Offset a rectangle to separate lines.
    By BrianTFC in forum AutoLISP
    Replies: 2
    Last Post: 2012-02-06, 09:53 PM
  2. Replies: 3
    Last Post: 2009-04-15, 07:30 PM
  3. Find the lower left corner of polyline rectangle
    By avinash00002002 in forum AutoLISP
    Replies: 5
    Last Post: 2007-04-28, 08:52 AM
  4. Rectangle command returns - unknown command
    By rhayes.99001 in forum AutoCAD General
    Replies: 5
    Last Post: 2006-11-27, 02:33 PM
  5. Replies: 2
    Last Post: 2006-05-19, 08:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •