.NET

Reply
Valued Contributor
chockalingam
Posts: 84
Registered: ‎03-06-2012
Message 1 of 3 (197 Views)
Accepted Solution

Export to .dwfx using .net API

197 Views, 2 Replies
11-16-2012 05:28 AM

Hi,

 I want to export .dwg file to .dwfx using .net api, can any one help me in solving this issue.

Within your plot routine do something like this:

 

PlotSettings ps_base = (PlotSettings)t.GetObject(ObjectId_of_Layout, OpenMode.ForWrite);

PlotSettingsValidator psv = Autodesk.AutoCAD.DatabaseServices.PlotSettingsValidator.Current;

psv.SetPlotConfigurationName(ps_base, "DWFx ePlot (XPS Compatible).pc3", null);

...

r,

dennis

Distinguished Contributor
djonio
Posts: 105
Registered: ‎12-29-2005
Message 2 of 3 (183 Views)

Re: Export to .dwfx using .net API

11-16-2012 07:13 AM in reply to: chockalingam

Within your plot routine do something like this:

 

PlotSettings ps_base = (PlotSettings)t.GetObject(ObjectId_of_Layout, OpenMode.ForWrite);

PlotSettingsValidator psv = Autodesk.AutoCAD.DatabaseServices.PlotSettingsValidator.Current;

psv.SetPlotConfigurationName(ps_base, "DWFx ePlot (XPS Compatible).pc3", null);

...

r,

dennis

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 3 of 3 (174 Views)

Re: Export to .dwfx using .net API

11-16-2012 08:07 AM in reply to: chockalingam

Try code written by Balaji Ram from there

 

http://forums.autodesk.com/t5/NET/How-to-use-Export-API-for-autocad-document-object/m-p/3618168/high...

 

just in case if you have DwgPreView installed

and also change file extension on what you need

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!