Print at Dec 16, 2025, 4:07:52 AM

Posted by okh at Jun 1, 2018, 6:23:49 PM
Re: Indicate price in furniture list
The idea is to make my own library with furniture to use for exhibitions, so clients can design an exhibition stand and know the total price for buying or renting the furnitures.
Yes, I can see that is making good use of the price system. Before you start, a couple of warnings:
- The prices are not yet implemented, and I would treat them as BETA testing at your own risk.
- Keep back-up of all files you edit, and as you will be editing a file used by the SH3D system, do not be angry with anyone for anything going wrong.
- Beware of not building furniture libraries without paying attention to copyright issues.
- Prices and tax rates are, of course, also your responsibility.
- Comply with the general licensing provided with SH3D and libraries.
- Note that you will need to edit text files in compressed zipped files. How you do this will differ, but you may for instance need to rename the files to xxxx.zip to be able to access the content, extract the file you want, edit it, put it back in place and re-name the file back to its original extension.
- The files can be pretty unforgiving. Using a comma instead of full stop could prevent the file from working.

1) Enabling price information in SH3D
Please, revisit the instructions above in Puybaret's post , all the information you need is there. Once the default currency is set, you can right-click the furniture list and select different price elements from 'Display column'.

2) Setting price information for furniture
Create your collection of furniture with the FurnitureLibraryEditor (http://sweethome3d.com/download.jsp#other) and save.
The library will be in a .sh3f file which is also a zipped file.
As for the editing, there is a lot of info around in the forum and a brief description on page 9 in the SVG guide (http://www.sweethome3d.com/SVGPathMiniManualForSweetHome3D.pdf). In short, it will go something like this:
From the .sh3f file you will need to extract PluginFurnitureCatalog.properties
Each piece of furniture is assigned a number and several entries with properties
http://www.sweethome3d.com/javadoc/com/eteks/...eCatalog.PropertyKey.html
lists the different optional and mandatory properties.
As an example, a priced item (#2 in the library) could look something like this after editing:
id#2=okh#isowineglass
name#2=Glass wine iso
information#2=<a href="https://duckduckgo.com/?q=iso+wine+glass">ISO glass</a>
description#2=Reasonably priced glasses, smooth
tags#2=standard wine tasting glass
category#2=Miscellaneous
icon#2=/Glass wine iso.png
model#2=/Glass wine iso/glass_wine_iso.obj
multiPartModel#2=true
width#2=6.5
depth#2=6.5
height#2=15.5
movable#2=true
doorOrWindow#2=false
modelSize#2=13320
deformable#2=false
resizable#2=false
texturable#2=false
price#2=2.50
currency#2=EUR
value_added_tax_percentage#2=14
creator#2=okh
Here some non-standard fields are added manually:
information#xxx= (links and simple html possible)
deformable#xxx / resizable#xxx / texturable#xxx (all set to =false to limit changing the model)
and, of course, the fields you are interested in price#xxx, currency#xxx and value_added_tax_percentage#xxx.

I would strongly encourage you to share more about your project in the forum. Not only could it be a strong argument for your wish to implement pricing, but it could also, as you say, be useful for others. If your project has some commercial value, I guess you could also ask for eTeks (or someone) to implement pricing in a custom versions - or create a plugin as suggested above.

Lykke til, eller skitt fiske som vi sier her oppe i sommervarmen. Hold oss orientert.

ok