wzh 发表于 2006-8-31 02:44:00

利用ObjectDBX在不打开图形文件的情况下生成该图形的DWF文件

本帖最后由 作者 于 2006-8-31 9:28:51 编辑

怎样在LISP中利用ObjectDBX在不打开图形文件的情况下,生成该图形的DWF文件?
让我郁闷的是即使下面打开图形的一段程序也行不通,那位高手帮帮我呀,先谢谢了!!!(defun c:try()
(setq filename "C:\\Documents and Settings\\www\\桌面\\try.dwg")
(setq dbxdoc (vla-get-Documents (vlax-get-Acad-Object)))
(setq objplot (vla-open dbxdoc filename))
(setq obj (vla-get-Plot objplot))
(vla-plottofile obj filename "DWF6 ePlot.pc3")
(vlax-release-object dbxdoc)
(vlax-release-object obj)
(vlax-release-object objplot)
)

龙龙仔 发表于 2006-9-1 07:53:00

;;Obectdbx只支持下列性质及方法----但你可先把dbx图档copy到目前图档再dwf出去 <BR>; IAxDbDocument: IAxDbDocument 介面<BR>;性质值:<BR>;&nbsp;&nbsp; Application (RO) = 发生例外状况。<BR>;&nbsp;&nbsp; Blocks (RO) = #&lt;VLA-OBJECT IAcadBlocks 05d25144&gt;<BR>;&nbsp;&nbsp; Database (RO) = #&lt;VLA-OBJECT IAcadDatabase 012e88b4&gt;<BR>;&nbsp;&nbsp; Dictionaries (RO) = #&lt;VLA-OBJECT IAcadDictionaries 05d250f4&gt;<BR>;&nbsp;&nbsp; DimStyles (RO) = #&lt;VLA-OBJECT IAcadDimStyles 05d20f84&gt;<BR>;&nbsp;&nbsp; ElevationModelSpace = 0.0<BR>;&nbsp;&nbsp; ElevationPaperSpace = 0.0<BR>;&nbsp;&nbsp; FileDependencies (RO) = #&lt;VLA-OBJECT IAcadFileDependencies 012e8854&gt;<BR>;&nbsp;&nbsp; Groups (RO) = #&lt;VLA-OBJECT IAcadGroups 05d20f34&gt;<BR>;&nbsp;&nbsp; Layers (RO) = #&lt;VLA-OBJECT IAcadLayers2 05d20ee4&gt;<BR>;&nbsp;&nbsp; Layouts (RO) = #&lt;VLA-OBJECT IAcadLayouts 05d2f564&gt;<BR>;&nbsp;&nbsp; Limits = (0.0 0.0 420.0 297.0)<BR>;&nbsp;&nbsp; Linetypes (RO) = #&lt;VLA-OBJECT IAcadLineTypes 05d20e84&gt;<BR>;&nbsp;&nbsp; ModelSpace (RO) = #&lt;VLA-OBJECT IAcadModelSpace2 05d2f4f4&gt;<BR>;&nbsp;&nbsp; Name = "C:\\Documents and Settings\\LUCAS\\My Documents\\123.dwg"<BR>;&nbsp;&nbsp; PaperSpace (RO) = #&lt;VLA-OBJECT IAcadPaperSpace2 05d20e14&gt;<BR>;&nbsp;&nbsp; PlotConfigurations (RO) = #&lt;VLA-OBJECT IAcadPlotConfigurations 05d1d074&gt;<BR>;&nbsp;&nbsp; Preferences (RO) = #&lt;VLA-OBJECT IAcadDatabasePreferences 012e8884&gt;<BR>;&nbsp;&nbsp; RegisteredApplications (RO) = #&lt;VLA-OBJECT IAcadRegisteredApplications 05d20db4&gt;<BR>;&nbsp;&nbsp; SummaryInfo (RO) = #&lt;VLA-OBJECT IAcadSummaryInfo 012e8824&gt;<BR>;&nbsp;&nbsp; TextStyles (RO) = #&lt;VLA-OBJECT IAcadTextStyles 05d20d54&gt;<BR>;&nbsp;&nbsp; UserCoordinateSystems (RO) = #&lt;VLA-OBJECT IAcadUCSs 05d20cf4&gt;<BR>;&nbsp;&nbsp; Viewports (RO) = #&lt;VLA-OBJECT IAcadViewports 05d20c94&gt;<BR>;&nbsp;&nbsp; Views (RO) = #&lt;VLA-OBJECT IAcadViews 05d20c34&gt;<BR>;支援的方法:<BR>;&nbsp;&nbsp; CopyObjects (3)<BR>;&nbsp;&nbsp; DxfIn (2)<BR>;&nbsp;&nbsp; DxfOut (3)<BR>;&nbsp;&nbsp; HandleToObject (1)<BR>;&nbsp;&nbsp; ObjectIdToObject (1)<BR>;&nbsp;&nbsp; Open (2)<BR>;&nbsp;&nbsp; Save ()<BR>;&nbsp;&nbsp; SaveAs (2)

wzh 发表于 2006-9-2 08:49:00

由于我们这儿的建设单位让我们提供电子版的施工图,所以我想批量生成DWF文件,每张都打开太慢了。
页: [1]
查看完整版本: 利用ObjectDBX在不打开图形文件的情况下生成该图形的DWF文件