Jump to content

Leaderboard

  1. Lee Mac

    Lee Mac

    Trusted Member


    • Points

      1

    • Posts

      21,098


  2. Tharwat

    Tharwat

    Trusted Member


    • Points

      1

    • Posts

      7,389


  3. Stefan BMR

    Stefan BMR

    Community Member


    • Points

      1

    • Posts

      494


  4. BIGAL

    BIGAL

    Trusted Member


    • Points

      1

    • Posts

      20,046


Popular Content

Showing content with the highest reputation on 03/16/2026 in all areas

  1. @mhupp great code no reason why input could not be 7.7;-12;22.8;12;-5.9;21.6;-0.5;\3.5;8;2.5;\1.5;13.8 in this case each leg is separated by a semi colon, or more often a comma is used. Could type in say notepad and copy and paste to a getstring. The reason for the paste rather than type direct would be if made a mistake you UNDO fix in notepad and do again. Use "parse to list" defun. @Ataim what do you think about that idea ?
    1 point
  2. If I understand correctly your request, I think you can get the same with the right settings. Just aim the desired direction and specify the distance.
    1 point
  3. Another method: (defun c:vpon ( / d s ) (vl-load-com) (if (setq s (ssget "_+.:S:E:L" '((0 . "VIEWPORT")))) (progn (setq d (vla-get-activedocument (vlax-get-acad-object))) (vla-put-mspace d :vlax-true) (vla-put-activeviewport d (vlax-ename->vla-object (ssname s 0))) ) ) (princ) ) And to 'deactivate': (defun c:vpoff ( ) (vla-put-mspace (vla-get-activedocument (vlax-get-acad-object)) :vlax-false) (princ) )
    1 point
×
×
  • Create New...