<?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 How to set vertical unit on the feature class in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-vertical-unit-on-the-feature-class/m-p/790464#M1493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a PolylineZ feature class, but I don't know how to set the Z unit.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;added this PolylineZ feature class to my map, and when I look at the layer's properties, the source has "vertical units" of "foot_us."&amp;nbsp; How do I set this attribute when I create the feature class?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/411493_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had tried setting the layer's Z unit programmatically when I create the layer from this feature class, but it didn't seem to do anything.&amp;nbsp; Here's the code I have:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var layerProps = newLayer.GetDefinition().Layer3DProperties;&lt;BR /&gt; if (layerProps != null)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unit verticalUnit = ...// retrieve the Z unit (will be feet)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (verticalUnit != null)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;layerProps.VerticalUnit = verticalUnit;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;newLayer.GetDefinition().Layer3DProperties = layerProps;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2018 21:51:53 GMT</pubDate>
    <dc:creator>SuzanChau</dc:creator>
    <dc:date>2018-06-15T21:51:53Z</dc:date>
    <item>
      <title>How to set vertical unit on the feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-vertical-unit-on-the-feature-class/m-p/790464#M1493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a PolylineZ feature class, but I don't know how to set the Z unit.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;added this PolylineZ feature class to my map, and when I look at the layer's properties, the source has "vertical units" of "foot_us."&amp;nbsp; How do I set this attribute when I create the feature class?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/411493_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had tried setting the layer's Z unit programmatically when I create the layer from this feature class, but it didn't seem to do anything.&amp;nbsp; Here's the code I have:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var layerProps = newLayer.GetDefinition().Layer3DProperties;&lt;BR /&gt; if (layerProps != null)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Unit verticalUnit = ...// retrieve the Z unit (will be feet)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (verticalUnit != null)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;layerProps.VerticalUnit = verticalUnit;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;newLayer.GetDefinition().Layer3DProperties = layerProps;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 21:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-vertical-unit-on-the-feature-class/m-p/790464#M1493</guid>
      <dc:creator>SuzanChau</dc:creator>
      <dc:date>2018-06-15T21:51:53Z</dc:date>
    </item>
  </channel>
</rss>

