Good day! I have long list of saved views in my “View” panes. Is there a script or way to delete particular views? Although this is possible in creating new maps, but what if I would retain selected views?
I have some scripts for managing views in Manifold 8 which I can post.
There's no way to know which view is selected in the list (in any case I'm pretty sure you can only select one).
My first script saves all views for the current component into a new drawing of points. The points can then be edited of course.
The second script allows all views for the current component to be deleted, ready for replacement.
The third script loads a drawing of points into a new set of views.
I use these scripts together for backup and archiving, and especially for copying views between components and projects.
Thanks TJHB will be happy to use those scripts if you will permit.
Actually third script is also my concern, but still waiting for the second script to resolve.
In the second script I have a different approach it could be based on the table list (assigned by no. or whatever indicated in the particular “column”). The name of the view can be same as what is indicated in the “column”.
I'll post tomorrow then.
I don't understand your approach for the second script, but we can talk about that when you have tried my scripts. Maybe we can go further.
Noted and thanks sir!
Here are the 3 scripts, with XML needed to include them as add-ins.
They require IronPython.
A workflow might go like this:
You might use a different workflow.
[Added: also needs helper add-in "Project.py" for function "current_geographic_component".]
Attachments: Delete all views.py Project.py Restore views from points.py Save views to points.py Views.xml
For Windows 64-bit, "Project.py" should go in subfolder "C:\Program Files\Manifold System\Config\Shared".
Other scripts and Views.xml should go in parent folder "C:\Program Files\Manifold System\Config".
thanks and noted sir will try this later.
If you don't already have IronPython installed, and need help setting it up for Manifold 8 (or 9), then just say.