我从VBA的帮助文件中拷入如下一段代码:
Private Sub CommandButton1_Click() ' This example adds entities to a selection set by prompting the user ' to select entities to add.
' Create the selection set Dim ssetObj As AcadSelectionSet Set ssetObj = ThisDrawing.SelectionSets.Add("TEST_SSET")
' Add entities to a selection set by prompting user to select on the screen ssetObj.SelectOnScreen End Sub
运行后出错,提示
方法'Add'作用于对象'IAcadSelectionSets'时失败
我是一个初学者,没有使用过activeX,请问使用activeX前是否要加载相关控件?