9得票3回答
将现有的AutoCAD图纸插入到当前图纸中

我正在尝试将预先存在的图纸中的块以程序方式插入到插件所运行的当前图纸中。为此,我在我的C#.NET表单上有一个按钮调用以下方法: public void MakeAndInsertObject() //Method to add all windows and doors templates...

8得票2回答
将C#对象存储到AutoCAD实体的XRecord中

我正在尝试找到一种方法,可以将C#类作为XRecord存储到AutoCAD实体中。例如,我有以下类: public class ExampleClass { private int x; private int y; public ExampleClass(int ...

8得票1回答
为字符串提示设置默认值

编辑器类有一个名为GetString的方法,通过AutoCAD的命令提示框提示用户输入字符串值。我在这个包装方法中调用它: public static string PromptUserForString(string message = "Enter a string: ", string...

7得票1回答
使用集成式身份验证的Azure SQL数据库连接无法打开

我正试图通过与此类似的连接字符串使用Entity Framework连接到Azure SQL数据库: Data Source=.database.windows.net;Authentication=Active Directory Integrated;Initial Catalog= ...