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
posted @ 2013-04-11 15:40 AriLee Views(4036) Comments(0) Diggs(0) Edit
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
posted @ 2013-03-28 17:55 AriLee Views(2374) Comments(3) Diggs(1) Edit
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
posted @ 2013-03-24 15:12 AriLee Views(835) Comments(0) Diggs(0) Edit
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
posted @ 2013-01-21 16:24 AriLee Views(1474) Comments(0) Diggs(0) Edit
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
posted @ 2013-01-07 15:15 AriLee Views(1524) Comments(0) Diggs(0) Edit
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
posted @ 2012-12-30 22:04 AriLee Views(1078) Comments(0) Diggs(0) Edit
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
posted @ 2012-12-30 21:50 AriLee Views(1161) Comments(0) Diggs(0) Edit
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
posted @ 2012-12-30 21:41 AriLee Views(1357) Comments(0) Diggs(0) Edit
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
posted @ 2012-12-30 13:34 AriLee Views(5174) Comments(1) Diggs(0) Edit
最近两个月,断断续续完成了一个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
posted @ 2012-12-09 18:35 AriLee Views(2040) Comments(0) Diggs(0) Edit
http://wcf.codeplex.com/wikipage?title=WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API Read More
posted @ 2012-09-25 10:20 AriLee Views(576) Comments(0) Diggs(0) Edit
EPLAN作为一个电气行业的软件,因为它的专业性,国际化等诸多特点,更因为它引领着整个电气行业设计的标准,已经越来越开始被国内先进的自动化行业所认知并接受。EPLAN API在网上的资料很少,而且API Help也不公开,所以在很大程序上限制了国内EPLAN的推广及应用,当然这跟德国总部对国内的推广策略有关。有人说在国内开源的东西没有出路,其实我以为,不开源的东西同样没有出路,从搏亦的角度而言,这是一个正向搏亦,因为软件产品之所以是一个产品,在于得到用户的认可与参与,才能够逐步的被大众所接受;从OS系统开始:Linux、Android(当然Android是一种以Linux为基础的开放源代码OS Read More
posted @ 2012-09-10 15:13 AriLee Views(10827) Comments(7) Diggs(2) Edit
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
posted @ 2011-03-27 22:54 AriLee Views(2061) Comments(7) Diggs(0) Edit
前两天面视涉及到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
posted @ 2010-09-28 21:01 AriLee Views(3848) Comments(9) Diggs(1) Edit
insert goodlocation: sp_batchinsert_goodlocation: Execute: Result: Read More
posted @ 2019-04-23 11:54 AriLee Views(168) Comments(0) Diggs(0) Edit
sql function and store process: call: result: Read More
posted @ 2019-04-23 11:48 AriLee Views(116) Comments(0) Diggs(0) Edit
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
posted @ 2019-04-22 19:51 AriLee Views(169) Comments(0) Diggs(0) Edit
HtmlUrlFilter: XSSFilter: 以上两个过滤器都可以实现针对标签HTML转义的功能,具体在使用中可以选择使用,测试如下: 测试结果: 新spring-boot 增加Filter方法: 启动类中增加:@ServletComponentScan注解 Read More
posted @ 2019-04-19 19:26 AriLee Views(3350) Comments(0) Diggs(0) Edit
首先引用summernote样式及js: Add.html: Add.js: Edit.js: summernote图片上传回调函数sendFile: 后台upload方法: 文件上传路径虚拟映射: 文件路径过滤: 这样就不需要在前端encode和decode,xssFilter过滤器会自动做这些事 Read More
posted @ 2019-04-18 18:43 AriLee Views(2069) Comments(0) Diggs(0) Edit
在Vue.js中使用select选择下拉框有两种方法: 第一种: Add.html: Add.js: Edit.html: Edit.js: /** * 编辑-通知公告表js */var vm = new Vue({ el:'#dpLTE', data: { itemList: [], sysNot Read More
posted @ 2019-04-12 18:10 AriLee Views(14509) Comments(0) Diggs(0) Edit
Convert List Read More
posted @ 2018-04-25 10:04 AriLee Views(389) Comments(0) Diggs(0) Edit
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
posted @ 2013-04-24 11:32 AriLee Views(1070) Comments(0) Diggs(0) Edit