<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SymbolUtilityServices Version Change? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955816#M78164</link>
    <description>When I need to find the space I was in for 2006 in wrote this&lt;BR /&gt;
SymbolUtilityServices service = new SymbolUtilityServices();&lt;BR /&gt;
currentSpaceId = service.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)&lt;BR /&gt;
&lt;BR /&gt;
This worked just fine&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
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:&lt;BR /&gt;
--&amp;gt; System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.DatabaseServices.ObjectId Autodesk.AutoCAD.DatabaseServices.SymbolUtilityServices.GetBlockModelSpaceId(Autodesk.AutoCAD.DatabaseServices.Database)'.&lt;BR /&gt;
&lt;BR /&gt;
To make it work I have to now use:&lt;BR /&gt;
currentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)&lt;BR /&gt;
&lt;BR /&gt;
am I doing something wrong? Or has something changed</description>
    <pubDate>Tue, 01 May 2007 09:43:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-05-01T09:43:33Z</dc:date>
    <item>
      <title>SymbolUtilityServices Version Change?</title>
      <link>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955816#M78164</link>
      <description>When I need to find the space I was in for 2006 in wrote this&lt;BR /&gt;
SymbolUtilityServices service = new SymbolUtilityServices();&lt;BR /&gt;
currentSpaceId = service.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)&lt;BR /&gt;
&lt;BR /&gt;
This worked just fine&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
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:&lt;BR /&gt;
--&amp;gt; System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.DatabaseServices.ObjectId Autodesk.AutoCAD.DatabaseServices.SymbolUtilityServices.GetBlockModelSpaceId(Autodesk.AutoCAD.DatabaseServices.Database)'.&lt;BR /&gt;
&lt;BR /&gt;
To make it work I have to now use:&lt;BR /&gt;
currentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)&lt;BR /&gt;
&lt;BR /&gt;
am I doing something wrong? Or has something changed</description>
      <pubDate>Tue, 01 May 2007 09:43:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955816#M78164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-01T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolUtilityServices Version Change?</title>
      <link>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955817#M78165</link>
      <description>Your code was wrong to start with. You&lt;BR /&gt;
shoudn't create instances of that class.&lt;BR /&gt;
&lt;BR /&gt;
The method you're calling is static.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2008&lt;BR /&gt;
Supporting AutoCAD 2000 through 2008&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;TECHNO destructo=""&gt; wrote in message news:5570207@discussion.autodesk.com...&lt;BR /&gt;
When I need to find the space I was in for 2006 in wrote this&lt;BR /&gt;
SymbolUtilityServices service = new SymbolUtilityServices();&lt;BR /&gt;
currentSpaceId = service.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)&lt;BR /&gt;
&lt;BR /&gt;
This worked just fine&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
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:&lt;BR /&gt;
--&amp;gt; System.MissingMethodException: Method not found: 'Autodesk.AutoCAD.DatabaseServices.ObjectId Autodesk.AutoCAD.DatabaseServices.SymbolUtilityServices.GetBlockModelSpaceId(Autodesk.AutoCAD.DatabaseServices.Database)'.&lt;BR /&gt;
&lt;BR /&gt;
To make it work I have to now use:&lt;BR /&gt;
currentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase)&lt;BR /&gt;
&lt;BR /&gt;
am I doing something wrong? Or has something changed&lt;/TECHNO&gt;</description>
      <pubDate>Tue, 01 May 2007 14:38:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955817#M78165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-01T14:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolUtilityServices Version Change?</title>
      <link>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955818#M78166</link>
      <description>Yes, I see that now but if I try&lt;BR /&gt;
currentSpaceId = SymbolUtilityServices.GetBlockModelSpaceId(HostApplicationServices.WorkingDatabase);&lt;BR /&gt;
&lt;BR /&gt;
using references to autocad 2006 the compiler gives me this error:&lt;BR /&gt;
&lt;BR /&gt;
An object reference is required for the nonstatic field, method, or property 'Autodesk.AutoCAD.DatabaseServices.SymbolUtilityServices.GetBlockModelSpaceId(Autodesk.AutoCAD.DatabaseServices.Database)' (CS0120)</description>
      <pubDate>Wed, 02 May 2007 07:55:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955818#M78166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-02T07:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolUtilityServices Version Change?</title>
      <link>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955819#M78167</link>
      <description>For anyone interested, changes have been made.&lt;BR /&gt;
By Reflecting both 2006 and 2008 acdbmgd.dll and looking at &lt;BR /&gt;
GetBlockModelSpaceId we find these differences:&lt;BR /&gt;
&lt;BR /&gt;
2007: public static unsafe ObjectId GetBlockModelSpaceId(Database databasePointer)&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
2006: public unsafe ObjectId GetBlockModelSpaceId(Database databasePointer)&lt;BR /&gt;
&lt;BR /&gt;
So it has been changed to a static method in 2008.&lt;BR /&gt;
I guess my code wasn't wrong for the 2006 version.</description>
      <pubDate>Sat, 05 May 2007 08:54:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/symbolutilityservices-version-change/m-p/1955819#M78167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-05-05T08:54:10Z</dc:date>
    </item>
  </channel>
</rss>

