PlotSettingsValidator throwing exception eInvalidInput

PlotSettingsValidator throwing exception eInvalidInput

Anonymous
Not applicable
1,119 Views
1 Reply
Message 1 of 2

PlotSettingsValidator throwing exception eInvalidInput

Anonymous
Not applicable

I'm trying to create the layout and set the printing options for it.

Problem is, that whenever i try to use the PlotSettingsValidator.SetPlotConfigurationName, it throws the exception eInvalidInput

I'm sure, that the name of pc3 is right and the paper size name too.

This exception is also thrown when using PlotSettingsValidator.SetPlotCentered

 

I use the sample code from http://docs.autodesk.com/ACD/2011/ENU/filesMDG/WS73099cc142f48755-385a98b012180d20f19425f.htm

Accepted solutions (1)
1,120 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

i found out, that the custom formats have different names

i used PlotSettingsValidator.GetCanonicalMediaNameList and got strange names, but i managed to translate them using PlotSettingsValidator.GetLocaleMediaName

 

and the problem with SetPlotCentered was because the PlotSettings.PlotType was set to Layout