<?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 setting default units to imperial for creating 3D Mesh objects in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-default-units-to-imperial-for-creating-3d/m-p/1553238#M85988</link>
    <description>&lt;P&gt;I'm trying to to to use Mesh.CreateCylinderParameters method.&lt;BR /&gt;&lt;BR /&gt;I would like to use &lt;STRONG&gt;imperial units&lt;/STRONG&gt; in my drawing.&lt;BR /&gt;&lt;BR /&gt;Here it says that one needs to change units to do so:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#CreateCylinderParameters" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#CreateCylinderParameters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I assume I'd need to load &lt;STRONG&gt;esri/core/units&lt;/STRONG&gt; and then adjust the property values as shown here:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is where I get confused. There is no example as to how this is done properly. Here is what I did but no luck. Drawings did not change. Please advise.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;units&lt;/SPAN&gt;.&lt;SPAN&gt;MeasurementSystem &lt;/SPAN&gt;= &lt;SPAN&gt;"imperial"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;units&lt;/SPAN&gt;.&lt;SPAN&gt;LengthUnit &lt;/SPAN&gt;= &lt;SPAN&gt;"us-feet"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 13:08:52 GMT</pubDate>
    <dc:creator>InQiDev</dc:creator>
    <dc:date>2024-10-29T13:08:52Z</dc:date>
    <item>
      <title>setting default units to imperial for creating 3D Mesh objects</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-default-units-to-imperial-for-creating-3d/m-p/1553238#M85988</link>
      <description>&lt;P&gt;I'm trying to to to use Mesh.CreateCylinderParameters method.&lt;BR /&gt;&lt;BR /&gt;I would like to use &lt;STRONG&gt;imperial units&lt;/STRONG&gt; in my drawing.&lt;BR /&gt;&lt;BR /&gt;Here it says that one needs to change units to do so:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#CreateCylinderParameters" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#CreateCylinderParameters&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I assume I'd need to load &lt;STRONG&gt;esri/core/units&lt;/STRONG&gt; and then adjust the property values as shown here:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is where I get confused. There is no example as to how this is done properly. Here is what I did but no luck. Drawings did not change. Please advise.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;units&lt;/SPAN&gt;.&lt;SPAN&gt;MeasurementSystem &lt;/SPAN&gt;= &lt;SPAN&gt;"imperial"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;units&lt;/SPAN&gt;.&lt;SPAN&gt;LengthUnit &lt;/SPAN&gt;= &lt;SPAN&gt;"us-feet"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 13:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-default-units-to-imperial-for-creating-3d/m-p/1553238#M85988</guid>
      <dc:creator>InQiDev</dc:creator>
      <dc:date>2024-10-29T13:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: setting default units to imperial for creating 3D Mesh objects</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-default-units-to-imperial-for-creating-3d/m-p/1553360#M85990</link>
      <description>&lt;P&gt;Actually, esri/core/units is not involved when using the createCylinder method.&amp;nbsp; It is also not possible to specify a system of units (e.g. "imperial" or "metric") with this method.&amp;nbsp; Instead, your actual units must be known beforehand, and the value must be one of the constants defined for &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#LengthUnit" target="_self"&gt;LengthUnit&lt;/A&gt;.&amp;nbsp; An example is below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var cylinder = Mesh.createCylinder(point, {
	width: 5,
	depth: 4,
	height: 3,
	unit: "feet"
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 16:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-default-units-to-imperial-for-creating-3d/m-p/1553360#M85990</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2024-10-29T16:13:41Z</dc:date>
    </item>
  </channel>
</rss>

