plottofile问题
<p>小弟有疑问啊:。net里调用,作图之后,想打印为DWF格式,可是在使用plot对象的plottofile语句后,返回TRUE,语句执行成功,可是找不到打印出来的文件。</p><p>Dim app As New AcadApplication ' 定义Application对象<br/> Dim adobj As New AcadDocument ' 定义Document对象<br/> adobj = app.ActiveDocument ' 定义Document对象<br/> Dim plineObj As AcadLine ' 定义Line对象<br/> Dim pointa(0 To 2) As Double ' 定义两个一维数组存储点<br/> Dim pointb(0 To 2) As Double<br/> Dim ss As Boolean</p><p><br/> ' 给两个三维点赋值<br/> pointa(0) = 2 : pointa(1) = 4 : pointa(2) = 4<br/> pointb(0) = 2 : pointb(1) = 6 : pointb(2) = 4<br/> ' 在模型空间中创建以pointa,pointb为端点的直线对象<br/> plineObj = adobj.ModelSpace.AddLine(pointa, pointb)</p><p> Dim layoutliscon As Object<br/> Dim ad As String</p><p></p><p> layoutliscon = "f:\pubtoweb.pc3"<br/> ad = "f:\MyPlot.dwf"</p><p></p><p><br/> ss = adobj.Plot.PlotToFile(ad, layoutliscon)<br/> '以DXF格式存储文件“BDK40”<br/> adobj.SaveAs("f:\ BDK40", AcSaveAsType.ac2004_dxf)<br/> adobj.Close()</p><p> app.Quit() '释放Application对象</p>
页:
[1]