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... Read More
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... Read More
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... Read More
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 ... Read More
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 ... Read More
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... Read More
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 ... Read More
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 ( Read More
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 (==) ... Read More
最近两个月,断断续续完成了一个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 Read More
http://wcf.codeplex.com/wikipage?title=WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API Read More
EPLAN作为一个电气行业的软件,因为它的专业性,国际化等诸多特点,更因为它引领着整个电气行业设计的标准,已经越来越开始被国内先进的自动化行业所认知并接受。EPLAN API在网上的资料很少,而且API Help也不公开,所以在很大程序上限制了国内EPLAN的推广及应用,当然这跟德国总部对国内的推广策略有关。有人说在国内开源的东西没有出路,其实我以为,不开源的东西同样没有出路,从搏亦的角度而言,这是一个正向搏亦,因为软件产品之所以是一个产品,在于得到用户的认可与参与,才能够逐步的被大众所接受;从OS系统开始:Linux、Android(当然Android是一种以Linux为基础的开放源代码OS Read More
js:$(function () { $.ajax({ type: 'GET', url: 'GetJson.ashx', dataType: 'json', success: function (data) { //$.each(data.menus, function (idx, item) { // alert(idx); // alert(item.street); //}); var menulist = ""; //alert(data); $.each(data.menus, function (i, n) { Read More
前两天面视涉及到Ibatis框架的一些问题,所以这些天来集中精力了解了一下Castle+IBatis,(测试采用的版本:IBatis.DataAccess.1.6.1.0.bin IBatis.DataMapper.1.1.458.0.bin),分别在ASP.Net和WinForm中调试了用Mygeneraction模板生成的程序,以下是在园子里的朋友的一些错误笔记记录汇总以及我的测试用例,仅以此作为我学习IBatis_Castle的一点总结。 问题1: (1)在ASP.Net中:Error4The type or namespace name 'XXX' could not Read More
insert goodlocation: sp_batchinsert_goodlocation: Execute: Result: Read More
sql function and store process: call: result: Read More
Dynamic SQL Store Procedure: Note: use variable,you need convert varchar and as a variable,not directly use variable,like this: '+convert(varchar(10), Read More
HtmlUrlFilter: XSSFilter: 以上两个过滤器都可以实现针对标签HTML转义的功能,具体在使用中可以选择使用,测试如下: 测试结果: 新spring-boot 增加Filter方法: 启动类中增加:@ServletComponentScan注解 Read More
首先引用summernote样式及js: Add.html: Add.js: Edit.js: summernote图片上传回调函数sendFile: 后台upload方法: 文件上传路径虚拟映射: 文件路径过滤: 这样就不需要在前端encode和decode,xssFilter过滤器会自动做这些事 Read More
在Vue.js中使用select选择下拉框有两种方法: 第一种: Add.html: Add.js: Edit.html: Edit.js: /** * 编辑-通知公告表js */var vm = new Vue({ el:'#dpLTE', data: { itemList: [], sysNot Read More
Convert List Read More
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 ... Read More