Re: Room size in java code

by Sajmmon » Wed Jan 16, 2013 2:10 pm

If your models are already imported try:

Code: Select all

// 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);