Print at Dec 18, 2025, 6:00:07 AM

Posted by Puybaret at Sep 8, 2011, 2:55:11 PM
Re: Add picture on 2D panel only
If you want to add pictures in the 2D plan only, you should create a separated .sh3f furniture file that will contain these pictures, an invisible OBJ file and a PluginFurnitureCatalog.properties file that will describe the fake catalog furniture you want to describe.

As the Furniture Library Editor is not designed to manage invisible models with a visible icon, you won't be able to use (or you'll have to edit the generated file afterwards).
To show you how to proceed, I attached the Symbols.sh3f demo file that describes an information symbol and a phone symbol. Each symbol is described with some properties listed in DefaultFurnitureCatalog class followed by # and a order counter.
name, category, icon, model, width, depth, height, movable and doorOrWindow are mandatory, whereas the other properties are optional. In your case, even if height isn't used, you shouldn't set it to 0.
id is useful to avoid duplicates in case the same model appears more than once in different .sh3f files.
deformable is interesting if you don't want to let the user change proportions.
You should also define the planIcon property to ensure you use the correct icon, when furniture icons in plan should be rendered with top view icons and not catalog icons.

# PluginFurnitureCatalog.properties
# Copyright (c) 2007-2011 Emmanuel PUYBARET / eTeks <[email protected]>.

description=Symbols catalog
version=1.0
license=Free Art License 1.3
provider=www.sweethome3d.com

id#1=Symbol#Phone
name#1=Phone
category#1=Symbols
icon#1=/phone.png
planIcon#1=/phone.png
model#1=/invisibleCube.obj
width#1=10.0
depth#1=10.0
height#1=10.0
movable#1=true
doorOrWindow#1=false
creator#1=eTeks

id#2=Symbol#Information
name#2=Information
category#2=Symbols
icon#2=/information.png
planIcon#2=/information.png
model#2=/invisibleCube.obj
width#2=8.0
depth#2=8.0
height#2=8.0
movable#2=true
deformable#2=false
doorOrWindow#2=false
creator#2=eTeks


If you need, you can translate the name and category properties in files suffixed with country code, like in the following PluginFurnitureCatalog_fr.properties French file (encoded with ISO_8859_1):

# PluginFurnitureCatalog_fr.properties
# Copyright (c) 2007-2011 Emmanuel PUYBARET / eTeks <[email protected]>.

description=Catalogue de symboles

name#1=Téléphone
category#1=Symboles

name#2=Information
category#2=Symboles


I hope you can handle this workaround. Of course it isn't perfect since some attributes in furniture dialog become completely useless in that case. I may add a new property in properties files to handle this case in a future version.
----------------------------------------
Attachment Symbols.sh3f (13016 bytes) (Download count: 183614) (A furniture file that contains images only displayable in the 2D plan)

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator