Group,
Is there a way to put Layout Templates on a network? I have been making templates but it wants to save them in my My Documents folder under Programs. I want them to be available to other people, not just myself.
Thanks,
Keith
Keith Fowlow
Senior Geologist-GIS Specialist
Kinross Gold USA, Inc.
5370 Kietzke Lane, Suite 102
Reno, Nevada 89511
Keith,
Just copy the Layout template workspace to your location on the network. Also make sure that any tables the template uses (such as location maps, company logos, etc) are also stored on the network.
Finally make sure the workspace accesses those tables from the network drive and not your local C:\ drive (easily done via looking at workspace in Wordpad, for example).
Regards,
Bill
--
You received this message because you are subscribed to the Google Groups
"MapInfo-L" group.
To post to this group, send email to mapi...@googlegroups.com.
To unsubscribe from this group, send email to
mapinfo-l+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mapinfo-l?hl=en.
I assume you are using the mapinfo layout template tool that comes
with mapinfo, I have not been able to find a way to move the locations
of the templates from the c drive to a network drive, it appears
mapinfo have hard coded into the mapbasic that it uses this path "C:
\Documents and Settings\<username>\Application Data\MapInfo\MapInfo
\Professional\1000\LayoutTemplate\Template". But worst of all it'll
after you use a template and a workspace, it'll try to open a table
called "template.tab" from this path meaning that if another user
tries to open the workspace it'll throw an error and stop opening the
workspace due to the <username> in the path. Very poor I think.
So instead I just wrote a simple mapbasic that gives a list of
workspaces to open from a drop down menu. If you have never used
mapbasic this problem is a very good one to start with. Its probably
only 20 lines of code and you can hardcode it to the network path and
modify to your own needs. Mapbasic is now free for recent versions.
Regards,
Graeme
On Apr 13, 9:58 am, "Data Directions" <b...@datadirections.com.au>
wrote:
-----Original Message-----
From: mapi...@googlegroups.com [mailto:mapi...@googlegroups.com] On Behalf Of Graeme
Sent: Tuesday, 13 April 2010 10:33 AM
To: MapInfo-L
Subject: [MI-L] Re: Layout Templates
Keith,
I assume you are using the mapinfo layout template tool that comes
with mapinfo, I have not been able to find a way to move the locations
of the templates from the c drive to a network drive, it appears
mapinfo have hard coded into the mapbasic that it uses this path "C:
\Documents and Settings\<username>\Application Data\MapInfo\MapInfo
\Professional\1000\LayoutTemplate\Template". But worst of all it'll
after you use a template and a workspace, it'll try to open a table
called "template.tab" from this path meaning that if another user
tries to open the workspace it'll throw an error and stop opening the
workspace due to the <username> in the path. Very poor I think.
So instead I just wrote a simple mapbasic that gives a list of
workspaces to open from a drop down menu. If you have never used
mapbasic this problem is a very good one to start with. Its probably
only 20 lines of code and you can hardcode it to the network path and
modify to your own needs. Mapbasic is now free for recent versions.
Regards,
Graeme
DPIPWE CONFIDENTIALITY NOTICE AND DISCLAIMER
The information in this transmission may be confidential and/or protected by legal professional privilege, and is intended only for the person or persons to whom it is addressed. If you are not such a person, you are warned that any disclosure, copying or dissemination of the information is unauthorised. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission, or its return at our cost. No liability is accepted for any unauthorised use of the information contained in this transmission.
Here is a bit of code, its all hardcoded into the mbx so you have to
edit the mapbasic file to modifty the menu, but this gives you full
control if ran over network/multiple users.
It's basic but you can add tab files, sub menus etc.. but you have to
code it yourself.
declare sub main
declare sub opentab
declare sub exitprog
sub main
Create menu "Layouts" as
"Subject Land Layout" ID 10000 Calling opentab,
"Amendment Layout" id 10001 calling opentab
Create Menu "Open Favourites" As
"Layouts" as "Layouts",
"Exit Favourites Menu" calling exitprog
Alter Menu Bar Add "Open Favourites"
end sub
Sub opentab
Do case CommandInfo(CMD_INFO_MENUITEM)
case 10000
run application "<path to workspace here>.WOR"
case 10001
run application "<path to workspace here>.WOR"
end case
end sub
sub exitprog
End program
End Sub
Code not checked or compiled, but you get the rough idea.
"edit from last post"
But worst of all it'll after you use a template and a workspace, it'll
try to open a table called "template.tab"...
should have read:
But worst of all after you use a template and save a workspace, it'll
try to open a table called "template.tab"...
Why does google only give about 15 lines and very wide text boxes to
write these online, makes it very hard to read?
Regards,
Graeme
> The information in this transmission may be confidential and/or protected by legal professional privilege, and is intended only for the person or persons to whom it is addressed. If you are not such a person, you are warned that any disclosure, copying or dissemination of the information is unauthorised. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission, or its return at our cost. No liability is accepted for any unauthorised use of the information contained in this transmission.- Hide quoted text -
>
> - Show quoted text -
Here's the idea:
A. CREATING TEMPLATES (One-time job)
I created 6 layout templates once and for all (A4_landscape,
A4_portrait, A0_landscape, etc)
Create all the "constants", logo.tab, department_name.tab,
disclaimer.tab as mapinfo tables and place in one folder
-->Server\\MapInfo\Layouts\Elements
Open each of these elements in a separate map window and resize to
fit (you may want to create
these tab files using the official fonts)
Minimize all map windows
-Open just one geographic table, ie, streets.tab
-Launch one thematic just to have a legend window
-You may want to rename your streets map window "MAP" instead of the
default "streets.tab....map" for easier handling afterwards
Create your layout
-Add frames for the logo, departement_name, disclaimer, map window,
legend (tip: use whole numbers for the frame sizes and xy positioning)
-Add rectangles for dropshadows, masks, etc
-Add text and write in anything you need like "Title", "06-06-2008",
"Scale:"
-Reorder the layout layers as you wish
-Close streets.tab !
-Save workspace as Layout_size_of_paper_orientation.wor
--->Server\\MapInfo\Layouts
-Close all
B. USING TEMPLATES
Anytime you're working in MapInfo and wish to print
Save your workspace first (the location of the file is not important
here)
Open the Layout.wor "within" your current session/workspace (*this is
the trick)
Resize the map window with Jaques Paris' resizmap.mbx to make it match
the size of your "MAP" frame and choose a given scale
Activate your layout window
Double-clic on the MAP frame and choose your map window
Update all the other frames, titles, dates, etc
Print
Close all without saving (unless you're working on a particularly
difficult project, do not save the layout in your .workspace, this way
you will benefit from the always "up-to-date" layouts)
C.MODIFYING TEMPLATES
Open a Layout.wor
Make the necessary changes on the "constant tables" or frame elements
and save
The changes will be taken into account for all your next printing
projects
This may have been a long way to explain a workaround, but I thought
maybe others may benefit from the example in general.
Isabella
Thanks all for the input. This Group is great!
Keith
On Apr 13, 1:35 pm, "geomatics.ch" <j...@geomatics.ch> wrote: