+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32
  1. #1
    Senior Member nod684's Avatar
    Computer Details
    nod684's Computer Details
    Operating System:
    Windows 7 Home
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    232

    Unhappy Isometric Polygon

    Registered forum members do not see this ad.

    does anyone has a lisp to spare to draw an Isometric Polygons?
    what i do is make an Isometric Circle, Divide the circle into parts, trace the nodes, erase the circle and nodes and there's my polygon.
    "Memories fade but the scars still linger...."

  2. #2
    Full Member Manila Wolf's Avatar
    Discipline
    Construction
    Using
    AutoCAD 2009
    Join Date
    Oct 2011
    Location
    Philippines
    Posts
    90

    Default

    If I understand correctly, your isometric circle is an ellipse.
    Are your divisions all of equal length?

    If so, the distinguished Lee Mac has an excellent program that will equally segment circles and ellipses (and others) into equal length segments.
    I regularly use this program. I am sure Lee will not mind me directing you to this. Thanks Lee.

    Can be found on Lee's site here: -

    http://lee-mac.com/segmentcurve.html

  3. #3
    Senior Member nod684's Avatar
    Computer Details
    nod684's Computer Details
    Operating System:
    Windows 7 Home
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    232

    Default

    Quote Originally Posted by Manila Wolf View Post
    If I understand correctly, your isometric circle is an ellipse.
    Are your divisions all of equal length?

    If so, the distinguished Lee Mac has an excellent program that will equally segment circles and ellipses (and others) into equal length segments.
    I regularly use this program. I am sure Lee will not mind me directing you to this. Thanks Lee.

    Can be found on Lee's site here: -

    http://lee-mac.com/segmentcurve.html
    Thanks for the reply wolf. Yes...i have it is an ellipse
    what am looking for sana is a lisp that will prompt me for how many sides will the polygon be and input the diameter agad.

    But this helps too. Thanks a lot!
    "Memories fade but the scars still linger...."

  4. #4
    Senior Member marko_ribar's Avatar
    Computer Details
    marko_ribar's Computer Details
    Operating System:
    Windows 7 Ultimate X64
    Computer:
    Intel quad core CPU 4x2.66GHz, 8GB RAM
    Motherboard:
    INTEL compatibile
    CPU:
    quad core 4x2.66GHz
    RAM:
    8GB
    Graphics:
    NVIDIA GeForce 6600 GT
    Primary Storage:
    250 GB
    Secondary Storage:
    500 GB
    Monitor:
    Samsung 17''
    Discipline
    Architectural
    marko_ribar's Discipline Details
    Occupation
    Architecture, project designer, project visualisation
    Discipline
    Architectural
    Details
    space design - modeling and animations
    Using
    AutoCAD 2012
    Join Date
    Feb 2010
    Location
    Belgrade, Serbia, Europe
    Posts
    358

    Default

    Maybe, this :

    Code:
    (defun transptiso (pt)
      (list (+ (car (polar (list 0.0 0.0 0.0) (/ pi 6.0) (car pt))) 
            (car (polar (list 0.0 0.0 0.0) (* 5.0 (/ pi 6.0)) (cadr pt))) )
    
            (+ (cadr (polar (list 0.0 0.0 0.0) (/ pi 6.0) (car pt))) 
            (cadr (polar (list 0.0 0.0 0.0) (* 5.0 (/ pi 6.0)) (cadr pt))) )
    
            0.0
      )
    )
    
    (defun c:isopolygon (/ pol vertlst vertlstn)
      (vl-cmdf "_.ucs" "w")
      (vl-cmdf "_.plan" "")
      (vl-cmdf "_.zoom" "c" "0,0,0" "")
      (vl-cmdf "_.polygon" pause "0,0,0" pause pause)
      (setq pol (entlast))
      (mapcar '(lambda (x) (if (= (car x) 10) (setq vertlst (cons (cdr x) vertlst)))) (entget pol))
      (setq vertlst (reverse vertlst)) 
      (setq vertlstn (mapcar '(lambda (p) (transptiso p)) vertlst))
      (entmake 
        (append
          (list
            '(0 . "LWPOLYLINE")
            '(100 . "AcDbEntity")
            '(100 . "AcDbPolyline")
            (cons 90 (length vertlstn))
            '(70 . 1)
          )
          (mapcar '(lambda (x) (cons 10 x)) vertlstn)
          (list (list 210 0.0 0.0 1.0))
        )
      )
      (entdel pol)
      (vl-cmdf "_.ucs" "p")
      (princ)
    )
    M.R.

    Marko Ribar, d.i.a. (graduated engineer of architecture)
    M.R. on YouTube

  5. #5
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,152

    Default

    Quote Originally Posted by nod684 View Post
    Thanks for the reply wolf. Yes...i have it is an ellipse
    what am looking for sana is a lisp that will prompt me for how many sides will the polygon be and input the diameter agad.

    But this helps too. Thanks a lot!
    Sounds easy enough.

    Not sure if what you need is the same as what i have in mind. can you post an image of the desired result?

  6. #6
    Senior Member nod684's Avatar
    Computer Details
    nod684's Computer Details
    Operating System:
    Windows 7 Home
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    232

    Default

    Hi M.R.
    tried using your routine but i think have some error as the resulting polygon is not Isometric

    pBe, image attached
    Attached Images
    "Memories fade but the scars still linger...."

  7. #7
    Senior Member marko_ribar's Avatar
    Computer Details
    marko_ribar's Computer Details
    Operating System:
    Windows 7 Ultimate X64
    Computer:
    Intel quad core CPU 4x2.66GHz, 8GB RAM
    Motherboard:
    INTEL compatibile
    CPU:
    quad core 4x2.66GHz
    RAM:
    8GB
    Graphics:
    NVIDIA GeForce 6600 GT
    Primary Storage:
    250 GB
    Secondary Storage:
    500 GB
    Monitor:
    Samsung 17''
    Discipline
    Architectural
    marko_ribar's Discipline Details
    Occupation
    Architecture, project designer, project visualisation
    Discipline
    Architectural
    Details
    space design - modeling and animations
    Using
    AutoCAD 2012
    Join Date
    Feb 2010
    Location
    Belgrade, Serbia, Europe
    Posts
    358

    Default

    Turn polar tracking to 45 degrees, and while executing routine make 6 sided polygon with "Inscribed" option with angle 135 degree... You'll get what you posted - conventional way... My code does draw isometric polygon - see my attached jpg...

    M.R.
    Attached Images

    Marko Ribar, d.i.a. (graduated engineer of architecture)
    M.R. on YouTube

  8. #8
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,152

    Default

    Quote Originally Posted by nod684 View Post
    pBe, image attached
    Conventional way means the isocircles are existing?

  9. #9
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,816

    Default

    I don't think 'isometric' is the correct term to describe the result that the OP is looking to obtain, which may be misleading those who are attempting to provide a solution; that said, I'm not sure that I completely understand the desired result.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  10. #10
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,152

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Lee Mac View Post
    I don't think 'isometric' is the correct term to describe the result that the OP is looking to obtain, which may be misleading those who are attempting to provide a solution; that said, I'm not sure that I completely understand the desired result.
    Indeed it does shows an odd shape polygon, i attempted to write a code based on the description on the first post, (granting the isocircles are existing)

    Code:
    (defun  c:sample (/ objell sides seg seg2 pts)
      (vl-load-com)
      (setq objell  (car (entsel)))
      (setq sides (getint "\nEnter number of sides"))
      (setq  seg  (/ (vlax-curve-getdistatparam
                  objell
                  (vlax-curve-getendparam objell)
                  )
                sides
                ) seg2 0.0
        )
      (repeat sides
        (setq
          pts
           (cons (vlax-curve-getpointatdist objell (+ seg seg2)) pts)
          )
        (setq seg2 (+ seg seg2))
        )
      (command "_Pline" "_non")
      (foreach pt (cons (last pts) pts) (command pt))
      (command)
      (entdel objell)
      (princ)
      )
    My guess is this thread has something to do with the OP's post on another forum. creating isocircles oriented on Top/Left/Right

    http://www.theswamp.org/index.php?topic=42737.0

Similar Threads

  1. Replies: 2
    Last Post: 8th Jul 2012, 11:13 pm
  2. Replies: 5
    Last Post: 6th Jul 2012, 04:59 pm
  3. polygon in isometric
    By cytechnician in forum AutoCAD General
    Replies: 4
    Last Post: 19th Aug 2011, 05:35 am
  4. polygon command
    By cadamrao in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 28th Jul 2011, 03:30 pm
  5. Point in polygon VBA
    By klpocska in forum .NET, ObjectARX & VBA
    Replies: 1
    Last Post: 14th Feb 2011, 06:53 am

Bookmarks

Posting Permissions

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