<?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 Getting an entity's schema? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661156#M72116</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am currently trying to unload and remove a linked type, I can unload it but I wish to use the "DeleteEntity()" method in the RevitLinkType.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doing this I relized I needed a shema to pass into the method. I have no idea how to get the schema of the entity. I can get the Guids but this is a new topic to me and am difficulty finding help online.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the code i am using,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;Jack &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2015 14:50:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-02T14:50:44Z</dc:date>
    <item>
      <title>Getting an entity's schema?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661156#M72116</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am currently trying to unload and remove a linked type, I can unload it but I wish to use the "DeleteEntity()" method in the RevitLinkType.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doing this I relized I needed a shema to pass into the method. I have no idea how to get the schema of the entity. I can get the Guids but this is a new topic to me and am difficulty finding help online.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the code i am using,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;Jack &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 14:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661156#M72116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-02T14:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an entity's schema?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661165#M72117</link>
      <description>&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/171497i8FA6879CF5DF3D42/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="MyCode.PNG" title="MyCode.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 14:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661165#M72117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-02T14:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an entity's schema?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661186#M72118</link>
      <description>&lt;P&gt;Hello Jack,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the DeleteEntity is not the method you can use in this case. It is for removing elements of external storage only. That is why you need to pass in the schema to which the storage element belongs. (I admit&amp;nbsp;it should be explained better in the RevitAPI help.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose you could use the DeleteElement() method if you want&amp;nbsp;to remove the link type for good from the host element.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 15:10:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661186#M72118</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-06-02T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an entity's schema?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661195#M72119</link>
      <description>&lt;P&gt;Thanks a million, this is very helpful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 15:15:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-an-entity-s-schema/m-p/5661195#M72119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-02T15:15:21Z</dc:date>
    </item>
  </channel>
</rss>

