-
1. Re: How to move Sheets with Automation in DrawingEditor in the Drawing-Workspace Tab?
.-.--.-- Feb 2, 2018 4:35 AM (in response to juergen.hinterleitner)1 of 1 people found this helpfulInteresting that we just had the same basic question applied to DxDesigner (VX Navigator ), for which there was a partial answer. Unfortunately, there is no automation support in Drawing Editor to 'SetSheetOrder'. If the Document.Sheets property/collection was not read-only, that would enable an easy solution. You would still need to develop a sort routine for the Sheet.SheetNumber properties (which, are string values, not numbers, and which are allowed to have duplicates, JSYK).
For now, your best method for reordering the sheets is the manual up and down arrows in the Drawing Sheets dialog. (In testing automation, I was able to use Document.CopySheet and Sheet.Delete to actually reorder the sheets, but CopySheet does not produce exact copies if you have any cells that have been modified using the Editor Control switches to Allow Cell Text/Graphics Edits. Also, the results were automatically saved to the design, so undo was not possible. User beware!)
I wish I had better news. This looks like a candidate for Mentor Ideas.
-
2. Re: How to move Sheets with Automation in DrawingEditor in the Drawing-Workspace Tab?
juergen.hinterleitner Sep 18, 2018 10:57 PM (in response to juergen.hinterleitner)Has anyone succeeded? (in the meanwhile). I find no meaningful way for doing that. Collections reordering like "oSheetsCollection.Item(1) = oSheetsCollection.Item(2)" (- just symbolic) always says: "Sheet with that name already exists". But even if I rename it before I reassign it again, it won't work.