Infrastructure Map Server Developer

Infrastructure Map Server Developer

Reply
Member
brokosa
Posts: 3
Registered: ‎01-17-2011
Message 1 of 2 (1,151 Views)

Problem with use of dwgLoadprocedure

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

Hi,

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"
loadProc.Execute(con)

 

 

but by execute an exception occured:

 

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

How can I set Schema?
best regards
Boguslaw

 

 

Board Manager
Daniel.Du
Posts: 194
Registered: ‎12-23-2008
Message 2 of 2 (987 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: docs.autodesk.com/MAP/2013/ENU/map_videos_new_features/Publishing 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

Announcements
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.