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: 

Problem with use of dwgLoadprocedure

1 REPLY 1
Reply
Message 1 of 2
brokosa
1363 Views, 1 Reply

Problem with use of dwgLoadprocedure

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

 

 

1 REPLY 1
Message 2 of 2
Daniel.Du
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

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

Post to forums  

Autodesk Design & Make Report