2023年4月14日

autocad打印窗口坐标定位错误

摘要: 使用SetWindowToPlot方法打印,设置坐标总是出错,但是使用ThisDrawing.ActiveLayout.GetWindowToPlot,返回的却是正确的坐标。查看了PaperUnits和UCS、PlotType都正确。而且autocad官网上提供的范例也是这么写的,同样也出错。htt 阅读全文

posted @ 2023-04-14 15:06 因思道客 阅读(253) 评论(0) 推荐(0) 编辑

2023年4月12日

Cef修改元素

摘要: Cef是不支持DOM的,像webBroswer可以通过DOM直接修改,例如: HTMLDocument document = WebBrowser.document.all; HTMLElement element = thedocument.getElementById("ID"); elemen 阅读全文

posted @ 2023-04-12 20:53 因思道客 阅读(131) 评论(0) 推荐(0) 编辑

2023年4月9日

未能加载工具箱项 将从项目中移除 错误

摘要: Visual Studio 报错:未能加载工具箱项xxxxx,将从项目中移除 实际上可能是代码刚写完,还需要编译一下,不然对应的dll或exe文件是不对的,当然会报错。 阅读全文

posted @ 2023-04-09 18:41 因思道客 阅读(58) 评论(0) 推荐(0) 编辑

2023年4月7日

JS写入Cookie

摘要: 通过javascript写入cookie值,可以加到书签。也可以拿来清除cookie javascript:document.cookie="name=value;path=/";location.reload(); 阅读全文

posted @ 2023-04-07 10:40 因思道客 阅读(135) 评论(0) 推荐(0) 编辑

2023年3月31日

Oracle递归查询SQL语句

摘要: Oralce有找存在父子关系的数据,也就是树形结构的数据 select * from table [start with condition1] connect by [prior] id=parentid 但是其他的数据库好像都没有,要么写很复杂的SQL,要么交给程序去处理,比较遗憾。 阅读全文

posted @ 2023-03-31 10:24 因思道客 阅读(25) 评论(0) 推荐(0) 编辑

2023年3月30日

Excel VBA工程名与宏名称重名造成的影响

摘要: Excel VBA工程名与宏名称重名,结果就是通过菜单调用会失效,提示找不到宏,或者宏被禁用。改为不同名称后就一切正常了。 阅读全文

posted @ 2023-03-30 22:44 因思道客 阅读(46) 评论(0) 推荐(0) 编辑

2023年3月24日

冰蓝帮助文档

摘要: 冰蓝有比较丰富的文档,有示例代码,查阅起来比较方便 https://www.e-iceblue.cn/tutorials.html 阅读全文

posted @ 2023-03-24 15:03 因思道客 阅读(3) 评论(0) 推荐(0) 编辑

2023年3月18日

VB下载API

摘要: Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFile 阅读全文

posted @ 2023-03-18 15:03 因思道客 阅读(14) 评论(0) 推荐(0) 编辑

2023年3月12日

动态块的参数读写

摘要: 动态块的参数读写 ' 查询动态块的自定义特性 Public Sub DynamicBlock() Dim ent As AcadEntity Dim blk As IAcadBlockReference Dim pnt As Variant On Error Resume Next ThisDraw 阅读全文

posted @ 2023-03-12 11:36 因思道客 阅读(14) 评论(0) 推荐(0) 编辑

2023年2月17日

简单批处理实现代码文件备份

摘要: 简单批处理实现代码文件备份 @echo on ::设置7z的命令行程序路径 set zip7="C:\Program Files\7-Zip\7z.exe" ::设置压缩包保存路径 set Save="N:\路径\" ::保存文件的路径 set SavePath="N:\路径备份\" ::当天日期, 阅读全文

posted @ 2023-02-17 09:45 因思道客 阅读(35) 评论(0) 推荐(0) 编辑

导航