Not as sophisticated as Klaus's tool, but convenient for me. This is designed for the situation where you format drawing or theme components in one project, and want a quick way to replicate the same formatting (for each component) in a different project, or later. Restoring formatting relies on a matching name + " formatting". If you want to load formatting to a component with a different name, adjust the name of the comments component. For saving and loading: If a drawing or theme is open in the current window, then only that component is processed. If a map is open in the current window, then all drawings and themes in the map are processed. Otherwise, if a folder, drawing or theme is selected in the Project pane, then that component, and any child components and dependent components, are processed. Otherwise, the script asks if you want to process all drawing and theme components in the project. (See the function current_drawings_themes() for a possibly better explanation.) These files should go into Config\Format. Unblock them before you copy them there. [This won't solve your current issue.] Attachments: Format.xml Restore format attributes.py Save format attributes.py
|