Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 7
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3470 times and has 6 replies Next Thread
PBnetwork
Newbie



FR
Joined: Nov 10, 2010
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
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]
----------------------------------------
[Edit 1 times, last edit by Puybaret at Nov 15, 2010, 12:42:18 PM]
[Nov 15, 2010, 8:02:49 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4002
Status: Offline
Reply to this Post  Reply with Quote 
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
[Nov 15, 2010, 8:32:00 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
PBnetwork
Newbie



FR
Joined: Nov 10, 2010
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
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...
[Nov 15, 2010, 9:08:07 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4002
Status: Offline
Reply to this Post  Reply with Quote 
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. smile

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Nov 15, 2010, 9:33:08 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
PBnetwork
Newbie



FR
Joined: Nov 10, 2010
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Nov 15, 2010, 9:48:35 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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
[Nov 15, 2010, 4:48:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
PBnetwork
Newbie



FR
Joined: Nov 10, 2010
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Nov 15, 2010, 5:08:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved