|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: How to add information in the file .SH3D |
|
| Print at Jan 31, 2026, 11:17:08 AM | View all posts in this thread on one page |
| Posted by PBnetwork at Nov 15, 2010, 9:02:49 AM |
|
How to add information in the file .SH3D Hello everyone, I need to save, for each of the furniture positioned on the 2D plan (an integer that will serve me as an identifier). However I don't know where to change the code to save this information in the file SH3D, and then retrieve it. Do you know if this is possible? If yes, could you give me a track to do this? Thank you for your feedback. Pierrick. [Note from moderator: please no translation. If you prefer to speak French, please post in the French section] |
| Posted by hansmex at Nov 15, 2010, 9:32:00 AM |
|
Re: How to add information in the file .SH3D / Ajouter une information dans le fichier .SH3D PB, The only way, that I can think of, is to change the names of all the furniture elements you have inserted into your design. However, the problem is to retrieve this information, as (most?) text editors cannot open the SH3D file. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by PBnetwork at Nov 15, 2010, 10:08:07 AM |
|
Re: How to add information in the file .SH3D / Ajouter une information dans le fichier .SH3D Thank you for your answer. I think I haven't been enough precise. In fact, I have to integrate SweetHome in a PHP application, when I insert a furniture in the plan, a popup is displayed, and the user has to fulfill some informations, when he sends the form, it saves these informations in a database, with a generated ID which correspond to the furniture in SweetHome, this is this ID that I need to retrieve and to save in the SH3D file... |
| Posted by hansmex at Nov 15, 2010, 10:33:08 AM |
|
Re: How to add information in the file .SH3D / Ajouter une information dans le fichier .SH3D PB, This is beyond me. Check it with Emmanuel. Sounds as if you need to program this in Java. SH3D is open source, so the code is available. If you have trouble doing it yourself, I'm sure Emmanual can be convinced to do it for you, if the price is right. Hans ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by PBnetwork at Nov 15, 2010, 10:48:35 AM |
|
Re: How to add information in the file .SH3D / Ajouter une information dans le fichier .SH3D I know I have to program this in Java... but I don't know enough SH3D, that's why I need some help ! Anyway, thank you for having taken time to look at my problem. |
| Posted by Puybaret at Nov 15, 2010, 5:48:43 PM |
|
Re: How to add information in the file .SH3D / Ajouter une information dans le fichier .SH3D Maybe you could use the description property to store your information. Until now, this modifiable property isn't used yet, so if you store your information in it, it won't appear in the user interface but will be saved. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by PBnetwork at Nov 15, 2010, 6:08:06 PM |
|
Re: How to add information in the file .SH3D / Ajouter une information dans le fichier .SH3D Thank you very for your answer, it solved my problem. |
|
|
Current timezone is GMT Jan 31, 2026, 11:17:08 AM |