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);
its gives the error "invalid Input" becouse the oParams value="ISO_A0_(1189.00_x_841.00_MM)",It works perfectly if i give the
oParams ="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)?
PLat form:C# .Net
OS=Windows 7 ,32 bit
Thanks in Advance
Without looking too far into what you have I had a long topic about custom sheet sizes. There might be something helpful in there. Basically our office uses all custom sheet sizes for plotting PDFs and I needed to come up with a way to do that. With a lot of help from multiple people here I was able to convert the LocalMediaName to CanonicalMediaName.
Am not expertise in canonical methodes.I Will shorten the question
for A2*3 sheets i am uisng the string=ISO_A1_(594.00_x_841.00_MM) .That returns the error.so Instead of that which string i can use?
Note:for A1 sheet string is="ISO_A1_(594.00_x_841.00_MM)".it works perfectly.
I think You are in right track.But the issue is am not getting you properly.
The methode which i using to convert is
and the oParams= ISO_A0_(1189.00_x_841.00_MM).
I have gone through your thred and i am not getting any proper guidence from that.Can u please give some more details regarding LocalMediaName and how can i implement in my code Snippet.
Access a broad range of knowledge to help get the most out of your products and services.