(求助)我刚刚学习vba,请大家帮帮我一个问题
<P>我刚刚编写了一个小程序,我想在<FONT face="Times New Roman">cad</FONT>用一个命令<FONT face="Times New Roman">mycy</FONT>调用它,请大家帮帮我<FONT face="Times New Roman"> </FONT>。</P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">它的路径是<FONT face="Times New Roman">: D:\Program Files\AutoCAD 2002\Support</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman">vba</FONT>工程是<FONT face="Times New Roman">mycy.dvb</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">模块是<FONT face="Times New Roman">mouldcy </FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">过程是<FONT face="Times New Roman">drawcy</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"> <o:p></o:p></FONT></P>
<P>先谢谢大家了</P> <P>acad.lsp</P>
<P>(vl-vbaload (findfile "<FONT face="Times New Roman">mycy.</FONT>dvb"))<BR>(defun C:<FONT face="Times New Roman">mycy</FONT>() <BR>(setvar "cmdecho" 0)<BR> (vl-vbarun "<FONT face="Times New Roman">drawcy</FONT>") <BR>(setvar "cmdecho" 1)<BR> (princ) <BR>) </P> <P>好</P>
<P> </P>
非常感谢你啊
<P>谢谢你 啊 </P><P>我的可以用了</P>
页:
[1]