I want to export .dwg file to .dwfx using .net api, can any one help me in solving this issue.
Go to Solution.
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);
Try code written by Balaji Ram from there
just in case if you have DwgPreView installed
and also change file extension on what you need
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.