<?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 Merge Importable files in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/merge-importable-files/m-p/4247177#M18391</link>
    <description>Hi folks,&lt;BR /&gt;I'm currently working on an asset-manager for my own object type. It shows a list of files and the user can drag and drop them into the viewport to load them. The problem now is that I cannot merge the dropped file with the current scene. I am using the ImportFromFile function of the Interface class which always creates a new scene for the imported file. What I need is the functionality of MergeFromFile which unfortunately only works for max files. Can anybody tell me if there is an appropriate function to achieve this or how to do it manually?&lt;BR /&gt;Thanking you in anticipation!&lt;BR /&gt;SataraX</description>
    <pubDate>Thu, 10 May 2012 15:13:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-10T15:13:24Z</dc:date>
    <item>
      <title>Merge Importable files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/merge-importable-files/m-p/4247177#M18391</link>
      <description>Hi folks,&lt;BR /&gt;I'm currently working on an asset-manager for my own object type. It shows a list of files and the user can drag and drop them into the viewport to load them. The problem now is that I cannot merge the dropped file with the current scene. I am using the ImportFromFile function of the Interface class which always creates a new scene for the imported file. What I need is the functionality of MergeFromFile which unfortunately only works for max files. Can anybody tell me if there is an appropriate function to achieve this or how to do it manually?&lt;BR /&gt;Thanking you in anticipation!&lt;BR /&gt;SataraX</description>
      <pubDate>Thu, 10 May 2012 15:13:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/merge-importable-files/m-p/4247177#M18391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-10T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Importable files</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/merge-importable-files/m-p/4247178#M18392</link>
      <description>OK I've found a workaround now by sending a WM_DROPFILES event to the max-window handle. If someone runs into the same problem here ist the code:&lt;BR /&gt;&lt;PRE&gt;char *filename = "C:\\xyz.ext";&lt;BR /&gt;if (HGLOBAL hGlobal = GlobalAlloc(GHND, sizeof(DROPFILES) + strlen(filename) + 2)) &lt;BR /&gt;{ &lt;BR /&gt;  DROPFILES * df = static_cast&amp;lt;DROPFILES *&amp;gt;(GlobalLock(hGlobal)); &lt;BR /&gt;  df-&amp;gt;pFiles = sizeof(DROPFILES); &lt;BR /&gt;  strcpy(reinterpret_cast&amp;lt;char *&amp;gt;(df + 1), filename); &lt;BR /&gt;  GlobalUnlock(hGlobal);&lt;BR /&gt;  if (!SendMessage(ip-&amp;gt;GetMAXHWnd(), WM_DROPFILES, (WPARAM)hGlobal, 0)) &lt;BR /&gt;  GlobalFree(hGlobal); &lt;BR /&gt;}&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 May 2012 17:03:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/merge-importable-files/m-p/4247178#M18392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-10T17:03:19Z</dc:date>
    </item>
  </channel>
</rss>

