# Export boundaries of Revit Rooms to SVG, and use them in PowerBi

**URL:** <https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776>\
**Category:** Revit\
**Created:** [May 9, 2018, 4:18pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776 "2018-05-09T16:18:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.sellam](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@d.sellam](https://forum.dynamobim.com/u/d.sellam)\
**Post date:** [May 9, 2018, 4:18pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/1 "2018-05-09T16:18:36Z")

</div>

Hello Everybody,

I’m trying to develop a use of Dynamo combining the power of a Revit model with Power BI.

The idea is to transform a revit Plan by exporting it to SVG, then use The Synoptic Panel In Power BI to link the data in its original place.

[https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-using-the-synoptic-panel/](https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-using-the-synoptic-panel/)

[https://okviz.com/synoptic-panel/](https://okviz.com/synoptic-panel/)

I tried to use the “Illustrator” package that is the only one I saw that should export Dynamo geometry in svg  
But this give me that error :

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/8/48e1e33469d4ee0cc7a771e4951f55106132080b.png)

I think that maybe the package is not maintained

I also found this : [https://github.com/jeremytammik/SvgExport](https://github.com/jeremytammik/SvgExport)  
But I don’t understand How I could use it in this workflow

So googling this issue, I found that a SVG file is kind of an XML that can be edit with Notepad. So maybe this can be an opportunity to export using “lunchbox” package but I’m not sure if this is possible ?

What do you think ? Is there an easier way to “convert” a plan in SVG using the room boundary lines ?

Thank you for your answers

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michael_kirschner2/32/75576_2.png) [@Michael\_Kirschner2](https://forum.dynamobim.com/u/Michael_Kirschner2)\
**Post date:** [May 9, 2018, 5:21pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/2 "2018-05-09T17:21:16Z")

</div>

you might find this useful:

> **[elayabharath/Dynamo-Addons](https://github.com/elayabharath/Dynamo-Addons)**
>
> Project to add useful add-ons that will stretch the capabilities of Dynamo library. For Dynamo project, please head out to https://github.com/DynamoDS/Dynamo - elayabharath/Dynamo-Addons

---

<div class="post-metadata">

**Author:** ![d.sellam](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@d.sellam](https://forum.dynamobim.com/u/d.sellam)\
**Post date:** [May 9, 2018, 7:30pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/3 "2018-05-09T19:30:44Z")

</div>

Hello Michael, thank your for your answer.

In fact, this is the package I used by using the node SVG.export in my example… but the result is null

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [May 9, 2018, 7:32pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/4 "2018-05-09T19:32:24Z")

</div>

Null is just a void which is in fact the output of the node in dynamo

---

<div class="post-metadata">

**Author:** ![d.sellam](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@d.sellam](https://forum.dynamobim.com/u/d.sellam)\
**Post date:** [May 9, 2018, 8:58pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/5 "2018-05-09T20:58:01Z")

</div>

Hi Jonathan, So you think that this should’ve been worked this way ?

[https://sea2.discourse-cdn.com/flex016/uploads/dynamobim/optimized/3X/4/8/48e1e33469d4ee0cc7a771e4951f55106132080b\_1\_690x385.png](https://sea2.discourse-cdn.com/flex016/uploads/dynamobim/optimized/3X/4/8/48e1e33469d4ee0cc7a771e4951f55106132080b_1_690x385.png)

I couldn’t find any geometry in the generated .svg file…

Moreover, the problem is that with this method, I cannot give any ID information to the geometry of the svg file

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [May 14, 2018, 8:17am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/6 "2018-05-14T08:17:02Z")

</div>

Yes it should very well, you just need to make sure you read what type of data the inputs need, e.g. the geometry input:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/152a41eb050b1e9189876753f0253693d1016526.png)

But you are right, .svg does not support “ID’s” as pr. say, you could use .csv, i believe PowerBI can work with comma separated files, and this way you can add ID’s and headers to your geometry before export.

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [May 30, 2018, 6:12am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/7 "2018-05-30T06:12:22Z")

</div>

Were you able to do it finally ?

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [May 30, 2018, 7:56am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/8 "2018-05-30T07:56:20Z")

</div>

it does work- but I think you need to be careful with units- depending on what application is used to view the SVG, it might not be able to comprehend something like 100,000 pixels wide

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f7e77bb17ed883b2a5d3ac86ae9428fe4e122793.png)

I’d suggest it is probably easier to create a vector PDF in Revit, then use something like Inkscape to scale/tidy it up and convert to SVG for use in PowerBI  
(note that Inkscape SVG is different to standard SVG)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/02879116cf28fe9604f9e44bec63876fd8c5e990.png)

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/283a98b56cfeafd31417b34a424c1cf6467987b2.png)

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [May 30, 2018, 8:56am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/9 "2018-05-30T08:56:02Z")

</div>

hi @Andrew_Hannell thanks for sharing these images.

I am trying a similar method but my file generated has nothing in it  
am I doing something wrong

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2c102307c744a31775f0851c4754e22cbf24919a.png)

thanks.

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [May 30, 2018, 9:11am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/10 "2018-05-30T09:11:43Z")

</div>

try looking at the file in something like Notepad- it is fairly human-readable  
If that works, then try Inkscape or similar

Trying to view it in a browser can be a problem depending on size/scale- your geometry is probably 1000 miles off the edge of the window

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8bb0c2e9f280f2e395dbeefe1226e9c6732a215b.png)

---

<div class="post-metadata">

**Author:** ![d.sellam](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@d.sellam](https://forum.dynamobim.com/u/d.sellam)\
**Post date:** [May 30, 2018, 9:29am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/11 "2018-05-30T09:29:40Z")

</div>

Thank you for all the answers.

So it seems that the export works for lines using the good scale and with attention of flattening all the lines in one list.

The problem is that, for using The OkViz’s [Synoptic Panel](https://okviz.com/synoptic-panel/) for PowerBI in the most efficient way, we should

- export polygons instead of lines ,
- connect and implement an “ID” field of these polygone that connects the data to the geometry.

For example, if you look at [this file](https://we.tl/YRXmpn9Trq) that is given for example in the Gallery of the [synoptic designer](https://synoptic.design/#) OkViz, each entity ( or room boundary line) is described like this :

`<polygon id="_4" title="" points="878,187,878,263,707,263,707,187" />`

Do you think that we can have this structure using a PDF export from Dynamo ? Or maybe a sequence of xml nodes ?

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [May 30, 2018, 10:25am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/12 "2018-05-30T10:25:31Z")

</div>

thank you so much It works…!

---

<div class="post-metadata">

**Author:** ![adam\_bear1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/adam_bear1/32/13411_2.png) [@adam\_bear1](https://forum.dynamobim.com/u/adam_bear1)\
**Post date:** [September 7, 2018, 3:27pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/13 "2018-09-07T15:27:02Z")

</div>

if your happy to use python, this should work for you

> <https://github.com/Amoursol/dynamoPython/blob/master/revitAPI/roomSvgExporter.py>

---

<div class="post-metadata">

**Author:** ![Joaquim\_Agostinho1](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@Joaquim\_Agostinho1](https://forum.dynamobim.com/u/Joaquim_Agostinho1)\
**Post date:** [October 5, 2018, 5:02pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/14 "2018-10-05T17:02:53Z")

</div>

Hello,

How did you get the “SVG Export” node in Dynamo?

I cannot find it when I search for Packages.

Thank you

---

<div class="post-metadata">

**Author:** ![d.sellam](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@d.sellam](https://forum.dynamobim.com/u/d.sellam)\
**Post date:** [October 8, 2018, 8:27am UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/15 "2018-10-08T08:27:28Z")

</div>

Hello Joaquim,

The SVG.Export node is in the “Illustrator” Package. You can find it in the package manager.

---

<div class="post-metadata">

**Author:** ![Giulio\_Castorina](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Giulio\_Castorina](https://forum.dynamobim.com/u/Giulio_Castorina)\
**Post date:** [April 3, 2019, 4:04pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/16 "2019-04-03T16:04:10Z")

</div>

Hi

I tried to use Adam script but to re-adapt to export Areas by calling the relative API methods but not sure if it’s feasible… I have no idea how to select the Area Plan first - any idea ?

---

<div class="post-metadata">

**Author:** ![adam\_bear1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/adam_bear1/32/13411_2.png) [@adam\_bear1](https://forum.dynamobim.com/u/adam_bear1)\
**Post date:** [April 3, 2019, 7:34pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/17 "2019-04-03T19:34:38Z")

</div>

I’ll set myself a reminder to look at this when I finally get Revit, dynamo installed. New job has very strict IT governance and it’s taking a while…

---

<div class="post-metadata">

**Author:** ![Giulio\_Castorina](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Giulio\_Castorina](https://forum.dynamobim.com/u/Giulio_Castorina)\
**Post date:** [April 12, 2019, 12:36pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/18 "2019-04-12T12:36:01Z")

</div>

Hi

I i think I managed to solve - was very easy actually. Just need to apply RoomFIlter instead of AreaFilter and use areas instead of rooms for boundaries!

---

<div class="post-metadata">

**Author:** ![Giulio\_Castorina](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Giulio\_Castorina](https://forum.dynamobim.com/u/Giulio_Castorina)\
**Post date:** [April 12, 2019, 3:16pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/19 "2019-04-12T15:16:59Z")

</div>

However I get an error on some floors at line 282 " File “”, line 280, in   
StandardError: Unable to create Line. Points are likely coincident "

What can be causing the issue ?

---

<div class="post-metadata">

**Author:** ![adam\_bear1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/adam_bear1/32/13411_2.png) [@adam\_bear1](https://forum.dynamobim.com/u/adam_bear1)\
**Post date:** [April 12, 2019, 9:43pm UTC](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776/20 "2019-04-12T21:43:05Z")

</div>

Points are coincident when they are in the same location, so a line between them would have zero length, tricky to really say more at the moment, I am interested for this and will look at developing something but it’s going to take a while before I get Revit installed, at least with 2020 dynamo is baked in as an add-in rather than something else I need to convince my it fits to install…

[Next page](https://forum.dynamobim.com/t/export-boundaries-of-revit-rooms-to-svg-and-use-them-in-powerbi/21776.md?page=2)
