EPLAN API 入门系列- 提高篇(How to get Symbol via Function)

 1         private Eplan.EplApi.DataModel.Function getSymbolFunction(Eplan.EplApi.DataModel.Page oSelectedPage, Project oSelectedProject, Eplan.EplApi.DataModel.Function oFunction)

 2         {

 3             try

 4             {

 5                 Eplan.EplApi.DataModel.Function oFunc =

 6                     new Eplan.EplApi.DataModel.Function(oSelectedPage, new Eplan.EplApi.DataModel.MasterData

 7                         .SymbolVariant(new Eplan.EplApi.DataModel.MasterData

 8                          .Symbol(new Eplan.EplApi.DataModel.MasterData

 9                           .SymbolLibrary(oFunction.Project, oFunction.SymbolVariant.SymbolLibraryName), oFunction.SymbolVariant.SymbolName), oFunction.SymbolVariant.VariantNr));

10 

11                 return oFunc;

12             }

13             catch (Exception)

14             {

15                 return null;

16             }

17         }

 

 

你可能感兴趣的:(function)