Message 1 of 4
SymbolUtilityServices Version Change?

Not applicable
05-01-2007
02:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I need to find the space I was in for 2006 in wrote this
SymbolUtilityServices service = new SymbolUtilityServices();
currentSpaceId = service.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)
This worked just fine
Now when I try this using the acdbmgd and acmgd references from AutoCAD 2008 the project compiles but when I run the app I get this error:
--> System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.DatabaseServices.ObjectId Autodesk.AutoCAD.DatabaseServices.SymbolUtilityServices.GetBlockModelSpaceId(Autodesk.AutoCAD.DatabaseServices.Database)'.
To make it work I have to now use:
currentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)
am I doing something wrong? Or has something changed
SymbolUtilityServices service = new SymbolUtilityServices();
currentSpaceId = service.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)
This worked just fine
Now when I try this using the acdbmgd and acmgd references from AutoCAD 2008 the project compiles but when I run the app I get this error:
--> System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.DatabaseServices.ObjectId Autodesk.AutoCAD.DatabaseServices.SymbolUtilityServices.GetBlockModelSpaceId(Autodesk.AutoCAD.DatabaseServices.Database)'.
To make it work I have to now use:
currentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)
am I doing something wrong? Or has something changed