Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/18/2025 in Posts

  1. Presumably you're assuming an MLEADER as opposed to a LEADER? For a LEADER entity, an arrowhead size override is set within the extended entity data, e.g.: (defun c:myleader ( / p q s ) (if (and (setq p (getpoint "\n1st point: ")) (setq q (getpoint "\n2nd point: " p)) (setq s (getdist "\nSpecify arrowhead size: ")) ) (progn (regapp "ACAD") (entmake (list '(0 . "LEADER") '(100 . "AcDbEntity") '(100 . "AcDbLeader") (cons 10 (trans p 1 0)) (cons 10 (trans q 1 0)) (list -3 (list "ACAD" '(1000 . "DSTYLE") '(1002 . "{") '(1070 . 41) (cons 1040 s) '(1002 . "}") ) ) ) ) ) ) (princ) )
    1 point
  2. The leader entity still exists within the drawing database, the owner is simply the block definition rather than the Modelspace/Paperspace block; rather than using (entlast), you can use the entity name returned by (entmakex).
    1 point
  3. I've literally just turned it all off for the night.... 42. will try that one Wasn't working for qleader, multileaders I think it does.
    1 point
  4. @pkenewell FWIW, all the range checks could be shortened to this. No need for AND (<= 399.5 area1 449.5)
    1 point
  5. Your return is a list , in your example this is a list with one member '("GroupName") to retrieve it is very basic lisp : (setq group-list '("GroupName")) (setq group-name (car group-list)) or (setq group-name (nth 0 group-list))
    1 point
  6. Thankyou so much. This is perfect. 10000 pieces of texts rotated perfectly in a matter of seconds
    1 point
  7. You could try this too: (defun c:foo (/ a d) (vlax-for l (vla-get-layers (setq d (vla-get-activedocument (vlax-get-acad-object)))) (cond ((= -1 (vlax-get l 'lock)) (vlax-put l 'lock 0) (setq a (cons l a)))) ) (vlax-for b (vla-get-blocks d) (if (= 0 (vlax-get b 'isxref) (vlax-get b 'islayout)) (vlax-for o b (vl-catch-all-apply 'vla-put-layer (list o "0")) (vl-catch-all-apply 'vla-put-color (list o 256)) ) ) ) (foreach l a (vlax-put l 'lock -1)) (vla-purgeall d) (vla-regen d acactiveviewport) (princ) )
    1 point
  8. I think my approach was somewhat hasty. Without a doubt: the most appropriate approach is the one suggested by @Emmanuel Delay
    1 point
×
×
  • Create New...