Not all the menu commands are operational from the MBW. The statements that
are printed in the MBW when you save the cosmetic objects to a file are only
the tip of the iceberg. The key to the operation is in the "save cosmetic
objects" command (code 809) itself, when the objects are copied and
transferred to a temporary file that you (re)name whatever you want (and it
is what is sent to the MBW).

In conclusion, you cannot do it in the MBW with some direct command. You
have to write your script, such as this one

Dim a_cos as string
A_cos=layerinfo(frontwindow(),0,1)
Commit table a_cos as "your_name"
Open table "your_name" as new_tab
Add map layer new_tab
Delete from a_cos

What is interesting is to see that the "Save cosmetic objects" "Clear
cosmetic objects" menu items are not greyed out after the delete even if
there is no object left in the cosmetic layer. Once used, for ever
tarnished, if it were not for these same commands that can restore its
virginity.

Jacques Paris
e-mail  [EMAIL PROTECTED]
MapBasic-MapInfo support  http://www.paris-pc-gis.com

-----Original Message-----
From: Brandi McGunigal [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2002 13:06
To: MapInfo List
Subject: MI-L Save Cosmetic Objects

Hello listers,

I do not have MapBasic.  Is it possible to Save Cosmetic Objects in a MBW
script?

If I do it through the menu, its command displays in the MapBasic Window.
However, if I try to reissue it, it doesn't work.

I'm creating a buffer in the Cosmetic Layer and want to save it without
using the menu if possible.

Thanks in advance,

Brandi McGunigal
GIS Technician
Traxis Inc.
Saskatoon, SK
(306) 978-0445


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to