vb中怎样得到当前活动的文档
<FONT color=#000000>是用AcadDocument,能否举个例子</FONT><FONT color=#000000></FONT> <P>Sub t()<BR> Dim a As AcadApplication<BR> Dim b As AcadDocument<BR> <BR> set b=a.ActiveDocument</P><P> MsgBox "The active document is: " & b.name, vbInformation, _</P>
<P> "ActiveDocument Example" </P>
<P> set b=Nothing</P>
<P> set a=Nothing<BR> <BR>End Sub<BR></P> <P>谢谢</P>
页:
[1]