CAD Batch Merge files

Source: Internet
Author: User

Requirements : The completion of 504 separate parcels map into a general picture, after merging, remove the other elements, only the completion of the ownership line.

Solution :

1. Merging DWG files, in addition to manual paste copy, the first thought is the insert block, that is inserted with the Insert command, the test results are feasible:

(Apply ' vl-cmdf ' (list "_.insert" "e:\\ Shi an cun vice \\513401212202JB00004 shi an cun village committee." DWG "" 0,0 "" 1 "" "" "));

Note Here is the path of the file, the default Windows copy over the path is: E:\ Stone Village Deputy \513401212202jb00004 Stone Village Committee. DWG, need to be replaced with "\ \".

2. Use Excel to make all the commands:

3. Then enter these commands on the CAD command line and execute the following results:

4. Use the Lisp code to select the closed ownership line and delete it.

  (setvar "Pickstyle" 0)  (Setqss (ssget "x" (  0. "*line")    (-4. "&=") (    1) (    -3 ("South" (1000). "300000")))))  (command "erase" "All" "R" SS "")  (Princ)

Results:

5. The problem has come again, originally 504 pictures, now only 495, less than 9 closed lines, mostly deleted when the problem. Copy 495 to the result of a non-strikethrough merge comparison. The result comes out:

Of course, this is the problem of the data itself, if the data is not a problem, there will be no bad.

CAD Batch Merge files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.