<?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: Detach a model for transmital in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11165182#M19124</link>
    <description>&lt;P&gt;1) TransmissionData.ReadTransmissionData&lt;/P&gt;&lt;P&gt;2) TransmissionData.IsTransmitted&lt;/P&gt;&lt;P&gt;3) TransmissionData.WriteTransmissionData&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;amp; 3 are static members.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So would try setting the IsTransmitted to true as I assume that is what the eTransmit does to avoid the issue noted.&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 17:24:56 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2022-05-12T17:24:56Z</dc:date>
    <item>
      <title>Detach a model for transmital</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11164041#M19123</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a tool that batch detaches models, cleans them and saves them to send them to other consultants.&lt;/P&gt;&lt;P&gt;Revit saves a new central file in our "Out" folder but when we send the file to others, they receive the message that this file was moved and it doesn't find the central file. So far I was not very concerned about this because they can just do a "save as" to create a new central file. However, I noticed that if I use the eTransmit plugin, when opening the file it doesn't give the same warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to replicate what eTransmit does with the Revit API.&lt;/P&gt;&lt;P&gt;I have seen that there are some properties that seem to be related to this:&lt;SPAN&gt; ClearTransmittedSaveAsNewCentral, and ClearTransmitted, but I can't make this work, are these related to what I want to achieve?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 10:25:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11164041#M19123</guid>
      <dc:creator>Hernan.Echevarria</dc:creator>
      <dc:date>2022-05-12T10:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Detach a model for transmital</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11165182#M19124</link>
      <description>&lt;P&gt;1) TransmissionData.ReadTransmissionData&lt;/P&gt;&lt;P&gt;2) TransmissionData.IsTransmitted&lt;/P&gt;&lt;P&gt;3) TransmissionData.WriteTransmissionData&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;amp; 3 are static members.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So would try setting the IsTransmitted to true as I assume that is what the eTransmit does to avoid the issue noted.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 17:24:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11165182#M19124</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-05-12T17:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detach a model for transmital</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11166468#M19125</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This worked, thank you very much!&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ModelPath outModelPath = ModelPathUtils.ConvertUserVisiblePathToModelPath(outputFolder + @"\" + m.RVTName + ".rvt");
TransmissionData transData = TransmissionData.ReadTransmissionData(outModelPath);
transData.IsTransmitted = true;
TransmissionData.WriteTransmissionData(outModelPath,transData);&lt;/LI-CODE&gt;&lt;P&gt;This code runs once the model is saved in the desired location and closed. outModelPath is the full path of that saved model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those who don't know what is the message that I was looking for, this is the desired message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-05-13_09h05_56.png" style="width: 542px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1066732iE70D29AE36FA7374/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-05-13_09h05_56.png" alt="2022-05-13_09h05_56.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:09:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/detach-a-model-for-transmital/m-p/11166468#M19125</guid>
      <dc:creator>Hernan.Echevarria</dc:creator>
      <dc:date>2022-05-13T08:09:25Z</dc:date>
    </item>
  </channel>
</rss>

