textstyle问题
<p>我在程序中定义了以下函数,要生成一个图,与其它函数一起加载运行时就会出错,如果把以下函数再重新加载一次就可以了,请问是什么方面的原因,我查了很久,就是根这个函数有关。</p><p>(defun SetTextStyle (stylename fontfile bigfontfile<br/> height wfactor /<br/> textstyles textstyleObj<br/> )<br/> (setq textstyles (vla-get-TextStyles *AcadADocument*)<br/> textstyleObj (vla-add textstyles stylename)<br/> )<br/> (vla-put-ActiveTextStyle *AcadADocument* textstyleObj)<br/> (vla-put-FontFile textstyleObj fontfile)<br/> (if (/= bigfontfile "")<br/> (vla-put-BigFontFile textstyleObj bigfontfile)<br/> )<br/> (vla-put-height textstyleObj height)<br/> (vla-put-Width textstyleObj wfactor)<br/>)</p> <p>也许你的变量定义重了</p><p></p>
页:
[1]