No.1

作者: coiisy | 来源:发表于2019-03-09 22:24 被阅读0次

    合并指定目录下所有的DWG文件

    (vl-load-com)
    (defun MergeFiles  (x)
      ((lambda (z o)
         (mapcar '(lambda (y)
            (vla-explode (vla-insertblock z o (strcat x "\\" y))))
             (vl-remove-if
               '(lambda (y) (/= (vl-filename-extension y) ".dwg"))
               (vl-directory-files x))))
        (vla-get-modelspace
          (vla-get-activedocument (vlax-get-acad-object)))
        (vlax-3d-point 0 0)))
    

    相关文章

      网友评论

          本文标题:No.1

          本文链接:https://www.haomeiwen.com/subject/zmfypqtx.html