CAD macros to incorporate new surveys into the Compiled map of Auroville » History » Version 7
Giulio Di Anastasio, 08/05/2021 15:57
1 | 1 | Giulio Di Anastasio | h1. CAD macros to incorporate new surveys into the Compiled map of Auroville |
---|---|---|---|
2 | 1 | Giulio Di Anastasio | |
3 | 1 | Giulio Di Anastasio | h2. A series of macros to automatically incorporate new survey data into the compiled map of whole Auroville after the conversion from QGis |
4 | 2 | Giulio Di Anastasio | |
5 | 2 | Giulio Di Anastasio | > * First, list out the updated layers with status. For example: |
6 | 2 | Giulio Di Anastasio | |
7 | 3 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10664/List%20of%20updated%20layers.png! |
8 | 4 | Giulio Di Anastasio | |
9 | 4 | Giulio Di Anastasio | The use of this list is to help identify the CAD layers to be updated without need to operate on all CAD layers. |
10 | 4 | Giulio Di Anastasio | If the QGis layer (shapefile/geopackage) is a *POLYGON* layer, then in the corresponding dxf file all features will be stored in the CAD layer called “Boundary” (it is assigned by default by the QGis algorithm). |
11 | 4 | Giulio Di Anastasio | If instead the QGis layer (shapefile/geopackage) is a *LINE* layer, then in the corresponding dxf file all features will be stored in the CAD layer called “Line” (it is assigned by default by the QGis algorithm). |
12 | 4 | Giulio Di Anastasio | In this example, the dxf file ‘’V_BLDG_SHED----E” will be used, to be replaced into the Compiled map file. This layer is a POLYGON layer. In the example, directions are given for both POLYGON and LINE layers. |
13 | 5 | Giulio Di Anastasio | |
14 | 5 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10665/Window%20with%20available%20dxf%20files.png! |
15 | 6 | Giulio Di Anastasio | |
16 | 6 | Giulio Di Anastasio | > * Open the file “E-V-BLDG-SHED.dxf”, it will open as blank window. |
17 | 6 | Giulio Di Anastasio | |
18 | 6 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10667/Dxf%20file%20open%20in%20CAD.png! |
19 | 7 | Giulio Di Anastasio | |
20 | 7 | Giulio Di Anastasio | The next steps are executed by macros, which have been defined differently for POLYGON and for LINE layers. |
21 | 7 | Giulio Di Anastasio | If it is a *POLYGON* layer, the first macro will zoom-extent to all the objects in the layer, and then change the current layer from ‘0’ to “Boundary” layer. |
22 | 7 | Giulio Di Anastasio | If it is a *LINE* layer, the current layer will be changed to “Line” layer. |
23 | 7 | Giulio Di Anastasio | The macro also turns off the visibility of all other layers in the drawing. |
24 | 7 | Giulio Di Anastasio | To run the macro: |
25 | 7 | Giulio Di Anastasio | > * Go to “Manage” menu. In the “Action Recorder” tab, click on the drop-down to see the list of all recorded macros: |
26 | 7 | Giulio Di Anastasio | |
27 | 7 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10668/List%20of%20recorded%20macros.png! |