<?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: Check if mass is filled on drawing. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801152#M149780</link>
    <description>&lt;P&gt;Thank you for your comment. Unfortunately, the code is getting a lot of errors and I'm not really sure how to solve them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ymvdbosch_1-1678105241482.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1185010i560DA326691FA537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ymvdbosch_1-1678105241482.png" alt="ymvdbosch_1-1678105241482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 12:20:45 GMT</pubDate>
    <dc:creator>FeelGoodGirl</dc:creator>
    <dc:date>2023-03-06T12:20:45Z</dc:date>
    <item>
      <title>Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11800740#M149767</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't ask me how, but I have colleagues who create a PDF where the mass is not updated (N/A). Now I have made a button to create a PDF. In this code I want to add that a check is first done whether the mass is filled and not N/A. Unfortunately I can't figure out how to do this.&amp;nbsp;The mass on the drawing is filled by the property "Physical Properties - Model -&amp;gt; MASS".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully somebody can help me. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 09:09:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11800740#M149767</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2023-03-06T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11800861#M149769</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Enable the "update physical properties on save".&lt;BR /&gt;Now, you will be sure that the parts and assemblies update mass after a modification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccarreiras_0-1678096997848.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1184951i42A1A85B3E9BC4DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ccarreiras_0-1678096997848.png" alt="ccarreiras_0-1678096997848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 10:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11800861#M149769</guid>
      <dc:creator>CCarreiras</dc:creator>
      <dc:date>2023-03-06T10:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11800944#M149772</link>
      <description>&lt;P&gt;That is on, but then you have to save the file. So I have colleagues who modify the file and then create the pdf.&amp;nbsp;That's why you want to build in the check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;People are difficult. Doesn't matter how many times you tell them not to do that. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7B4B80143EBEB4F250CEEC82342F6CA1/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 10:52:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11800944#M149772</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2023-03-06T10:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801029#M149774</link>
      <description>&lt;P&gt;Dim ModelDef As Inventor.ComponentDefinition = Nothing&lt;BR /&gt;Dim oDoc As DrawingDocument = oApp.ActiveDocument&lt;BR /&gt;Dim ModelDoc As Document = Nothing&lt;BR /&gt;Try&lt;BR /&gt;ModelDoc = oDoc.ReferencedDocuments.Item(1)&lt;BR /&gt;Catch&lt;BR /&gt;End Try&lt;BR /&gt;If ModelDoc IsNot Nothing Then&lt;BR /&gt;If ModelDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then&lt;BR /&gt;ModelDef = CType(ModelDoc, Inventor.AssemblyDocument).ComponentDefinition&lt;BR /&gt;ElseIf ModelDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then&lt;BR /&gt;ModelDef = CType(ModelDoc, Inventor.PartDocument).ComponentDefinition&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ModelDoc IsNot Nothing Then&lt;BR /&gt;ModelDoc.Update()&lt;BR /&gt;Dim strMass As Double = ModelDef.MassProperties.Mass&lt;BR /&gt;oDoc.Update()&lt;BR /&gt;End If&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 11:34:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801029#M149774</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2023-03-06T11:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801152#M149780</link>
      <description>&lt;P&gt;Thank you for your comment. Unfortunately, the code is getting a lot of errors and I'm not really sure how to solve them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ymvdbosch_1-1678105241482.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1185010i560DA326691FA537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ymvdbosch_1-1678105241482.png" alt="ymvdbosch_1-1678105241482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 12:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801152#M149780</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2023-03-06T12:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801316#M149789</link>
      <description>&lt;P&gt;This code should work fine.&lt;/P&gt;&lt;P&gt;Only thing you have to change is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Perhaps you can show the rule you are running?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 13:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11801316#M149789</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2023-03-06T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11803515#M149810</link>
      <description>&lt;P&gt;That was indeed the problem. Now it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly for mass updating before creating a PDF. Only I am actually more looking for the possibility to give feedback if the drawing still says N/A. Do you happen to know if this is a possibility? I try to teach them instead of promoting a wrong way of working&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 08:15:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11803515#M149810</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2023-03-07T08:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11803718#M149813</link>
      <description>&lt;P&gt;I'm not sure how to get a warning message if mass = N/A&lt;/P&gt;&lt;P&gt;As I remember it: as soon as you call the value, it updates.&lt;/P&gt;&lt;P&gt;Whatever going on in the background of Inventor to make it: N/A&lt;/P&gt;&lt;P&gt;I don't think you can access that as a 3th party. But perhaps I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you can call the text in the textbox, but then I need to know what textbox, and if it is text in the title block or in a sketched symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest: why bother&lt;/P&gt;&lt;P&gt;Weight N/A was my first frustration to get into automating Inventor 12 years ago.&lt;/P&gt;&lt;P&gt;If you batch 50 drawings, no matter how punctual you work, there will still be a few with weight N/A.&lt;/P&gt;&lt;P&gt;That frustrated me so I automated the whole process with various checks on balloons, weight, partslist etc.&lt;/P&gt;&lt;P&gt;Ofcourse some people manage to do it wrong every time, but why stress about it if you can easily make it foolproof and automated.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 12:37:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11803718#M149813</guid>
      <dc:creator>Cadkunde.nl</dc:creator>
      <dc:date>2023-03-07T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check if mass is filled on drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11836001#M150356</link>
      <description>&lt;P&gt;That's a good point. I'm going to add this. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 10:45:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-mass-is-filled-on-drawing/m-p/11836001#M150356</guid>
      <dc:creator>FeelGoodGirl</dc:creator>
      <dc:date>2023-03-21T10:45:13Z</dc:date>
    </item>
  </channel>
</rss>

