Property Script
Script
Script of the object.
Declaration
public string Script { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The script of the object defines its appearance in 2D and 3D views. It can also influence many other basic characteristics of the object, such as its default layer, pricing, name and description, etc.
The script is defined in an extremely simple scripting language, namely Mobiscript. See the "KitchenDraw Catalogue Creation with MOBISCRIPT" manual for details.
When you set this property, the KitchenDraw software replaces and recompiles the script of the object and then updates 2D and 3D view accordingly.
Object's "Custom Info" area is preserved during update of the property.
Caution: the object "Custom Info" areas of the components are preserved only if the components hierarchy remains the same. If the script update involves the addition or the removal of components then all the components' "Custom Info" areas are cleared.