关于.NET调试等的一些问题
1).NET开发ACAD和以前用VBA大不一样.VBA中,那些立即窗口,本地窗口.监视窗口,F8,CTRL+F8用的很方便,.NET就不一样了,调试工作很不方便,该如何是好?2).NET的语法和VBA差别也很大.VBA中:ThisDrawing.SendCommand "UCS W "能使UCS转为世界坐标系,.NET就不行了,该怎么改啊!
3)UCS问题:如何得到当前的UCS,使后面的作图都在此UCS下进行!如何将此UCS返回给一个变量?用SendCommand方法建立的UCS如何返回给一个变量?
先提这些问题,等待您的指导,谢谢了!<BR> 1、是否可以先将工程类型改为应用程序,ACadApp用GetObject函数获得,调试成功后再改为类库 谢谢<A name=15570><FONT color=#0000ff><B>lzh741206</B></FONT></A>!
本论坛斑竹暂缺,最佳人选是…… 2、看看这段话有没有帮助
<P class=body>You define a UCS to change the location of the (0, 0, 0) origin point and the orientation of the XY plane and the Z axis. You can locate and orient a UCS anywhere in 3D space, and you can define as many UCSs as you require.
<P class=body>All coordinates in ActiveX Automation are entered in the world coordinate system (WCS). Use the <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_getucsmatrix.htm" target="_blank" >GetUCSMatrix</A> method to return the transformation matrix of a given UCS. Use this transformation matrix to find the equivalent WCS coordinates.
<P class=body>Use the <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_ucsiconon.htm" target="_blank" >UCSIconOn</A> property to turn the UCS icon on or off for a given viewport.
<P class=body>To make a UCS active, use the <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_activeucs.htm" target="_blank" >ActiveUCS</A> property on the Document object. If changes are made to the active UCS, the new UCS object must be reset as the active UCS for the changes to appear. To reset the active UCS, simply call the ActiveUCS property again with the updated UCS object.
<P class=body>To add a new UCS to the drawing, use the <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_add.htm" target="_blank" >Add</A> method off the UCSs Collection. To edit or query an existing UCS, use the following methods and properties:
http://www.mjtd.com/object/acad2004/idh_ucs_object.htm lzh741206发表于2004-5-3 10:25:00static/image/common/back.gif1、是否可以先将工程类型改为应用程序,ACadApp用GetObject函数获得,调试成功后再改为类库
.net中窗体如何关?
VB6中,unload Form1便可,.NET怎么办? 本帖最后由 作者 于 2004-5-4 14:01:56 编辑
me.Close 这两天机子重装,郁闷 lzh741206发表于2004-5-3 19:26:00static/image/common/back.gifme.Close
谢谢!
第二个问题我也解决了. SendCommand( "UCS " & VBCR & "w" & VBCR)
第三个,等待啊!!<BR> 看看上面那段E文,是从帮助里Copy出来的
用<A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_activeucs.htm" target="_blank" ><FONT color=#000000>ActiveUCS</FONT></A>获取和设置当前UCS lzh741206发表于2004-5-4 18:29:00static/image/common/back.gif看看上面那段E文,是从帮助里Copy出来的
用<A href=\"mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_activeucs.htm\" target=\"_bl...
<BR>不错,是要用<A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_activeucs.htm" target="_blank" ><FONT color=#000000>ActiveUCS</FONT></A>.不过只有将当前UCS返回给一个变量,<A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202005\help\acadauto.chm::/idh_activeucs.htm" target="_blank" ><FONT color=#000000>ActiveUCS</FONT></A>才能有用武之地啊!
页:
[1]
2