Re: [mapguide-users] Re: Anyone tried copying DWF files from library to session repository?
Yes, I have. Essentially, if you rename the dwf to a zip extension and look at the Unique ID in there you'll notice that each one is different. In order for it to work that Unique ID needs to be updated in MapGuide so that it refers to the new id not the old even though you have replaced the file. Regards, Jonathon On Mon, Nov 7, 2011 at 11:14 AM, tmblackflag steve.calp...@gmail.comwrote: I've tried copying the file using the .NET System.IO class and no luck there either. The DWF is definitely making its way into the session repository folder, tried both the root folder and the DataFiles folders in there as well as updating the DrawingSource XML file's SourceName tag to point to the custom DWF to no avail. Has anyone tried to do this? System.IO.File.Copy(C:/Program Files/Autodesk/Autodesk Infrastructure Map Server 2012/Repositories/Library/DataFiles/ + myDwfName, C:/Program Files/Autodesk/Autodesk Infrastructure Map Server 2012/Repositories/Session/ + myDwfName,true); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Anyone-tried-copying-DWF-files-from-library-to-session-repository-tp6971598p6971704.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Re: Anyone tried copying DWF files from library to session repository?
A dwf file is just a zip file that contains a number of different files/directory. If you rename it zip, you can open it up and see the info including the png image. Once you open it you can then see the Unique ID. If you open the xml for the data source for the previous dwf, you'll see it has a unique id also. Your code needs to replace the old unique id with the new one that it writes to the session repository On Mon, Nov 7, 2011 at 11:31 AM, tmblackflag steve.calp...@gmail.comwrote: Can you elaborate on renaming the DWF to a ZIP file? As an example, i created a simple map with only the DWF layer. When i access that map and look in the session repository folder all I see are a .DBXML file, and a .DB file. Even though I am certain this map is using DWF data, the Session/DataFiles/ folder is null. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Anyone-tried-copying-DWF-files-from-library-to-session-repository-tp6971598p6971768.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Re: Anyone tried copying DWF files from library to session repository?
We are looking at implementing that functionality for others. Let me know if you're interested in chatting further. Regards, Jonathon McIntyre i-OPEN Technologies (C) 778-549-8382 Sent from my iPhone, please excuse any typos. On Nov 7, 2011, at 1:11 PM, tmblackflag steve.calp...@gmail.com wrote: I was able to get a single DWG working by giving the full path to the SourceName as opposed to simply Map Base.dwf The fun will be updating the unique ID's on subsequent maps. thank you for your time. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Anyone-tried-copying-DWF-files-from-library-to-session-repository-tp6971598p6972103.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Re: Anyone tried copying DWF files from library to session repository?
Great find!! I'll pass that along to the others. Regards, Jonathon McIntyre i-OPEN Technologies (C) 778-549-8382 Sent from my iPhone, please excuse any typos. On Nov 7, 2011, at 1:48 PM, tmblackflag steve.calp...@gmail.com wrote: I tracked down this thread which has some good pointers on making this easier. http://osgeo-org.1803224.n2.nabble.com/How-to-prepare-unmanaged-DWF-Drawingsource-td1812519.html#a1812522 there is code that helps you read the file structure of unzipped dwf files so you can easily update the unique ID's in the layer.xml and drawingsource.xml files. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Anyone-tried-copying-DWF-files-from-library-to-session-repository-tp6971598p6972207.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users