Product: SetShape
The Product can use an imported Product Shape defined in the system Poperties for the project. The shape can also be changed with scripting either by using the Shape property or using the SetShape method.
Can be called to change this product from the current shape to a new shape from the Product Shape list. If the specified shape does not exist there is no error and the original shape is retained. Reading the Shape property returns the new shape name even if it did not exist. A shape set in the system properties becomes the default shape so a read of Shape returns an empty string.
Function
void SetShape(shapeName: string)
Parameters
Name | Type | Description |
---|---|---|
shapeName | String | The shape name to set as the current product shape for this product |
Return Value
None
Example
product.SetShape("Car");
LogDebug("Shape=" + product.Shape);