随笔分类 - Eplan 入门系列
Focus on Eplan secondary development and Integration with ERP/PDM
摘要:1 private Plant Create_Unteranlage(PpeData oPPET, Plant oPlantN, string sBez, string sPID) 2 { 3 try 4 { 5 Plant oPlantT = new Plant(); 6 MultiLangString mls = new MultiLangString(); 7 if (oPPET==null) 8 ...
阅读全文
摘要:How to Change Properties in EPlan?In general,I think there are tow ways: 1、Offline programe in Console Application 1 public void Execute() 2 { 3 Console.WriteLine("Update Article Properties Demo"); 4 5 //Start P8 6 EplApplication eplApp = new EplA...
阅读全文
摘要:internal const string NAME = "Example insert WindowMacro"; 1 ProjectManager prjMngr = new ProjectManager(); 2 SelectionSet oSelSet = new SelectionSet(); 3 Page oPage = (Page)oSelSet.GetSelectedPages().GetValue(0); 4 5 if...
阅读全文
摘要:Add GraphicalLayer: 1 GraphicalLayer oGpl = null; 2 GraphicalLayerTable layerTable = oPage.Project.LayerTable; 3 4 if (oGpl == null) 5 { 6 oGpl = new GraphicalLayer(); 7 MultiLangString description = new MultiLangString(); 8 description.AddString(ISOCode.Language.L___, "Graphic.Gen...
阅读全文
摘要:How to get PropertyValue? 1 MultiLangString strValue = (MultiLangString)object.GetPropertyValue(object.Properties[j].Id); 2 string strDesignation = object.Properties[j].Designation; 3 string sPropertyFullName = strDesignation + ":" + _pCERICommon.GetMulValue(strValue); 4 5 ...
阅读全文
摘要:New Page:View Code 1 public Page newPage(Project oProject, string strPageName)2 {3 return new Page(oProject, DocumentTypeManager.DocumentType.TitlePage,4 new PagePropertyList { 5 DESIGNATION_LOCATION = this.Location, 6 DESIGNATION_PLANT = this.Plant, 7 ...
阅读全文
摘要:How to get PartProperty via partNo? public ArrayList BDGetProPartProperty(Project oProject, string PartNO) { ArrayList arrList = new ArrayList(); DMObjectsFinder oFinder = new DMObjectsFinder(oProject); FunctionsFilter oFunctionsFilter = new FunctionsFi...
阅读全文
摘要: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 ...
阅读全文
摘要:How to get all connections which are not in location box?for example:ArrayList ConnArrList = new ArrayList;SelectionSet set = new SelectionSet();Eplan.EplApi.DataModel.Project currentProject = set.GetCurrentProject(false);Eplan.EplApi.DataModel.Page[] selectedPages = set.GetSelectedPages();foreach (
阅读全文
摘要:1、Project::HierarchyEplan::EplApi::DataModel::Project::Hierarchy EnumerationHierarchy level of the device structureC#public enum Hierarchy { Functional, Plant, Place, Location, Installation, Document, UserDef}End EnumMembers Description Functional Functional assignment (==) ...
阅读全文
摘要:最近两个月,断断续续完成了一个PPE报表的开发,和各位分享一下:PPE API的开发主要涉及到Hookup、PctLoop、PctFunction、Specification、PctElement、Plant等对象。PPE Data:PpeData data = new PpeData(oProject);PctLoop:PctLoopFilter oPF = new PctLoopFilter(data);PctLoop[] oLoop = data.GetPctLoops(oPF);Hookup:Hookup[] oHookups = data.Hookups;pctElements:Pc
阅读全文
摘要:EPLAN作为一个电气行业的软件,因为它的专业性,国际化等诸多特点,更因为它引领着整个电气行业设计的标准,已经越来越开始被国内先进的自动化行业所认知并接受。EPLAN API在网上的资料很少,而且API Help也不公开,所以在很大程序上限制了国内EPLAN的推广及应用,当然这跟德国总部对国内的推广策略有关。有人说在国内开源的东西没有出路,其实我以为,不开源的东西同样没有出路,从搏亦的角度而言,这是一个正向搏亦,因为软件产品之所以是一个产品,在于得到用户的认可与参与,才能够逐步的被大众所接受;从OS系统开始:Linux、Android(当然Android是一种以Linux为基础的开放源代码OS
阅读全文