Whether you're on flat-pattern configuration, does not appear properly until not mark off that option ... How can automate this?
There seems to be not API for this I'm afraid. the closest workaround for this is shown in this sample: #CODE|Set the Drawing View to Flat Pattern
It is not quite what you are looking for but it shows the selected view as a flat pattern.
Artem, those codes are only changing the configuration to flat pattern but does not orient the view in the proper orientation.
Here is the video how it works from my end. It is not quite what the 'Flat pattern' option does but it reorients the model and imports the bend lines.
It only works if inserted view is current view. It you insert any standard view, then it doesn't work.
There is no API currently I believe so instead you can insert the flat pattern view using CreateFlatPatternViewFromModelView3
Retrieving data ...