Structural Details Manager Tool
The Structural Details Manager (SDM) tool allows structural engineers to reprocess the structural drawing outputs generated by Friday to add/remove details and reorder the details in the catalog.
Initial setup
- Clone the repository
git@gitlab.com:tangobuilder/jarvis/structural-details-manager.gitfollowing the instructions on the page How to clone a repository in the employee handbook. - Install requirements by executing the following command:
$pip3 install -r requirements.txt.
Add and remove details (Basic)
-
Add the structural drawing dxf file (
wood_lfwsw_shearWall_PlanViews.dxf) you want to process in the repository folder. -
Before executing the tool, add and/or remove details Ids from the
wood_lfwsw_shearWall_PlanViews.dxffile.
Note: If you want to add new details Ids in the model space to be processed by SDM, you need to add them in the layerA-ANNO-ID-INPUT. -
Run the
./bin/replaceDetailsID.pycommand to execute the tool as follows:./bin/replaceDetailsID.py structural_drawings.dxf --keepIDWhere the arguments are:
wood_lfwsw_shearWall_PlanViews.dxf(required): Path to the dxf file containing the details ids.--keepID(optional): If this argument is added, the outputs will keep the id after setting the page and slot. Otherwise will not.
-
The tool will generate the following outputs:
wood_lfwsw_shearWall_PlanViewsbackup.dxf: This file contains the structural drawing plan views with the ids replaced with page and slot in the model space.wood_lfwsw_shearWall_PlanViews_with_details.dxf: This file contains the structural drawing plan views with the ids replaced with page and slot in the model space and also the pages (paper spaces) with the details.details.json: This file serves as an index for the details. It contains a list of pages per type of detail set:foundation,floor,wall, androof, and each page contains a list of details in a specific order.
-
Review the outputs generated by the tool. If the result is not what is expected, you can repeat the process from step 2.
Reorder details catalog (Advanced)
-
Add the structural drawing files you want to process in the repository folder. This includes the
wood_lfwsw_shearWall_PlanViews.dxffile and thedetails.json.The
details.jsonfile serves as an index for the details. It contains a list of pages per type of detail set:foundation,floor,wall, androof, and each page contains a list of details in a specific order. -
Before executing the tool, revise the
details.jsonfile to reorder the details in the catalog. -
Run the
./bin/replaceDetailsID.pycommand to execute the tool as follows:./bin/replaceDetailsID.py structural_drawings.dxf -i "details.json" --keepIDWhere the arguments are:
wood_lfwsw_shearWall_PlanViews.dxf(required): Path to the dxf file containing the details ids.-i "details.json"(optional): detail index file. This argument-ishould be followed by the path to the “details.json” file to take as input a reference details index.--keepID(optional): If this argument is added, the outputs will keep the id after setting the page and slot. Otherwise will not.
-
The tool will generate the following outputs
wood_lfwsw_shearWall_PlanViewsbackup.dxf: This file contains the structural drawing plan views with the ids replaced with page and slot in the model space.wood_lfwsw_shearWall_PlanViews_with_details.dxf: This file contains the structural drawing plan views with the ids replaced with page and slot in the model space and also the pages (paper spaces) with the details.details.json: This file is the details index.
-
Review the outputs generated by the tool. If the result is not what is expected, you can repeat the process from step 2.