Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.88 KB | None | 0 0
  1. In foo.svg:
  2.  
  3. <ns0:svg xmlns:ns0="http://www.w3.org/2000/svg" xmlns:ns1="http://www.w3.org/1999/xlink" height="594mm" id="root" version="1.1" width="841mm">
  4.   <ns0:defs />
  5.   <ns0:svg version="1.1" x="150mm" y="50mm">
  6.     <ns0:use ns1:href="Camera-1.svg#root" />
  7.   </ns0:svg>
  8. </ns0:svg>
  9.  
  10. Then, in Camera-1.svg:
  11.  
  12. <?xml version="1.0" encoding="utf-8" ?>
  13. <svg baseProfile="full" height="57.01824367046356mm" id="root" version="1.1" viewBox="0 0 101.36576652526855 57.01824367046356" width="101.36576652526855mm" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink">
  14.   <defs>
  15.     <style type="text/css">
  16. <![CDATA[.cut { fill: red; stroke: black; stroke-linecap: 'round'; stroke-width: 0.3px; }
  17. .background { fill: white; stroke: black; stroke-linecap: 'round'; stroke-width: 0.05px; }
  18. .annotation { stroke: blue; stroke-linecap: 'round'; stroke-width: 0.05px; }
  19. ]]>    </style>
  20.     <marker id="dimension-marker" markerHeight="20" markerWidth="20" orient="auto" refX="7.5" refY="10">
  21.       <path class="annotation" d="M 7.5 0 L 7.5 20" style="stroke-width:2px;"/>
  22.       <path class="annotation" d="M 0 0 L 15 20" style="stroke-width:3px;"/>
  23.     </marker>
  24.   </defs>
  25.   <polygon class="cut IfcActuator material-Material globalid-1i8vwtyw50X9xUvs1JXWUl" points="40.68288326263428,38.50912094116211 40.68288326263428,18.50912094116211 60.68288326263428,18.50912094116211 60.68288326263428,38.50912094116211"/>
  26.   <line class="annotation dimension" marker-end="url(#dimension-marker)" marker-start="url(#dimension-marker)" x1="67.6005630493164" x2="67.6005630493164" y1="38.50912094116211" y2="28.50912094116211"/>
  27.   <text font-size="0.2mm" x="67.6005630493164" y="33.50912094116211">1000</text>
  28.   <line class="annotation dimension" marker-end="url(#dimension-marker)" marker-start="url(#dimension-marker)" x1="67.6005630493164" x2="67.6005630493164" y1="28.50912094116211" y2="18.509122848510742"/>
  29.   <text font-size="0.2mm" x="67.6005630493164" y="23.50912094116211">1000</text>
  30.   <line class="annotation dimension" marker-end="url(#dimension-marker)" marker-start="url(#dimension-marker)" x1="20.682884216308594" x2="8.182883262634277" y1="28.50912094116211" y2="28.50912094116211"/>
  31.   <text font-size="0.2mm" x="14.432883262634277" y="28.50912094116211">1250</text>
  32.   <line class="annotation dimension" marker-end="url(#dimension-marker)" marker-start="url(#dimension-marker)" x1="38.935245513916016" x2="38.935245513916016" y1="18.509122848510742" y2="38.50912094116211"/>
  33.   <text font-size="0.2mm" x="38.935245513916016" y="28.50912094116211">2000</text>
  34.   <line class="annotation dimension" marker-end="url(#dimension-marker)" marker-start="url(#dimension-marker)" x1="40.682884216308594" x2="60.682884216308594" y1="16.595041275024414" y2="16.595041275024414"/>
  35.   <text font-size="0.2mm" x="50.682884216308594" y="16.595041275024414">2000</text>
  36. </svg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement