<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>晓东CAD家园-论坛 - .Net/C#</title>
    <link>http://bbs.xdcad.net/forum-263-1.html</link>
    <description>Latest 20 threads of .Net/C#</description>
    <copyright>Copyright(C) 晓东CAD家园-论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 05 Apr 2026 23:43:00 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://bbs.xdcad.net/static/image/common/logo_88_31.gif</url>
      <title>晓东CAD家园-论坛</title>
      <link>http://bbs.xdcad.net/</link>
    </image>
    <item>
      <title>在AUTOCAD 2012下编译和调试Mix-Managed ARX应用程序</title>
      <link>http://bbs.xdcad.net/thread-727631-1-1.html</link>
      <description><![CDATA[Compiling and debugging Mix-Managed ARX application for AutoCAD 2012

问题：

AutoCAD 2012 targets .NET Framework 4.0. This means you have to use VS2010 to debug your .NET application. ObjectARX still requires VS2008 SP1 compiler.

So can you clarify .]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Wed, 03 Feb 2021 06:35:00 +0000</pubDate>
    </item>
    <item>
      <title>在contextual tab selection rule中检测是否选择了自定义实体</title>
      <link>http://bbs.xdcad.net/thread-727630-1-1.html</link>
      <description><![CDATA[Checking if custom entity is selected inside a contextual tab selection rule

问题：

I\'m using the solution from DevNote AN20090811-2 [Using custom contextual ribbon tabs], but it does not work for my custom entities. I pass in the name of my entity ..]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Wed, 03 Feb 2021 01:10:00 +0000</pubDate>
    </item>
    <item>
      <title>不能移除.NET事件句柄</title>
      <link>http://bbs.xdcad.net/thread-727617-1-1.html</link>
      <description><![CDATA[Cannot remove .NET event handler

问题：

When my AddIn is loaded it starts listening to the DocumentToBeDestroyed event and it works fine.

However, when later on I try to stop listening to this event I do not succeed and so my handler keeps getting .]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Tue, 02 Feb 2021 07:00:00 +0000</pubDate>
    </item>
    <item>
      <title>C#下是否有等同fromAcDbTextStyle()的实现方法</title>
      <link>http://bbs.xdcad.net/thread-727604-1-1.html</link>
      <description><![CDATA[Equivalent to fromAcDbTextStyle() under C# (.NET)

Issue
Is there any way to use the fromAcDbTextStyle() function in my .NET application?

解答：
One workaround for your issue is to use standard .NET P/Invoke technique. The sample below shows code fo .]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Sat, 30 Jan 2021 19:00:42 +0000</pubDate>
    </item>
    <item>
      <title>通过代码实现启动表格对象的breaks</title>
      <link>http://bbs.xdcad.net/thread-727603-1-1.html</link>
      <description><![CDATA[Enabling Table breaks through code

问题：

I would like to enable table breaks just the way AutoCAD does when clicking on the small triangular grip. Can you provide a sample code for this ?

解答：

There are properties and methods that help in conf ..]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Sat, 30 Jan 2021 17:02:29 +0000</pubDate>
    </item>
    <item>
      <title>是否可以使用AutoCAD .NET API模拟命令LIVESECTION</title>
      <link>http://bbs.xdcad.net/thread-727544-1-1.html</link>
      <description><![CDATA[Is it possible to emulate command LIVESECTION with AutoCAD .NET API

This question is coming from one of our beloved Forum contributor and Mentor Alexander Rivilis




Gif]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Tue, 26 Jan 2021 16:19:05 +0000</pubDate>
    </item>
    <item>
      <title>内存中进行批处理文件</title>
      <link>http://bbs.xdcad.net/thread-727535-1-1.html</link>
      <description><![CDATA[问题：

Batch process in-memory


解答：

When we try batch process files in memory, we must take special attention to which transaction is in use, but the real trick is how to save the file: AutoCAD will lock the file in use and therefore the SaveAs ...]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Tue, 26 Jan 2021 08:29:12 +0000</pubDate>
    </item>
    <item>
      <title>AUTOCAD 2015中新增的Audit API</title>
      <link>http://bbs.xdcad.net/thread-727534-1-1.html</link>
      <description><![CDATA[问题：

Audit API - New in AutoCAD 2015

解答：

From AutoCAD 2015, you can programmatically audit the drawing file using the new Database API “Audit” . You can also try fixing the issues in the drawing file using API’s argument. This API is prese ...]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Tue, 26 Jan 2021 08:26:01 +0000</pubDate>
    </item>
    <item>
      <title>Can I sign my .NET assembly with a strong name?</title>
      <link>http://bbs.xdcad.net/thread-727443-1-1.html</link>
      <description><![CDATA[Can I sign my .NET assembly with a strong name?

问题：
I am trying to create a strong name for my assembly, but it raises the following error message: \&quot;Referenced assembly \'acmgd\' does not have a strong name\&quot;. Is there any way to solve this?

解答： .]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Sat, 16 Jan 2021 19:14:51 +0000</pubDate>
    </item>
    <item>
      <title>使用 acedInvoke 调用 LISP函数</title>
      <link>http://bbs.xdcad.net/thread-727442-1-1.html</link>
      <description><![CDATA[Calling Lisp function using acedInvoke

问题：

I am using acedInvoke to call a Lisp function but I get a return value that equals RTERROR (5001). What am I missing ?

解答：

The Lisp function must be defined as a command as shown here :

 


Here]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Sat, 16 Jan 2021 13:11:37 +0000</pubDate>
    </item>
    <item>
      <title>用AutoCAD.NET实现转换图纸空间点到模型空间</title>
      <link>http://bbs.xdcad.net/thread-727419-1-1.html</link>
      <description><![CDATA[问题：

Converting Paper Space point to Model Space using AutoCAD.NET

解答：

Recently I tried to find some information on how to convert a Paper Space point to a Model Space point, and was shocked to find there was no simple to use sample code!!! P ...]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Fri, 15 Jan 2021 16:47:43 +0000</pubDate>
    </item>
    <item>
      <title>使用.Net控制AutoCAD ScreenSize环境变量</title>
      <link>http://bbs.xdcad.net/thread-727418-1-1.html</link>
      <description><![CDATA[问题：

Control the AutoCAD SCREENSIZE environment variable in AutoCAD using .NET

解答：

The SCREENSIZE system variable is a read-only system variable that stores the current viewport size in pixels.

However, we might feel the need some times to a ..]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Fri, 15 Jan 2021 16:45:33 +0000</pubDate>
    </item>
    <item>
      <title>DragGen with AutoCAD .NET API</title>
      <link>http://bbs.xdcad.net/thread-727376-1-1.html</link>
      <description><![CDATA[问题：
Is there an equivalent API in AutoCAD .NET of ARX global function acedDragGen()?

解答：
No, there is not a straightforward method in AutoCAD .NET API. We can use P/Invoke to invoke the acedDragGen() function. However, we need to work around  ...]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Tue, 12 Jan 2021 10:03:29 +0000</pubDate>
    </item>
    <item>
      <title>Define a localized command name in the .NET API</title>
      <link>http://bbs.xdcad.net/thread-727375-1-1.html</link>
      <description><![CDATA[问题：
In ARX I can define both globalized and localized command name. Is there a similar way to define localized command name in the .Net API? Or should I simply define two command methods which call the same function?

解答：

There are a few sign ...]]></description>
      <category>.Net/C#</category>
      <author>newer</author>
      <pubDate>Tue, 12 Jan 2021 10:01:43 +0000</pubDate>
    </item>
    <item>
      <title>Creating a 3 point Angular Dimension using Point3AngularDimension in .NET</title>
      <link>http://bbs.xdcad.net/thread-727358-1-1.html</link>
      <description><![CDATA[问题：

How to create a \&quot;3 Point Angular Dimension\&quot; from command line and from C# program?

解答：
The Point3AngularDimension class in AutoCAD .NET API helps to create a 3 point Angular dimension. Following Code snippet explains how to create a 3 Po ...]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 15:30:17 +0000</pubDate>
    </item>
    <item>
      <title>Compiling and debugging Mix-Managed ARX application for AutoCAD 2012</title>
      <link>http://bbs.xdcad.net/thread-727357-1-1.html</link>
      <description><![CDATA[问题：

AutoCAD 2012 targets .NET Framework 4.0. This means you have to use VS2010 to debug your .NET application. ObjectARX still requires VS2008 SP1 compiler.

So can you clarify how is it possible to compile and debug a mix-managed application fo ...]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 15:25:55 +0000</pubDate>
    </item>
    <item>
      <title>Checking if custom entity is selected inside a contextual tab selection rule</title>
      <link>http://bbs.xdcad.net/thread-727356-1-1.html</link>
      <description><![CDATA[问题：

I\'m using the solution from DevNote AN20090811-2 [Using custom contextual ribbon tabs], but it does not work for my custom entities. I pass in the name of my entity that is displayed in the Property Palette, but still, Selection.ContainsOnly ...]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 15:24:25 +0000</pubDate>
    </item>
    <item>
      <title>保留格式的情况下修改表格单元格的内容</title>
      <link>http://bbs.xdcad.net/thread-727355-1-1.html</link>
      <description><![CDATA[Changing the value of a Table cell without losing the formatting
问题：

I\'m trying to change the value of a Table cell which has some formatting that keeps the value in fractional format.

When I change the value the following way then the [\&quot;] sign]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 15:06:50 +0000</pubDate>
    </item>
    <item>
      <title>Cannot remove .NET event handler</title>
      <link>http://bbs.xdcad.net/thread-727354-1-1.html</link>
      <description><![CDATA[问题：

When my AddIn is loaded it starts listening to the DocumentToBeDestroyed event and it works fine.

However, when later on I try to stop listening to this event I do not succeed and so my handler keeps getting called.

Is there a solution for ..]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 14:45:36 +0000</pubDate>
    </item>
    <item>
      <title>Cancelling a command through an ActiveX client</title>
      <link>http://bbs.xdcad.net/thread-727353-1-1.html</link>
      <description><![CDATA[问题：

If I send commands to the AutoCAD command line from an external VB application
using Windows\' API functions such as SendKeys or SendMessage, this works except
when another command is busy. How can I cancel this command? If I send an Escape
( ..]]></description>
      <category>.Net/C#</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 14:43:59 +0000</pubDate>
    </item>
  </channel>
</rss>