cart: empty [ Login ]

How to get layouts saved in the right order?

1 
Joel Lucsy
3/6/2014 7:34 PM
Say I have the simple program:
C# Code:
var model = new DxfModel(); var names = new string[] { "E", "D", "C", "B", "A" }; foreach (var name in names) { var layout = new DxfLayout( name ); model.Layouts.Add( layout ); } DwgWriter.Write( @"c:\temp\1.dwg", model );
How can I get the resulting DWG to actually have the layouts listed in the EDCBA order instead of the ABCDE order?
Wout
3/10/2014 11:12 PM
Hi, You can set the DxfLayout.TabOrder property (it's a short). Paper space layouts start at tab order 1. - Wout
Joel Lucsy
3/11/2014 6:21 PM
Thanks, works perfectly. Didn't realize that's what that property is for.
1