![]() |
【转帖】请教后台获取map工程的方法
请教后台获取map工程的方法
www.dimcax.com 请教后台获取map工程的方法 我在后台打开一个dwg后用 public database getdatabasefromfile(string sourcefilename, system.io.fileshare filesare,bool builddefaultdrawing, bool nodocument) { database sourcedatabase = new database(builddefaultdrawing, nodocument); sourcedatabase.readdwgfile(sourcefilename, filesare, true, null); return sourcedatabase; } using (database sourcedatabase = sm.getdatabasefromfile("f:\\005711.dwg", fileshare.readwrite,false, false)) { projectmodel projects = hostmapapplicationservices.application.getprojectfordb(sourcedatabase); //这个获取不了,执行出错 } projectmodel mapproject = hostmapapplicationservices.application.activeproject; //这获取的是当前 不知道要怎么才能从后台获取到map的工程,请高手指教。谢谢 |
所有的时间均为北京时间。 现在的时间是 04:02 AM. |