FunctionDefinition Constructor(Project,FunctionCategory,MultiLangString,MultiLangString)
Constructs and initializes a FunctionDefinition object with the specified function's category, group and ID. Note: The specified function definition must exist in the project's standard function definitions library
Parameters
- prj
- funcCategory
- Category of the function definition.
- funcGroupName
- Group of the function definition (e.g. "Ader/Draht").
- funcDefName
- Identification name of the function definition (e.g. "Brücke"). This name for a specific function definition is returned by the FunctionDefinition::Name property.
Exception | Description |
ObjectCreationException | Thrown when the specified function definition
(category, group and ID) doesn't exists in the project's function definitions library. |
MultiLangString grpName = new MultiLangString();
grpName.AddString(ISOCode.Language.L_de_DE, "Ader/Draht");
MultiLangString idName = new MultiLangString();
idName.AddString(ISOCode.Language.L_de_DE, "Brücke");
FunctionDefinition fctDef = new FunctionDefinition(prj, funcCategory, grpName, idName);