Creating a closed pline

Discussion in 'AutoCAD' started by mnash, Feb 18, 2005.

  1. mnash

    mnash Guest

    I want to creat a closed polying with any given paramters.
    I've tried

    (setq Width (Getreal "\nEnter Width... "))
    (setq Height (Getreal "\nEnter Height..."))

    (setq P2 '(width height 0))
    (setq P3 '(5 5 0))

    where to test above I wanted to just draw a line from P2 to P3, but nothing is happening
     
    mnash, Feb 18, 2005
    #1
  2. mnash

    devitg Guest

    i do not know why , but better use this

    (setq Width (Getreal "\nEnter Width... "))
    (setq Height (Getreal "\nEnter Height..."))

    (setq P2 (list width height 0))
    (setq P3 (list 5 5 0))

    use ( list x y z )
    instead of '( x y z)
     
    devitg, Feb 20, 2005
    #2
  3. mnash

    Adesu Guest

    Good explain !,thanks.
     
    Adesu, Feb 21, 2005
    #3
  4. mnash

    mnash Guest

    thanks guys, i got it to work this morning
     
    mnash, Feb 21, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.