<?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: SetBaseQuantity to m^2 in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6397418#M109236</link>
    <description>&lt;P&gt;Hi Adam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I meant, is this the correct method if it was 'm' or 'ft'?&amp;nbsp; It works, I just want to be sure im doing it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me ask it another way.&amp;nbsp; What is the supported method for area? UI or otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly it's not as simple as that.&amp;nbsp; I am aware of the behaviour in the UI but we need to use areas in Vault so want to migrate existing files based on their PLM uom.&amp;nbsp; Additionally the UI method is clunky so wish to automate that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 07:35:41 GMT</pubDate>
    <dc:creator>CadUser46</dc:creator>
    <dc:date>2016-06-22T07:35:41Z</dc:date>
    <item>
      <title>SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6370098#M109233</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is unsupported but before you write me off please make sure im doing this right.&amp;nbsp; I have it working for EACH and Meter but this gives me an error on the last line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub SetUnitsSQMTR()

    Dim oApp As Inventor.Application: Set oApp = ThisApplication
    Dim oPart As Inventor.PartDocument: Set oPart = oApp.ActiveDocument

    'EACH
    Dim oBU As BOMQuantity: Set oBU = oPart.ComponentDefinition.BOMQuantity

    'Get the document UnitOfMeasure object to facilitate unit conversions
    'Dim uom As UnitsOfMeasure: Set uom = oPart.UnitsOfMeasure

    'Get the parameter
    Dim oParam As Parameter
    Set oParam = oPart.ComponentDefinition.Parameters("G_L")
    oParam.ExposedAsProperty = True
    oParam.Units = "m^2"
    oParam.Expression = "0.001 m^2"
    
    'Set the QtyType
    Dim oType As BOMQuantityTypeEnum: oType = kParameterBOMQuantity
    
    'set BaseQty
    Call oPart.ComponentDefinition.BOMQuantity.SetBaseQuantity(oType, oParam)

End Sub&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 13:01:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6370098#M109233</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2016-06-07T13:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6382666#M109234</link>
      <description>&lt;P&gt;bump&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 14:48:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6382666#M109234</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2016-06-14T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6397071#M109235</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These two things seem to me conflicting: "&lt;SPAN&gt;I know this is unsupported&lt;/SPAN&gt;" &amp;lt;&amp;gt; "&lt;SPAN&gt;please make sure im doing this right&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;It is indeed unsupported so it would be better not to try to hack the system:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/249567i64285C33581DE4CE/image-size/large?v=v2&amp;amp;px=-1" border="0" alt="BomBaseQuantity.png" title="BomBaseQuantity.png" /&gt;&lt;/P&gt;
&lt;P&gt;You can work around this in the UI, but not sure what issues it could cause down the line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 23:08:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6397071#M109235</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-06-21T23:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6397418#M109236</link>
      <description>&lt;P&gt;Hi Adam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly I meant, is this the correct method if it was 'm' or 'ft'?&amp;nbsp; It works, I just want to be sure im doing it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me ask it another way.&amp;nbsp; What is the supported method for area? UI or otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly it's not as simple as that.&amp;nbsp; I am aware of the behaviour in the UI but we need to use areas in Vault so want to migrate existing files based on their PLM uom.&amp;nbsp; Additionally the UI method is clunky so wish to automate that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 07:35:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6397418#M109236</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2016-06-22T07:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6398478#M109237</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Area is not currently supported as a &lt;STRONG&gt;Base Unit&lt;/STRONG&gt; for &lt;STRONG&gt;BOM&lt;/STRONG&gt;. This has been logged on the &lt;STRONG&gt;IdeaStation&lt;/STRONG&gt; - even though it has been accepted it could be useful to vote on it so that it will get implemented sooner: &lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/area-units-in-base-quantity/idi-p/4387795" target="_self"&gt;http://forums.autodesk.com/t5/inventor-ideas/area-units-in-base-quantity/idi-p/4387795&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see the supported units in the dialog:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/249726i3BC209887B493E70/image-size/large?v=v2&amp;amp;px=-1" border="0" alt="SupportedBaseUnit.png" title="SupportedBaseUnit.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I said you can work around it but not sure if this will cause issues down the line &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1) create a parameter with a supported unit&lt;/P&gt;
&lt;P&gt;2) set the BOM base unit to be based on this parameter&lt;/P&gt;
&lt;P&gt;3) now change the unit of the parameter to an area type &amp;gt;&amp;gt; the BOM base unit will be the same&lt;BR /&gt;This thread seems to talk about it too:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/square-feet-as-a-unit-of-measure-for-bom/idi-p/5484590" target="_self"&gt;https://forums.autodesk.com/t5/inventor-ideas/square-feet-as-a-unit-of-measure-for-bom/idi-p/5484590&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: in general, the API is there to automate things - if something is not possible in the product itself (in the UI) then it's not possible through the API either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 16:42:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6398478#M109237</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-06-22T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6399472#M109238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bit of a workaround method that I have implemented with a fair amount of success. The method goes as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your sheet metal template, create a user parameter called "Plate" and set&amp;nbsp;the unit/type to "m"; I recommend setting the precision to 0.123 units. Then create a &amp;nbsp;rule (I call it "Plate Area") with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;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&gt;Custom&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Area&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt; m²&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;

&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will also need to create 2 custom iProperties: one called "Area" and the other called "Plate Area".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't worry about setting the BOM base qty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now for the drawing.&lt;/P&gt;&lt;P&gt;In the drawing template, go to Styles &amp;amp; Standards Editor &amp;gt; Parts List. Right-click &amp;gt; Format column on your Unit Qty column, click the Substitution tab and enable Value Substitution. Select "Plate Area" from the drop down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should now see the square metre value of your sheet metal components appear in the parts list.&lt;/P&gt;&lt;P&gt;The only problem that I have so far encountered using this method is that for section components (RHS, flat bar etc.), the units string must be specified in that components template, as applying units formatting to the parts list itself will not allow&amp;nbsp;the square metre value&amp;nbsp;to work. Shouldn't be an issue if your Content Centre files are set up properly, but otherwise you may get stuck with a whole bunch of trailing zeroes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 02:55:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6399472#M109238</guid>
      <dc:creator>Scotty87</dc:creator>
      <dc:date>2016-06-23T02:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: SetBaseQuantity to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6399931#M109239</link>
      <description>&lt;P&gt;I like your idea Scott and I will look further but I still don't think it solves my problem.&amp;nbsp; We need the Base Qty to match the PDM uom.&amp;nbsp; ie to get boms to work correctly in Vault we need the Base Qty in the file to match the Vault Item uom.&amp;nbsp; If anybody knows anyway at all to solve this problem then please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have already added m^2, in^2,&amp;nbsp;ft^2 as units in the Vault Settings as Inventor does not have the native 'Square Meter' units that Vault has.&amp;nbsp; For those using Vault Pro, how are you calculating area direct from CAD as we ultimately need to export the QTY field?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 10:40:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/setbasequantity-to-m-2/m-p/6399931#M109239</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2016-06-23T10:40:32Z</dc:date>
    </item>
  </channel>
</rss>

