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