KitchenDraw SDK 2
Show / Hide Table of Contents

Method PlaceObject

PlaceObject(int, int, int, int, string, string, HandingType, double, double, double, double, AltitudeType, double, bool, bool, bool)

Places in the current scene an article coming from a catalog.

Declaration
public Scene.Object PlaceObject(int windowWidth, int windowHeight, int pixelX, int pixelY, string catalogFilename, string articleReference, Scene.Object.HandingType handingType, double dimensionX, double dimensionY, double dimensionZ, double altitude, Scene.Object.AltitudeType altitudeType = AltitudeType.Default, double oxyAngle = 0, bool open = false, bool percuss = false, bool placeToPool = false)
Parameters
Type Name Description
int windowWidth

Width of the window (or image) for which pixel coordinate is given.

int windowHeight

Height of the window (or image) for which pixel coordinate is given.

int pixelX

X coordinate of the point where the object should be placed.

int pixelY

Y coordinate of the point where the object should be placed.

string catalogFilename

Catalog filename from which the object to be placed comes.

string articleReference

Article reference of the object to be placed.

Scene.Object.HandingType handingType

Handing of the object to be placed.

double dimensionX

Width of the object to be placed, in the scene measurement units.

double dimensionY

Depth of the object to be placedm in the scene measurement units.

double dimensionZ

Height of the object to be placed, in the scene measurement units.

double altitude

Altitude of the object to be placed.

Scene.Object.AltitudeType altitudeType

Specifies how the given altitude should be treated.

double oxyAngle

Specifies the rotation angle of the object in the horizontal plane, in degrees.

bool open

Indicates whether the object should be represented in its open visual state.

bool percuss

Indicates whether the object position should be adjusted depending on the object's percussions with other objects in the current scene.

bool placeToPool

Indicates whether the object should be placed in the pool, that is to say in the list of the objects being placed while in pricing view mode (with no information about its position) and with the possibility to be located manually in the scene in a second stage thanks to the "Place|Pool" KitchenDraw command.

Returns
Type Description
Scene.Object

The placed object, null if fails to place the object.

In this article
Back to top Generated by DocFX