Print at Dec 20, 2025, 6:11:43 AM

Posted by Sajmmon at Jan 16, 2013, 2:10:45 PM
Re: Room size in java code
If your models are already imported try:


// first you need to retrieve a model e.g.
PieceOfFurniture pof =getUserPreferences()
.getFurnitureCatalog()
.getCategory(3) // category e.g. 3
.getPieceOfFurniture(2); // model 2 within the category

// Now you can display the model within current home
HomePieceOfFurniture hpof = new HomePieceOfFurniture(pof);

// and set locations etc.
hpof.setX(300);
hpof.setY(700);
hpof.setElevation(0);
hpof.setAngle(30);