Hi,
I Am trying to convert DWG(sheet size:A2*3) to PDF(sheet size:A2*3) file by using the below code
moActiveDoc = moAcadApp.GetType().InvokeMember("ActiveDocument",
BindingFlags.GetProperty, null, moAcadApp, null);
oActiveLayout = moActiveDoc.GetType().InvokeMember("ActiveLayout", System.Reflection.BindingFlags.GetProperty, null, moActiveDoc, null);
object[] oParams[0]="ISO_A0_(1189.00_x_841.00_MM";
oActiveLayout.GetType().InvokeMember("CanonicalMediaName",System.Reflection.BindingFlags.SetProperty, null, oActiveLayout, oParams);
but
oActiveLayout.GetType().InvokeMember("CanonicalMediaName",System.Reflection.BindingFlags.SetProperty, null, oActiveLayout, oParams);
its gives the error "invalid Input" becouse the oParams[0] value="ISO_A0_(1189.00_x_841.00_MM)",It works perfectly if i give the
oParams[0] ="ISO_A1_(594.00_x_841.00_MM)" (for A1 sheet size).
My Query is how can i give the custom sheet size value(A2*3)?
You may get better help posting this sort of question here:
http://forums.autodesk.com/t5/Visual-Basic-Customization/bd-p/33
I'm not certain, but I think you have to use the "generic" name of the "custom sheet size" that your PDF driver uses. If you run a "manual" Plot on the command-line (-PLOT), you will be able to see what responses are expected for your specific driver. For instance, if you were using the CutePDF driver, the "custom sheet size" is called "PostScript Custom Page Size" (which happens to appear at the top of the list when you enter "?" at the prompt for paper size). Regardless of how you have defined the custom size for your purposes, I believe you have to use that generic name.