Infrastructure Map Server Developer

Infrastructure Map Server Developer

Posts: 3
Registered: ‎01-17-2011
Message 1 of 2 (1,152 Views)

Problem with use of dwgLoadprocedure

1152 Views, 1 Replies
01-19-2011 02:50 AM


i try to load a dwg file with program:


mgr = Autodesk.MapGuide.Studio.Site.SiteManager.GetInstance()
con = mgr.CreateConnection(<url>, <user>, <password>, stat)
loadProc = New Autodesk.MapGuide.Studio.Load.DwgLoadProcedure
loadProc.SourceFiles.Add(<file name>)
loadProc.RootPath = "Library://Test"
loadProc.GenerateLayers = True
loadProc.GenerateMaps = True
loadProc.GenerateSpatialDataSources = True
loadProc.GenerateSymbolLibraries = True
loadProc.LayersFolder = "layer"
loadProc.MapsFolder = "map"



but by execute an exception occured:


Fdo exception : Schema is not set - cannot set the class name. 

How can I set Schema?
best regards



Board Manager
Posts: 202
Registered: ‎12-23-2008
Message 2 of 2 (988 Views)

Re: Problem with use of dwgLoadprocedure

07-30-2012 02:00 AM in reply to: brokosa

I would like to draw your attention that DWG is supported on AIMS 2013 without file format conversion or load procedure, so it is not necessary to do this any more. Please refer to this video: DWG files.html

and Infrastructure Studio help. 


Please let us know if you are still blocked by this problem and want to keep working on it. 


Daniel Du
Developer Technical Services
Autodesk Developer Network

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.