<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>晓东CAD家园-论坛 - COM/ActiveX</title>
    <link>http://bbs.xdcad.net/forum-264-1.html</link>
    <description>Latest 20 threads of COM/ActiveX</description>
    <copyright>Copyright(C) 晓东CAD家园-论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 29 Apr 2026 21:51:50 +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>通过 ActiveX client 取消命令</title>
      <link>http://bbs.xdcad.net/thread-727616-1-1.html</link>
      <description><![CDATA[Cancelling a command through an ActiveX client

问题：

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 c]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Tue, 02 Feb 2021 04:00:02 +0000</pubDate>
    </item>
    <item>
      <title>使用VBA存取LDATA值</title>
      <link>http://bbs.xdcad.net/thread-727599-1-1.html</link>
      <description><![CDATA[Accessing LDATA values from VBA 



问题：
A VLISP function can be used to create a dictionary just like:

(vlax-ldata-put \&quot;Test\&quot; \&quot;Helper\&quot; \&quot;Good\&quot;)

And a dictionary named \&quot;Test\&quot; is created, and a (vlax-ldata-get \&quot;Test\&quot; \&quot;Helper\&quot;)
retriev]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Sat, 30 Jan 2021 16:10:54 +0000</pubDate>
    </item>
    <item>
      <title>设置项目文件搜索路径</title>
      <link>http://bbs.xdcad.net/thread-727533-1-1.html</link>
      <description><![CDATA[问题：

Setting The Project File Search Path


解答：

If you use the Drawing projects feature of AutoCAD regularly, you might wonder how to get/set the project file search path programmatically?

To get the project file path name, use the GetProject .]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Tue, 26 Jan 2021 08:23:56 +0000</pubDate>
    </item>
    <item>
      <title>如何像在文本对象ObjectAdded事件，在VBA中修改一个图形对象</title>
      <link>http://bbs.xdcad.net/thread-727532-1-1.html</link>
      <description><![CDATA[问题：

How to modify a drawing object inside a VBA event handler like the document object’s ObjectAdded event

解答：

Consider this: Using WithEvents in VB(A), you are trying to modify an object passed to the document\'s ObjectAdded, ObjectModified ...]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Tue, 26 Jan 2021 08:22:58 +0000</pubDate>
    </item>
    <item>
      <title>通过ActiveX client 取消（cancel)一个命令</title>
      <link>http://bbs.xdcad.net/thread-727441-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>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Sat, 16 Jan 2021 13:09:23 +0000</pubDate>
    </item>
    <item>
      <title>关于LISP TRANS函数不接受坐标大于1.0E+99的问题</title>
      <link>http://bbs.xdcad.net/thread-727424-1-1.html</link>
      <description><![CDATA[问题：

Problem with LISP (trans) function not accepting coordinates larger/greater than 1.0E+99

解答：

In Visual LISP, you will get an error if you use the TRANS function with a large input value - For example, type the following LISP expression a ...]]></description>
      <category>COM/ActiveX</category>
      <author>XDSoft</author>
      <pubDate>Fri, 15 Jan 2021 16:56:49 +0000</pubDate>
    </item>
    <item>
      <title>Cancel modal dialogs in AutoCAD from a VB application</title>
      <link>http://bbs.xdcad.net/thread-727383-1-1.html</link>
      <description><![CDATA[问题：

I am trying to get an interface pointer to the AutoCAD Application, using the
GetObject() from a VB client application.  But if a command or Modal dialog
(e.g. layer dialog) is active, then AutoCAD is not able to process the ActiveX
Automati ...]]></description>
      <category>COM/ActiveX</category>
      <author>XDSoft</author>
      <pubDate>Tue, 12 Jan 2021 19:02:53 +0000</pubDate>
    </item>
    <item>
      <title>Can\'t use transparent command from menu or toolbars while getting input</title>
      <link>http://bbs.xdcad.net/thread-727382-1-1.html</link>
      <description><![CDATA[问题：

I use the following macro to prompt for user input:
Sub test()
 ThisDrawing.Utility.GetPoint , \&quot;Specify a point or use a transparent command:\&quot;
End Sub
Why does the prompt abort after a user selects the Zoom command from the
toolbar?

解答：
]]></description>
      <category>COM/ActiveX</category>
      <author>XDSoft</author>
      <pubDate>Tue, 12 Jan 2021 18:46:59 +0000</pubDate>
    </item>
    <item>
      <title>解决菜单宏中控制符+不能正常使用（Control + letter characters in ActiveX menu ...</title>
      <link>http://bbs.xdcad.net/thread-727372-1-1.html</link>
      <description><![CDATA[问题：

Chr(94) + Chr(80) (^P) is supposed to toggle menuecho, but they are passed to
the command line as literals rather than being interpreted. When I use this, why
does \&quot; ^P_Open unknown command\&quot; occur?
Answer
There is a character code chart in M]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Tue, 12 Jan 2021 05:05:01 +0000</pubDate>
    </item>
    <item>
      <title>通过ActiveX创建LWPOLYLINE对象</title>
      <link>http://bbs.xdcad.net/thread-727371-1-1.html</link>
      <description><![CDATA[问题：

Is the method of passing a list of points from ActiveX to addLWPolyline in
AutoCAD 2000 that same way as in AutoCAD R14 using Visual LISP?

The following error occurs when passing a list:
Error: lisp value has no coercion to VARIANT with thi ..]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Tue, 12 Jan 2021 05:02:31 +0000</pubDate>
    </item>
    <item>
      <title>Can I use an ActiveX Control in Visual Lisp?</title>
      <link>http://bbs.xdcad.net/thread-727369-1-1.html</link>
      <description><![CDATA[问题：

Can I use an ActiveX Control in Visual Lisp?

解答：

You cannot because Visual LISP is an Automation controller that is able to
manipulate Automation objects but it is not an ActiveX Control Container.

For more information about ActiveX Co ..]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Tue, 12 Jan 2021 04:50:56 +0000</pubDate>
    </item>
    <item>
      <title>ActiveX client with MFC ClassWizard or #import</title>
      <link>http://bbs.xdcad.net/thread-727359-1-1.html</link>
      <description><![CDATA[问题：
Are there two ways of creating an AutoCAD ActiveX client using C++?

解答：
There are two ways of creating an AutoCAD Active X client using C++.

Method #1
Use MFC ClassWizard to import the interfaces (from acad.tlb) that you need for
your  ...]]></description>
      <category>COM/ActiveX</category>
      <author>XDSoft</author>
      <pubDate>Mon, 11 Jan 2021 15:32:46 +0000</pubDate>
    </item>
    <item>
      <title>Adding Attribute To A Block Definition</title>
      <link>http://bbs.xdcad.net/thread-727352-1-1.html</link>
      <description><![CDATA[问题：

How can I add attribute to a block definition using ActiveX Automation API?

解答：
The code below shows how to add an Attribute to a block definition.

The following code creates block by name \&quot;test_block\&quot; and adds an attribute to it.



]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:42:51 +0000</pubDate>
    </item>
    <item>
      <title>Adding A Block Using ActiveX Client In C++</title>
      <link>http://bbs.xdcad.net/thread-727351-1-1.html</link>
      <description><![CDATA[问题：
How do I add a block to a drawing through an ActiveX Client in C++?

解答：
There are two interface objects that are mirrored to their ObjectARX
counterparts: IAcadBlocks to AcDbBlockTable and IAcadBlock to
AcDbBlockTableRecord. You then need  ...]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:38:40 +0000</pubDate>
    </item>
    <item>
      <title>ActiveX client with MFC ClassWizard or #import</title>
      <link>http://bbs.xdcad.net/thread-727350-1-1.html</link>
      <description><![CDATA[问题： 
Are there two ways of creating an AutoCAD ActiveX client using C++?


解答：
There are two ways of creating an AutoCAD Active X client using C++.

Method #1
Use MFC ClassWizard to import the interfaces (from acad.tlb) that you need for
your c .]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:36:39 +0000</pubDate>
    </item>
    <item>
      <title>Accessing the DWG thumbnail image (preview image)</title>
      <link>http://bbs.xdcad.net/thread-727349-1-1.html</link>
      <description><![CDATA[问题：
How do I extract the DWG thumbnail image? Is an OCX control available I can
use to display the image in my dialog boxes?

解答：
The following lists the different methods for accessing the DWG thumbnail image:

Method #1
Use the ObjectARX API ...]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:35:15 +0000</pubDate>
    </item>
    <item>
      <title>Accessing text elements in a safearray</title>
      <link>http://bbs.xdcad.net/thread-727348-1-1.html</link>
      <description><![CDATA[问题：
ActiveX interfaces are accessible in C++ through the COM \'wrappers\' as the doc
sample, AsdkMfcComSamps. When I used IAcadLayout::GetPlotDeviceNames(), it
returns a VARIANT type 8200. In this case, a string Array.

How do I access the elements .]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:34:37 +0000</pubDate>
    </item>
    <item>
      <title>Accessing LDATA values from VBA</title>
      <link>http://bbs.xdcad.net/thread-727347-1-1.html</link>
      <description><![CDATA[问题：
A VLISP function can be used to create a dictionary just like:

(vlax-ldata-put \&quot;Test\&quot; \&quot;Helper\&quot; \&quot;Good\&quot;)

And a dictionary named \&quot;Test\&quot; is created, and a (vlax-ldata-get \&quot;Test\&quot; \&quot;Helper\&quot;)
retrieves the return value, \&quot;Good\&quot;. From VBA,]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:33:47 +0000</pubDate>
    </item>
    <item>
      <title>Accessing drawing properties through automation object model</title>
      <link>http://bbs.xdcad.net/thread-727346-1-1.html</link>
      <description><![CDATA[问题：
How can I access the drawing properties via the Automation Object Model?

解答：
This solution provides read-only access to the drawing properties, which is also
known as summary information, and does not require AutoCAD to be installed on
 ...]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:32:38 +0000</pubDate>
    </item>
    <item>
      <title>Accessing And Changing The AutoCAD Preferences</title>
      <link>http://bbs.xdcad.net/thread-727345-1-1.html</link>
      <description><![CDATA[问题：

How to access and change the AutoCAD preferences?

解答：

This could be done by manipulating the AutoCAD registry directly, or by using
the AutoCAD Preferences ActiveX object. Note that if you make a change in the
registry directly, those ch ..]]></description>
      <category>COM/ActiveX</category>
      <author>newer</author>
      <pubDate>Mon, 11 Jan 2021 12:31:51 +0000</pubDate>
    </item>
  </channel>
</rss>