From 8613834129e170efc87cae3390180c596aa133b8 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 26 Mar 2020 18:23:27 +1100 Subject: [PATCH] Optimise titleblock template. Skip pattern adding until it is optimised. --- src/ifcblenderexport/blenderbim/cut_ifc.py | 1 + .../blenderbim/data/templates/titleblock.svg | 3166 +---------------- 2 files changed, 139 insertions(+), 3028 deletions(-) diff --git a/src/ifcblenderexport/blenderbim/cut_ifc.py b/src/ifcblenderexport/blenderbim/cut_ifc.py index 21b0c17667..41cf411207 100644 --- a/src/ifcblenderexport/blenderbim/cut_ifc.py +++ b/src/ifcblenderexport/blenderbim/cut_ifc.py @@ -715,6 +715,7 @@ class SvgWriter(): self.svg.defs.add(External(child)) def add_patterns(self): + return tree = ET.parse('{}templates/patterns.svg'.format(self.ifc_cutter.data_dir)) root = tree.getroot() for child in root.getchildren(): diff --git a/src/ifcblenderexport/blenderbim/data/templates/titleblock.svg b/src/ifcblenderexport/blenderbim/data/templates/titleblock.svg index be8f9f1381..cf966718fc 100644 --- a/src/ifcblenderexport/blenderbim/data/templates/titleblock.svg +++ b/src/ifcblenderexport/blenderbim/data/templates/titleblock.svg @@ -5,15 +5,12 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="841mm" - height="594mm" - version="1.1" id="root" - sodipodi:docname="titleblock.svg" - inkscape:version="0.92.4 (5da689c313, 2019-01-14)"> + version="1.1" + height="594mm" + width="841mm"> + @@ -22,3063 +19,176 @@ image/svg+xml - + - /home/dion/Projects/IfcOpenShell/src/ifcblenderexport/titleblock.dxf - scale = 1.000000, origin = (0.000000, 0.000000), method = manual - - - - - - - - - - - - - - - - DATE - - - REV. BY - - - REV. NO. - - - DESCRIPTION TO REVISION - - - - - - CUSTOMER - - - - - REV. - - - REFERENCE TO: - - - DRG No. - - - - SCALE - - - A1 - - - - - - - PROJECT PORTION - - - CLIENT APPROVED - - - ENGINEER APPROVED - - - CHECKED PROPOSAL - - - APPROVED PROPOSAL - - - - DRAWN BY: - - - - - PROJECT - - - - - - - - - - - - - - - - - - - - - DRAWING NUMBER?DRAWING - - - DRAWING REVISION?REV - - - REFERENCE DWG.REFERENCE - - - SCALE?SCALE - - - NAMENAME - - - CUSTOMER - 1CUSTOMER - - - CUSTOMER - 2CUSTOMER - - - PROJECT - 1PROJECT - - - PROJECT - 2PROJECT - - - PROJECT - 3PROJECT - - - PROJECT - 4PROJECT - - - PORTION DISC 1PORTION - - - PORTION DISC 2PORTION - - - REV. NO. ATEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. BTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. CTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. DTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. ETEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. FTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. GTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. HTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. JTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. KTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. LTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - - - - DATE - - - REV. BY - - - REV. NO. - - - DESCRIPTION TO REVISION - - - - - - CUSTOMER - - - - - REV. - - - REFERENCE TO: - - - DRG No. - - - - SCALE - - - A1 - - - - - - - PROJECT PORTION - - - CLIENT APPROVED - - - ENGINEER APPROVED - - - CHECKED PROPOSAL - - - APPROVED PROPOSAL - - - - DRAWN BY: - - - - - PROJECT - - - - - - - - - - - - - - - - - - - - - - This drawing has been prepared based on the following design criteria. - - Falsework:Concrete Mass=kN/m³ - Live Load=kN/m² - Max. Axial Load on Standard / Prop=kN - Max. Jack Thread Extension=mm (U.N.O) - { - Scaffolding:Max. Working Lifts=No. - Max. Working Lift Load=kg/m² (UDL) - Max. Axial Load on Standard=kN - { - Back Propping / Re-propping: As per the Concrete Design Engineer's instruction. - - - - - - - - - - - - - - NOTES - { - 1) This drawing is the exclusive property of Form-Scaff, a division of Waco Africa (Pty) Limited. It is subject to recall by Form-Scaff and must not be reproduced or its contents divulged - to third parties without Form-Scaff's prior written permission having been obtained. - { - 2) This drawing has been prepared from information supplied to Form-Scaff by the user, and is subject to final approval by user. It is the user's responsibility to ensure that the information supplied - to Form-Scaff has been correctly interpreted by Form-Scaff and that all dimensions and details shown are correct. - { - 3) Notwithstanding the provision of this drawing by Form-Scaff to the user, design responsibilityrests solely with the user. - - 4) The user is referred to the provisions of the OHS Act, the Construction Regulations, and any relevant Codes of Practice, and the user confirms by accepting this drawing that it is familiar with the - provisions of the aforesaid statute, regulations and codes. It is further recommended that the user should have due regard to the provisions of British Standard BS5975. - { - 5) The user must ensure that "Good Practice" is adopted on site. - { - 6) This drawing has no status beyond that expressly denoted on the drawing. Where applicable, the user must ensure that any methods or specific instructions shown on this drawing are in - accordance with the user's requirements. - - 7) The user must approach Form-Scaff for any advice or assistance in interpreting or complying with any of the above, or in the event of there being any ambiguity, contradiction, error or omission - apparent from this drawing or in respect of the specifications or use of any Form-Scaff equipment. - - - - DRAWING NUMBER?DRAWING - - - DRAWING REVISION?REV - - - REFERENCE DWG.REFERENCE - - - SCALE?SCALE - - - NAMENAME - - - CUSTOMER - 1CUSTOMER - - - CUSTOMER - 2CUSTOMER - - - PROJECT - 1PROJECT - - - PROJECT - 2PROJECT - - - PROJECT - 3PROJECT - - - PROJECT - 4PROJECT - - - PORTION DISC 1PORTION - - - PORTION DISC 2PORTION - - - Falsework Concrete Mass?FALSEWORK - - - Falsework Live Load?FALSEWORK - - - Falsework Max. Axial load on Std / Prop?FALSEWORK - - - Falsework Max. Jack Thread Ext?FALSEWORK - - - Formwork Concrete pressure?FORMWORK - - - Formwork Max. Formwork Mass?FORMWORK - - - Formwork Max. Mass of Gang-formed unit?FORMWORK - - - Formwork Max. Rate of Pour?FORMWORK - - - Formwork Ambient Temperature?FORMWORK - - - Scaffolding Max. Working Lifts?SCAFFOLDING - - - Scaffolding Max. Working Lift Load?SCAFFOLDING - - - Scaffolding Max. Axial Load on Standard?SCAFFOLDING - - - REV. NO. ATEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. BTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. CTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. DTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. ETEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. FTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. GTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. HTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. JTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. KTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - REV. NO. LTEXT - - - REVISION DESCRIPTION:-TEXT - - - REVISED BY?TEXT - - - DATE OF REVISION?TEXT - - - - - - - - + transform="translate(0,1122.5197)" + id="g90667"> + height="2093.5583" + width="3027.1016" + id="rect116616" + style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1.88976383;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> REV. NO. - - - - - - - - - - - - - - - - DESCRIPTION + x="113.70713" + id="tspan116524">REV. NO. + + + + + + + + + + + + + + + AUTHOR + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.15362644px;line-height:100%;font-family:'OpenGost Type B TT';-inkscape-font-specification:'OpenGost Type B TT';text-align:center;text-anchor:middle;stroke-width:1px">DESCRIPTION DATE + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.15362644px;line-height:100%;font-family:'OpenGost Type B TT';-inkscape-font-specification:'OpenGost Type B TT';text-align:center;text-anchor:middle;stroke-width:1px" + y="909.15491" + x="491.97513" + id="tspan1397">AUTHOR DATE + {{number}} - DRAWING NUMBER - {{revision}} + x="2829.6274" + id="tspan1415">{{number}} REV + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11.22711563px;line-height:100%;font-family:'OpenGost Type B TT';-inkscape-font-specification:'OpenGost Type B TT';text-align:center;text-anchor:middle;stroke-width:0.99999994px">DRAWING NUMBER + {{revision}} + REV + transform="translate(0,1122.5197)" + id="g90669" /> + transform="translate(0,1122.5197)" + id="g90671" /> + transform="translate(0,1122.5197)" + id="g90673" /> + transform="translate(0,1122.5197)" + id="g90675" /> + transform="translate(0,1122.5197)" + id="g90677" />