Eplan Platform API
Eplan.EplApi.DataModel.EObjects Namespace / PLC Class / Create Method / Create(Project,SymbolVariant) Method
Eplan.EplApi.DataModel.Project where the PLC will be created
Eplan.EplApi.DataModel.MasterData.SymbolVariant representing the graphical symbol of the PLC

Create(Project,SymbolVariant) Method
Creates a Function. It is not placed on any Eplan.EplApi.DataModel.Page. Its category is taken from Eplan.EplApi.DataModel.MasterData.SymbolVariant.
Syntax
public override void Create( 
   Project prj,
   SymbolVariant variant
)

Parameters

prj
Eplan.EplApi.DataModel.Project where the PLC will be created
variant
Eplan.EplApi.DataModel.MasterData.SymbolVariant representing the graphical symbol of the PLC
Exceptions
ExceptionDescription
Thrown when the function cannot be created.
Thrown when page is null.
Thrown when symbVariant is null.
Thrown when the function cannot be created.
Thrown when the function has already been created.
Remarks
This method no longer can create functions with category Shielding. The correct way to create Shield object is either use one of static Create methods or use a method on Shield class.
See Also