s-leger / archipack

Archipack for blender 2.79
https://blender-archipack.org
GNU General Public License v3.0
360 stars 50 forks source link

Exporting layout problems #237

Open apolo74 opened 3 years ago

apolo74 commented 3 years ago

Archipack version: 2.3.4

Blender version: 2,90,1

Os version: Windows 10

Description of the issue: When exporting the layout as SVG and opening it with Inkscape (which is the only one that can open it, Illustrator returns: "this SVG is not valid, validate it before opening") there are 3 issues that I'd like you guys to help me with:

  1. The symbol of "square meters" prints the "m" and then a lot of garbage text which I'm guessing represents the superindex of square.
  2. Windows are open even though some windows are not supposed to open.
  3. All doors are represented as open but I'd like to control which ones are shown open or close, for example the Garage doors I'd like to stay close since they don't open with a pivot in a corner. Please refer to the image for each of this points and thanks for any instructions for addressing these issues. Cheers, Boris prop07_L1
s-leger commented 3 years ago

Hi, Usually door symbol are always open, there is an issue with "garage" doors where symbol is not matching. http://constructionmanuals.tpub.com/14027/img/14027_42_1.jpg

Wich version of inkscape - 0.9x and 1.02 are able to import superscript, perhaps a font issue - ?

apolo74 commented 3 years ago

Hi Stephen, I'm using Inkscape 1.0.2 but it seems the problem is not there... I went to an online viewer (https://www.rapidtables.com/web/tools/svg-viewer-editor.html) and opened the SVG file directly there to check the raw code and I see that Blender is exporting wrongly from the beginning... here is an example of Blender's file:

`<text id="Area.009_label.001" style="font-size:8.858267716535433px; stroke:none; fill:#000000;" x="0" y="0" transform="matrix(1.0,0.0,-0.0,1.0,394.36151123046875,631.5933227539062)">Hall

9.35 m�

`

So as you see the "square" symbol is coming wrong from Blender, right? Do you know how to fix this in Blender? In your YouTube video the SVG image has all the right text also for square meters so maybe you can share with me the SVG code for square meters... my last option would be to open the SVG code and replace manually all those weird symbols. About the windows, I just found out that I can "fix" the windows that I want "close" in the layout :) About the Garage doors... I saw in your video that you have them close, how did you do it? Final question, how do I include in the layout furniture like the kitchen? They don't show when I export everything even though they are visible.

s-leger commented 3 years ago

The code coming out from blender is unicode value for superscript ('\u00b2' and '\u00b3'), i guess there is either a character encoding issue occuring in the between, a character map like "latin" expecting another unicode value, or a font not including superscript 2/3 in use. In inkscape 1.0.2 the text appears as 4.1 m² here.

In order to export custom objects, use a "section object" to generate slice curve. Visible curves found on layout are exported.

For garage door i guess i removed the open symbol.

apolo74 commented 3 years ago

Hi again Stephen, I used your information to check a bit deeper the font problem and it seems that the output from Blender in the SVG file is literally like this "m²", which means there is no encoding at all... when I open the SVG file from Blender directly in a text editor I see it like that "m²". Then I assume that Inkscape does not recognize that symbol but I found a SVG-viewer on internet that recognizes the symbol and leave it as it is. After that I just converted it into a JPG image and saved it. I didn't understand the part of exporting the kitchen as custom object but it's not too important for now so I'll keep playing with this in my free time. The garage doors are maybe a bit more urgent and I'll try to find a hack to show them in the layout as close doors. Thanks again for your help, Boris