confused Open / Close all windows/doors

This topic has been viewed 3967 times and has 4 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
McOrmick
Posts: 1
Joined: Tue Nov 30, 2021 11:37 am

Open / Close all windows/doors

Post by McOrmick »

Thanks for a great program. Using the renders in Home Assistant. The picture-elements card is to show a graphical state of a window or door; open or closed.

Is there an automated way of opening/closing all doors or windows (to a certain literal degree), be it in the interface, or even search/replace some value in the Home.xml that is present in the .sh3d (ZIP) file?

Code: Select all

<doorOrWindow id='doorOrWindow-b4a42981-8f51-4c42-a494-355a816b1298' level='level-65b290ae-fe5c-49c5-962a-64b6e26cc07d' catalogId='eTeks#window85x123' name='Small window' creator='eTeks' model='162' icon='161' x='248.46066' y='831.41833' elevation='90.0' width='90.0' depth='44.743702' height='140.0' modelSize='9333' movable='false' dropOnTopElevation='-0.007463522' wallThickness='0.22350736' wallDistance='-8.09938E-7' cutOutShape='M0,0 v1 h1 v-1 z' wallCutOutOnBothSides='true' boundToWall='false'>
    <sash xAxis='0.021872265' yAxis='0.22350654' width='0.9405074' startAngle='0.0' endAngle='-1.5707964'/>
    <transformation name='sweethome3d_hinge_1' matrix='0.91952854 0 -0.15615946 -0.03357417 0 1 0 0 0.9891639 0 0.91952854 0.41869727'/>
</doorOrWindow>
Thanks!
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Open / Close all windows/doors

Post by Puybaret »

Just add the element [font=courier new]<transformation>[/font] you found to each [font=courier new]<doorOrWindow>[/font] element in the Home.xml file.
This will work only for a given model.
Emmanuel Puybaret, Sweet Home 3D creator
sugaretto
Posts: 2
Joined: Wed Jun 29, 2016 4:02 pm

Re: Open / Close all windows/doors

Post by sugaretto »

Hi guys, in relation to this request, I remember there is a 3D view where you can open/close a window/door... but I don't remember how anymore, can you please help me? Thanks
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Open / Close all windows/doors

Post by Puybaret »

Sugaretto, look at this article.
Emmanuel Puybaret, Sweet Home 3D creator
sugaretto
Posts: 2
Joined: Wed Jun 29, 2016 4:02 pm

Re: Open / Close all windows/doors

Post by sugaretto »

Thanks! That was what I'm looking!
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest