<?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 Re: ExternalService , in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/externalservice/m-p/12995138#M3311</link>
    <description>&lt;P&gt;I searched The Building Coder for "ExternalService", and came up with the following discussions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/05/the-revit-2013-mep-api-and-external-services.html" target="_blank"&gt;The Revit 2013 MEP API and External Services&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/11/drive-revit-through-a-wcf-service.html" target="_blank"&gt;Drive Revit through a WCF Service&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html" target="_blank"&gt;What's New in the Revit 2014 API&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/07/referenced-files-as-a-service.html" target="_blank"&gt;Referenced Files as a Service&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/03/calculating-gross-and-net-wall-areas.html" target="_blank"&gt;Calculating Gross and Net Wall Areas&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/12/pipe-fitting-k-factor-archilab-and-installer.html" target="_blank"&gt;Pipe Fitting K Factor, Archi+Lab and Installer&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/05/drive-revit-via-a-wcf-service-wall-directions-and-parameters.html" target="_blank"&gt;Parameters, Walls and Driving Revit via WCF Service&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2023/04/whats-new-in-the-revit-2024-api.html" target="_blank"&gt;What's New in the Revit 2024 API&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe they will help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 06:31:08 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2024-09-02T06:31:08Z</dc:date>
    <item>
      <title>ExternalService ,</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/externalservice/m-p/12993587#M3310</link>
      <description>&lt;P&gt;I'm exploring the ExternalService. I worked out this method to see if it worked for me, but it gives me the following error,&lt;/P&gt;&lt;P&gt;The server does not represent a server of a valid type to be used with the service.&lt;BR /&gt;Any idea why?&lt;BR /&gt;Or if there is an article about this Namespace to understand it.&lt;/P&gt;&lt;P&gt;I share with you about what I have done, it is simple:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; public class App : IExternalApplication
 {
     public Result OnStartup(UIControlledApplication a)
     {
         AddServers();
         return Result.Succeeded;
     }

     public Result OnShutdown(UIControlledApplication a)
     {
         return Result.Succeeded;
     }

     private void AddServers()
     {
         try
         {
             
             ExternalService externalService = ExternalServiceRegistry.GetService(ExternalServices.BuiltInExternalServices.ExternalUIService);
             SingleServerService service = externalService as SingleServerService;
             if (service == null)
             {
                 return;
             }

             TestExternalServices testServers = new TestExternalServices();

             if (testServers != null)
             {
                 service.AddServer(testServers);
             }
         }
         catch (Exception )
         {
             //TaskDialog.Show("Info", "Error" + ex.Message);
             throw;
         }
     }
 }
////
public class TestExternalServices : IExternalServer
{
    public string GetDescription()
    {
        return "Prueba para el servidor";
    }

    public string GetName()
    {
        return "Test";
    }

    public Guid GetServerId()
    {
        return new Guid("1384B8EE-9A47-434A-8564-7D828A60ACF8");
    }

    public ExternalServiceId GetServiceId()
    {
        return ExternalServices.BuiltInExternalServices.ExternalUIService;
    }

    public string GetVendorId()
    {
        return GetType().Name;
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2024-09-01 001824.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1404431i5342DACF21C14484/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2024-09-01 001824.png" alt="Captura de pantalla 2024-09-01 001824.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 21:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/externalservice/m-p/12993587#M3310</guid>
      <dc:creator>reylorente1</dc:creator>
      <dc:date>2024-08-31T21:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExternalService ,</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/externalservice/m-p/12995138#M3311</link>
      <description>&lt;P&gt;I searched The Building Coder for "ExternalService", and came up with the following discussions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/05/the-revit-2013-mep-api-and-external-services.html" target="_blank"&gt;The Revit 2013 MEP API and External Services&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/11/drive-revit-through-a-wcf-service.html" target="_blank"&gt;Drive Revit through a WCF Service&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/04/whats-new-in-the-revit-2014-api.html" target="_blank"&gt;What's New in the Revit 2014 API&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/07/referenced-files-as-a-service.html" target="_blank"&gt;Referenced Files as a Service&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/03/calculating-gross-and-net-wall-areas.html" target="_blank"&gt;Calculating Gross and Net Wall Areas&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/12/pipe-fitting-k-factor-archilab-and-installer.html" target="_blank"&gt;Pipe Fitting K Factor, Archi+Lab and Installer&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/05/drive-revit-via-a-wcf-service-wall-directions-and-parameters.html" target="_blank"&gt;Parameters, Walls and Driving Revit via WCF Service&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2023/04/whats-new-in-the-revit-2024-api.html" target="_blank"&gt;What's New in the Revit 2024 API&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe they will help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 06:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/externalservice/m-p/12995138#M3311</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-09-02T06:31:08Z</dc:date>
    </item>
  </channel>
</rss>

