<?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 VRMLExporter usage pattern in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/vrmlexporter-usage-pattern/m-p/171356#M4429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am required to export TIN data into WRL format using ArcObjects .NET SDK. So far I managed to come up with the following routine, that seems fine - but the created WRL file is empty.&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ESRI.ArcGIS.Analyst3D.Scene sc = new ESRI.ArcGIS.Analyst3D.Scene();&lt;BR /&gt;TinLayer tl = new TinLayer(); &lt;BR /&gt;TinClass t = new ESRI.ArcGIS.Geodatabase.TinClass();&lt;BR /&gt;t.Init("C:\\Data\\3DModels\\MtCoolum\\sw_508000_7061000_1k_class_l10");&lt;BR /&gt;tl.Dataset = t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//some test printouts&lt;BR /&gt;Console.WriteLine(tl.Dataset.DataEdgeCount); &amp;nbsp;//reasonable result in console, hence TinLayer is created from Tin t object&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Console.WriteLine(t.TriangleCount); //reasonable result in console&lt;BR /&gt;sc.AddLayer(tl);&lt;/P&gt;&lt;P&gt;Console.WriteLine(sc.LayerCount); //layer count is 1 - so layer is added to Scene&lt;BR /&gt;Console.WriteLine(sc.get_Layer(0).Visible); //layer is visible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VRMLExporter vrmlExporter = new VRMLExporter();&lt;BR /&gt;vrmlExporter.ExportFileName = "C:\\Data\\test.wrl";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrmlExporter.ExportScene(sc);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine, but the created test.wrl is an empty file. The t TinClass instance seems all good, values and parameters related to this instance are all seem correct upon checking. I could not find any further parameters I can configure on VRMLExporter instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tamas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2016 06:02:42 GMT</pubDate>
    <dc:creator>TamasGIS</dc:creator>
    <dc:date>2016-09-08T06:02:42Z</dc:date>
    <item>
      <title>VRMLExporter usage pattern</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/vrmlexporter-usage-pattern/m-p/171356#M4429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am required to export TIN data into WRL format using ArcObjects .NET SDK. So far I managed to come up with the following routine, that seems fine - but the created WRL file is empty.&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ESRI.ArcGIS.Analyst3D.Scene sc = new ESRI.ArcGIS.Analyst3D.Scene();&lt;BR /&gt;TinLayer tl = new TinLayer(); &lt;BR /&gt;TinClass t = new ESRI.ArcGIS.Geodatabase.TinClass();&lt;BR /&gt;t.Init("C:\\Data\\3DModels\\MtCoolum\\sw_508000_7061000_1k_class_l10");&lt;BR /&gt;tl.Dataset = t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//some test printouts&lt;BR /&gt;Console.WriteLine(tl.Dataset.DataEdgeCount); &amp;nbsp;//reasonable result in console, hence TinLayer is created from Tin t object&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Console.WriteLine(t.TriangleCount); //reasonable result in console&lt;BR /&gt;sc.AddLayer(tl);&lt;/P&gt;&lt;P&gt;Console.WriteLine(sc.LayerCount); //layer count is 1 - so layer is added to Scene&lt;BR /&gt;Console.WriteLine(sc.get_Layer(0).Visible); //layer is visible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VRMLExporter vrmlExporter = new VRMLExporter();&lt;BR /&gt;vrmlExporter.ExportFileName = "C:\\Data\\test.wrl";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vrmlExporter.ExportScene(sc);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works fine, but the created test.wrl is an empty file. The t TinClass instance seems all good, values and parameters related to this instance are all seem correct upon checking. I could not find any further parameters I can configure on VRMLExporter instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tamas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 06:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/vrmlexporter-usage-pattern/m-p/171356#M4429</guid>
      <dc:creator>TamasGIS</dc:creator>
      <dc:date>2016-09-08T06:02:42Z</dc:date>
    </item>
  </channel>
</rss>

