Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/01/2018 in all areas

  1. It could be even - (cond ( (setq l_lst (vl-sort l_lst '<)) ... ) ); cond
    1 point
  2. Hi @dlanorh Have a look at the following: (vl-string-right-trim ".dwg" "my drawing.dwg") And this: (vl-filename-base (getvar 'dwgname))
    1 point
  3. I would suggest copying your Dimension Style, changing the colour properties as appropriate and then applying such style to your selection of dimensions - this way, your drawing will not contain objects with overrides.
    1 point
  4. With a little reading, you could have saved you & your reseller some time - You can lead a horse to water...
    1 point
  5. In fact my intention was simple, in order to clean up the [BBcodes] within the new code tags in this forum. Therefore, IMO optimized with CLIPBOARD without using 'getfiled' is much more convenient, isn't it? code updated - post#1 Copy text (from forum) -> run 'FORUM' (in ACAD) -> [Ctrl+V] Paste (in forum active editor) Done!
    1 point
  6. See if THIS THREAD helps.
    1 point
  7. Try something like this: (defun c:exnest ( ) (vlax-for blk (vla-get-blocks (LM:acdoc)) (if (and (= :vlax-false (vla-get-isxref blk)) (= :vlax-false (vla-get-islayout blk)) ) (vlax-for obj blk (if (and (= "AcDbBlockReference" (vla-get-objectname obj)) (null (vl-catch-all-error-p (vl-catch-all-apply 'vla-explode (list obj)))) ) (vl-catch-all-apply 'vla-delete (list obj)) ) ) ) ) (command "_.-purge" "_B" "*" "_N") (vla-regen (LM:acdoc) acallviewports) (princ) ) ;; Active Document - Lee Mac ;; Returns the VLA Active Document Object (defun LM:acdoc nil (eval (list 'defun 'LM:acdoc 'nil (vla-get-activedocument (vlax-get-acad-object)))) (LM:acdoc) )
    1 point
×
×
  • Create New...