<?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: The function Forma.getPresentationUnitSystem()     is probably not working properly in Forma Site Design Developer Forum</title>
    <link>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14305213#M885</link>
    <description>&lt;P&gt;Hi Vsevolod,&lt;/P&gt;&lt;P&gt;You are not missing anything: in the current Forma build this looks like a host-side bug, not an issue with your code.&lt;/P&gt;&lt;P&gt;When your extension calls getPresentationUnitSystem(), the SDK asks the Forma host page for the value. The host does not answer from the project's unit setting. It answers from an internal feature flag, imperial-units, and while that flag is off every extension gets "metric" regardless of what the project uses. Forma's own panels read the project setting instead, which is why the Forma UI shows imperial while your extension is told metric.&lt;/P&gt;&lt;P&gt;Two more things to plan for:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The SDK (0.96.0, the latest) has no unit change event. The method is a one-shot request, so even once this is fixed, re-read the value when your panel opens instead of caching it for the whole session.&lt;/LI&gt;&lt;LI&gt;Until the host is fixed, getPresentationUnitSystem() will not tell you about imperial projects. A practical workaround is a metric/imperial switch in your own UI that defaults to the SDK value and saves the user's choice per project.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/18513253"&gt;@evgenii_dobrovidov&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13011983"&gt;@kristoffer.dyrkorn&lt;/a&gt;&amp;nbsp;could you pass this to whoever owns the embedded view host? The handler for unit-system/get-presentation-unit-system should return the project's unit setting, the same value Forma's own panels use.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2026 06:37:09 GMT</pubDate>
    <dc:creator>sharafutdinov_di_dev</dc:creator>
    <dc:date>2026-10-12T06:37:09Z</dc:date>
    <item>
      <title>The function Forma.getPresentationUnitSystem()     is probably not working properly</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14283688#M795</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're using your API feature to sync the units your users use with our app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vc6XFSA_1-1790763034904.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1663643iDF02561A1E17539F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vc6XFSA_1-1790763034904.png" alt="vc6XFSA_1-1790763034904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { Forma } from 'forma-embedded-view-sdk/auto';

export async function runFormaUnitsDemo() {

    const result = await Forma.getPresentationUnitSystem();
    console.log('[UNITS]', {
      result,
      type: typeof result,
    });
    return result;
 
}&lt;/LI-CODE&gt;&lt;P&gt;However, even when the “Imperial” unit system is selected in the Forma UI settings, we're still getting metric value in the logs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vc6XFSA_0-1790762697484.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1663642i03E4E53C6B4CB3D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vc6XFSA_0-1790762697484.png" alt="vc6XFSA_0-1790762697484.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Maybe we're missing something, or maybe it's a bug in the API.&lt;BR /&gt;I'd appreciate your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vsevolod&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2026 10:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14283688#M795</guid>
      <dc:creator>vc6XFSA</dc:creator>
      <dc:date>2026-09-30T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: The function Forma.getPresentationUnitSystem()     is probably not working properly</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14305213#M885</link>
      <description>&lt;P&gt;Hi Vsevolod,&lt;/P&gt;&lt;P&gt;You are not missing anything: in the current Forma build this looks like a host-side bug, not an issue with your code.&lt;/P&gt;&lt;P&gt;When your extension calls getPresentationUnitSystem(), the SDK asks the Forma host page for the value. The host does not answer from the project's unit setting. It answers from an internal feature flag, imperial-units, and while that flag is off every extension gets "metric" regardless of what the project uses. Forma's own panels read the project setting instead, which is why the Forma UI shows imperial while your extension is told metric.&lt;/P&gt;&lt;P&gt;Two more things to plan for:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The SDK (0.96.0, the latest) has no unit change event. The method is a one-shot request, so even once this is fixed, re-read the value when your panel opens instead of caching it for the whole session.&lt;/LI&gt;&lt;LI&gt;Until the host is fixed, getPresentationUnitSystem() will not tell you about imperial projects. A practical workaround is a metric/imperial switch in your own UI that defaults to the SDK value and saves the user's choice per project.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/18513253"&gt;@evgenii_dobrovidov&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13011983"&gt;@kristoffer.dyrkorn&lt;/a&gt;&amp;nbsp;could you pass this to whoever owns the embedded view host? The handler for unit-system/get-presentation-unit-system should return the project's unit setting, the same value Forma's own panels use.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2026 06:37:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14305213#M885</guid>
      <dc:creator>sharafutdinov_di_dev</dc:creator>
      <dc:date>2026-10-12T06:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: The function Forma.getPresentationUnitSystem()     is probably not working properly</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14311397#M906</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Vsevolod,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The host bug is fixed. &lt;CODE&gt;getPresentationUnitSystem()&lt;/CODE&gt; now returns the project’s saved unit setting, the same value Forma’s own panels use.&lt;BR /&gt;The fix is live as of 20 minutes ago, so it should work without any changes on your side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;One thing still applies: there’s no unit-change event in the SDK, so re-read the value when your panel opens rather than caching it for the whole session.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Bruno&amp;nbsp;·&amp;nbsp;Forma Design Engineer&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2026 08:57:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14311397#M906</guid>
      <dc:creator>bruno_miguel</dc:creator>
      <dc:date>2026-10-13T08:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: The function Forma.getPresentationUnitSystem()     is probably not working properly</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14319710#M909</link>
      <description>&lt;P&gt;Thanks for the fix! Everything is working now:)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2026 14:17:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/the-function-forma-getpresentationunitsystem-is-probably-not/m-p/14319710#M909</guid>
      <dc:creator>vc6XFSA</dc:creator>
      <dc:date>2026-10-20T14:17:58Z</dc:date>
    </item>
  </channel>
</rss>

