Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SaveMWF in VBscript refuses to save

1 REPLY 1
Reply
Message 1 of 2
devcrowley
1025 Views, 1 Reply

SaveMWF in VBscript refuses to save

I'm trying to use the SaveMWF command in a VBA application.  I have a control called MapControl which is the MGmap ActiveX control.  It's able to load the maps up just fine, but it won't save to an MWF no matter what I try.  The error code returned is -5 (security violation) but I've tried saving it to numerous locations, including my temp files, without any success.

 

Here's the line I'm attempting to use to save the file:

MapControl.saveMWF("C:\\temp\\test.mwf", "")

 

I also tried:

Dim myMap As MGMap

Set myMap = MapControl

myMap.saveMWF("C:\\temp\\test.mwf", "")

msgbox myMap.getLastError.getCode    'Returns -5

Any ideas?  Thanks!

 

 

1 REPLY 1
Message 2 of 2
gluckett
in reply to: devcrowley

Do you have a password on the MWF? You need to send it if you do.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report