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: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2572 times and has 3 replies Next Thread
david4502
Newbie



Соединенные Штаты
Joined: Mar 10, 2021
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
How to change ID of home objects

The release notes for version 6.4 contain this interesting item:

* Added IDs to home objects which may be modified.

I have a use for this feature. I am writing a script to convert SH3D files to X3D files. I would like to set the ID on certain elements so that event handlers can be attached.

I have checked and the home objects in the SH3D files now indeed have ID attributes. What I can't find is where in the GUI one can change the ID of an object. Could someone tell me where to look? Thanks.
[Mar 11, 2021, 12:12:12 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: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to change ID of home objects

There's no method to change the ID of objects. Too dangerous!
But you can manage your own ID with a property using setProperty / getProperty methods of HomeObject super class.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Mar 11, 2021, 8:56:25 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
david4502
Newbie



Соединенные Штаты
Joined: Mar 10, 2021
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to change ID of home objects

In Inkscape you can change the ID of any object. I thought that this changelog entry meant that we could now change the ID of a wall or a piece of furniture by entering the desired ID into a text field somewhere in the Sweethome 3D program.

So what does this changelog entry mean?
[Sep 10, 2021, 9:31:08 PM] 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: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to change ID of home objects

"which may be modified" is related to objects, not to IDs.
This changelog means that all objects which content may change have an (internal) unique ID.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Sep 10, 2021, 10:33:01 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