<?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: need code example in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905334#M155367</link>
    <description>Are you afraid of editing code?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
T. Ham&lt;BR /&gt;
CAD Automation &amp;amp; Systems Administrator&lt;BR /&gt;
CDS Engineering BV&lt;BR /&gt;
&lt;BR /&gt;
HP xw4300 Workstation&lt;BR /&gt;
Dual Pentium XEON 3.6 Ghz&lt;BR /&gt;
4 GB SDRAM&lt;BR /&gt;
NVIDIA QUADRO FX 3450/4000 SDI (Driver = 8.4.2.6)&lt;BR /&gt;
250 GB SEAGATE SATA Hard Disc&lt;BR /&gt;
3Com Gigabit NIC&lt;BR /&gt;
&lt;BR /&gt;
Windows XP Professional SP2&lt;BR /&gt;
Autodesk Inventor Series 10 SP3a&lt;BR /&gt;
--</description>
    <pubDate>Tue, 06 Mar 2007 08:23:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-03-06T08:23:09Z</dc:date>
    <item>
      <title>need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905330#M155363</link>
      <description>I need to create a macro that fires on save and removes all "hard typing" in the parts list. I haven't used vba for years and am very rusty. Can anyone get me started with code examples?</description>
      <pubDate>Fri, 02 Mar 2007 15:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905330#M155363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-02T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905331#M155364</link>
      <description>&amp;gt;removes all "hard typing" in the parts list&lt;BR /&gt;
&lt;BR /&gt;
do you mean "Static" values (the blue values) in a drawing parts list?  If so, I couldn't find anything in the VBA API to control whether a PartsListCell is static.</description>
      <pubDate>Fri, 02 Mar 2007 16:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905331#M155364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-02T16:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905332#M155365</link>
      <description>Maybe this is what he is looking for???&lt;BR /&gt;
&lt;BR /&gt;
Sub StaticValue()&lt;BR /&gt;
&lt;BR /&gt;
Dim oDrawDoc As DrawingDocument&lt;BR /&gt;
Dim oSheet As Sheet&lt;BR /&gt;
Dim oPL As PartsList&lt;BR /&gt;
Dim oRow As PartsListRow&lt;BR /&gt;
Dim i As Integer&lt;BR /&gt;
&lt;BR /&gt;
Set oDrawDoc = ThisApplication.ActiveDocument&lt;BR /&gt;
Set oSheet = oDrawDoc.ActiveSheet&lt;BR /&gt;
Set oPL = oSheet.PartsLists.Item(1)&lt;BR /&gt;
For Each oRow In oPL.PartsListRows&lt;BR /&gt;
    For i = 1 To oRow.Count&lt;BR /&gt;
        If oRow.Item(i).Static = True Then&lt;BR /&gt;
            MsgBox "Static value found! (" &amp;amp; oRow.Item(i).Value &amp;amp; ")", &lt;BR /&gt;
vbInformation&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next i&lt;BR /&gt;
Next oRow&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
T. Ham&lt;BR /&gt;
CAD Automation &amp;amp; Systems Administrator&lt;BR /&gt;
CDS Engineering BV&lt;BR /&gt;
&lt;BR /&gt;
HP xw4300 Workstation&lt;BR /&gt;
Dual Pentium XEON 3.6 Ghz&lt;BR /&gt;
4 GB SDRAM&lt;BR /&gt;
NVIDIA QUADRO FX 3450/4000 SDI (Driver = 8.4.2.6)&lt;BR /&gt;
250 GB SEAGATE SATA Hard Disc&lt;BR /&gt;
3Com Gigabit NIC&lt;BR /&gt;
&lt;BR /&gt;
Windows XP Professional SP2&lt;BR /&gt;
Autodesk Inventor Series 10 SP3a&lt;BR /&gt;
--</description>
      <pubDate>Mon, 05 Mar 2007 10:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905332#M155365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-05T10:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905333#M155366</link>
      <description>This is fine for identifying static values, but what I need is  to revert back to the value from the part model using code.</description>
      <pubDate>Mon, 05 Mar 2007 17:25:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905333#M155366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-05T17:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905334#M155367</link>
      <description>Are you afraid of editing code?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
T. Ham&lt;BR /&gt;
CAD Automation &amp;amp; Systems Administrator&lt;BR /&gt;
CDS Engineering BV&lt;BR /&gt;
&lt;BR /&gt;
HP xw4300 Workstation&lt;BR /&gt;
Dual Pentium XEON 3.6 Ghz&lt;BR /&gt;
4 GB SDRAM&lt;BR /&gt;
NVIDIA QUADRO FX 3450/4000 SDI (Driver = 8.4.2.6)&lt;BR /&gt;
250 GB SEAGATE SATA Hard Disc&lt;BR /&gt;
3Com Gigabit NIC&lt;BR /&gt;
&lt;BR /&gt;
Windows XP Professional SP2&lt;BR /&gt;
Autodesk Inventor Series 10 SP3a&lt;BR /&gt;
--</description>
      <pubDate>Tue, 06 Mar 2007 08:23:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905334#M155367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-06T08:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905335#M155368</link>
      <description />
      <pubDate>Tue, 06 Mar 2007 08:26:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905335#M155368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-06T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905336#M155369</link>
      <description>No, just ignorant. I was trying this:&lt;BR /&gt;
&lt;BR /&gt;
Dim oCell as PartsListCell&lt;BR /&gt;
Set oCell.Static = True (this got me an "Improper use of property" message).&lt;BR /&gt;
&lt;BR /&gt;
My apologies for trying to learn from others who might know better.</description>
      <pubDate>Tue, 06 Mar 2007 18:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905336#M155369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-06T18:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905337#M155370</link>
      <description>you don't Set a property.&lt;BR /&gt;
&lt;BR /&gt;
Set and Let have important (different) meanings in VBA.  Use Set for objects, use Let for properties.&lt;BR /&gt;
&lt;BR /&gt;
Change the code to:&lt;BR /&gt;
&lt;BR /&gt;
Let oCell.Static = True</description>
      <pubDate>Tue, 06 Mar 2007 19:15:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905337#M155370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-06T19:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: need code example</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905338#M155371</link>
      <description>Thanks. Thats a great explanation!</description>
      <pubDate>Tue, 06 Mar 2007 21:20:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/need-code-example/m-p/1905338#M155371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-03-06T21:20:10Z</dc:date>
    </item>
  </channel>
</rss>

