KitchenDraw SDK 2
Show / Hide Table of Contents

Method InsertGeneric

InsertGeneric(string, Generic)

Inserts a generic before the given existing generic.

Declaration
public Scene.Generic InsertGeneric(string catalogFilename, Scene.Generic beforeGeneric)
Parameters
Type Name Description
string catalogFilename

The catalogue that is used in the new generic.

Scene.Generic beforeGeneric

The new generic will be inserted before this generic.

Returns
Type Description
Scene.Generic

The created generic

Remarks

Caution! The internal implementation of Generic class is based in generic ranks in the scene generics list. Because of that, using InsertGeneric(string, Generic) and RemoveGeneric(Generic) methods invalidates the internal structure of the existing generic instances, and you may get data from foreign generic while reading Generic class instance properties. Please be aware of that and recreate Generic class instances if necessary after you insert/delete generics in the scene.

In this article
Back to top Generated by DocFX