摘要:
连接字符串改成这样 "Default": "Server=localhost;Port=3306;Database=***;Uid=root;Pwd=***;SslMode=none;AllowPublicKeyRetrieval=True;" 阅读全文
摘要:
using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.Geomet 阅读全文
摘要:
最近在项目中有一个需求是Combobox可以进行编辑,类似于多行文本框一样进行编辑,在编辑的过程中可能需要上下键切换当前的行,但是combobox的上下键对应了切换选项,所以需要屏蔽combobox的上下键切换功能,并且加上文本框换行的功能 combobox自身的previewkeydown事件是无 阅读全文
摘要:
首先是Combobox的IsEditable="True" private void ComboBox_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { e.Handled = false; (e.Or 阅读全文
摘要:
XAML的代码 <ItemsControl x:Name="If" lternationCount="{Binding Path=LocationNums.Count}" ItemsSource="{Binding LocationNums}"> <ItemsControl.ItemsPanel> 阅读全文
摘要:
在CAD中绘制首尾相连的直线,并据此构件点与点之间的连接关系,考虑到可能会有线连接的地方有一定的距离delta 点的信息,用于最开始情况下的点的信息集合 /// <summary> /// 点对应的信息 /// </summary> public class QjPointInfo { /// <s 阅读全文
摘要:
private void InitCadEditorControl() { cadViewerControl = new CADViewerControl(); cadViewerControl.Size = panel1.Size; cadViewerControl.DimensionVisibl 阅读全文
摘要:
在实际CAD二次开发种遇到了需要自定义纸张的问题,CAD本身没有自定义纸张的api,需要对pmp文件做一些操作,再次,致敬惊惊大佬的博客,才让我这方面的开发工作量减少了很多,靠我自己也一时半会解决不了,因为我是用CAD2020版本来做这个的我对惊佬的两个重要的类做了一部分更改。 public cla 阅读全文
摘要:
1.DataGrid下的DataGridTemplateColumn的ComboBox绑定问题 最开始的形式 <DataGridTemplateColumn Header="截面名称"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Co 阅读全文
摘要:
20240402 今天很神奇的遇到了 Transaction trnas = db.transmanager.startTransaction()时报错 后来发现是反复递归造成的trans启动实例太多造成的 20240410 进行中望cad二次开发的时候,有切换文档Document的需求,会报错ei 阅读全文