<?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: How to construct marker from stream containing 3D model in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870654#M5156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document link you sent&lt;/P&gt;&lt;P&gt;https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14926.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;states it clearly, but I was using this link which is identical except it&lt;/P&gt;&lt;P&gt;doesn't mention that limitation.&lt;/P&gt;&lt;P&gt;https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic16203.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what the difference is. I seem to have found an index page?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2020 23:35:52 GMT</pubDate>
    <dc:creator>deleted-user-JTyWy9b20ETO</dc:creator>
    <dc:date>2020-09-30T23:35:52Z</dc:date>
    <item>
      <title>How to construct marker from stream containing 3D model</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870652#M5154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the ArcGIS Pro SDK, I can construct a 3d symbol from a model file, such as DAE or STL using&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic16202.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic16202.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ConstructMarkerFromFile()&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;CIMMarker cimMarker = await QueuedTask.Run(() =&amp;gt; 
    SymbolFactory.Instance.ConstructMarkerFromFile(filepath)
);&lt;/PRE&gt;&lt;P&gt;I want to achieve the same result except using a file that has been first read into a MemoryStream, using &lt;STRONG&gt;ConstructMarkerFromStream(Stream stream).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I get an exception "parameter is not valid". This suggests that&amp;nbsp;&lt;SPAN&gt;ConstructMarkerFromStream is expecting a PNG image in the stream, not an XML 3D model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the only usage example I can find, an ImageFormat is being specifically identified as PNG to the stream.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;Image newImage = Image.FromFile(@"C:\\downloads\\mymodel.dae");
 var stream = new System.IO.MemoryStream();
 newImage.Save(stream, ImageFormat.Png);
 stream.Position = 0;
 CIMMarker markerFromStream = SymbolFactory.Instance.ConstructMarkerFromStream(stream);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;How can I get&amp;nbsp;ConstructMarkerFromStream() to understand the stream is a DAE object and not an image? Or is there another way to import DAE from a stream?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870652#M5154</guid>
      <dc:creator>deleted-user-JTyWy9b20ETO</dc:creator>
      <dc:date>2021-12-12T17:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct marker from stream containing 3D model</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870653#M5155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, you can only read collada from a file.&amp;nbsp; Note from:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14926.html"&gt;SymbolFactory ConstructMarkerFromStream(...)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Remarks&lt;/STRONG&gt;: "&lt;SPAN style="color: #000000;"&gt;Marker can be created from the following stream data type: JPG, BMP, PNG, GIF&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I realize that the code example on the API reference page is a little misleading because it is actually using "ConstructMarkerFromFile".)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 23:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870653#M5155</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-09-30T23:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct marker from stream containing 3D model</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870654#M5156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document link you sent&lt;/P&gt;&lt;P&gt;https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14926.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;states it clearly, but I was using this link which is identical except it&lt;/P&gt;&lt;P&gt;doesn't mention that limitation.&lt;/P&gt;&lt;P&gt;https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic16203.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what the difference is. I seem to have found an index page?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 23:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-construct-marker-from-stream-containing-3d/m-p/870654#M5156</guid>
      <dc:creator>deleted-user-JTyWy9b20ETO</dc:creator>
      <dc:date>2020-09-30T23:35:52Z</dc:date>
    </item>
  </channel>
</rss>

