<?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 SEPARATE PART NUMBER FOR MULTIBODY SOLIDS IN .IPT FILE in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6204243#M62269</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of our customer asked, is there any way to assign different part numbers to various multibody solids in a single .ipt file?&lt;/P&gt;&lt;P&gt;I suggested customer to push multibody solids to assembly environment, but customer do not want this option, he need to assign part numbers in .ipt file itself?&lt;/P&gt;&lt;P&gt;For me, this query sounds strange and most likely not possible.&lt;/P&gt;&lt;P&gt;If it is there anyway to assign part numbers to multibody solids using i-Logic or through API codes, i am very much eager to look forward on same.&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 10:22:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-08T10:22:31Z</dc:date>
    <item>
      <title>SEPARATE PART NUMBER FOR MULTIBODY SOLIDS IN .IPT FILE</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6204243#M62269</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of our customer asked, is there any way to assign different part numbers to various multibody solids in a single .ipt file?&lt;/P&gt;&lt;P&gt;I suggested customer to push multibody solids to assembly environment, but customer do not want this option, he need to assign part numbers in .ipt file itself?&lt;/P&gt;&lt;P&gt;For me, this query sounds strange and most likely not possible.&lt;/P&gt;&lt;P&gt;If it is there anyway to assign part numbers to multibody solids using i-Logic or through API codes, i am very much eager to look forward on same.&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 10:22:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6204243#M62269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: SEPARATE PART NUMBER FOR MULTIBODY SOLIDS IN .IPT FILE</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6204429#M62274</link>
      <description>&lt;P&gt;You could probably assign them in the multibody environment using assets, through iLogic. However, the only way to fetch them would be using more iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, it's likely just easier and cheaper for them to streamline the process so they can use inventor as it is intended.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 13:03:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6204429#M62274</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2016-03-08T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: SEPARATE PART NUMBER FOR MULTIBODY SOLIDS IN .IPT FILE</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6207962#M62302</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do your customer want to create a drawing later using the Multibody Solid part?&lt;/P&gt;&lt;P&gt;Assign partnumber to the solidbody name?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 06:38:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6207962#M62302</guid>
      <dc:creator>Jesper_S</dc:creator>
      <dc:date>2016-03-10T06:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: SEPARATE PART NUMBER FOR MULTIBODY SOLIDS IN .IPT FILE</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6271603#M63210</link>
      <description>&lt;P&gt;You could use ilogic routine to create a text parameter for each body, with a linking naming convention (i.e NameOfBody = PartNumber and NameOfBodyParameter = NameOfBody.&amp;nbsp; We do something similar when working in the MB Parts for weldments, but we use this to push meta data out to the individual parts when we make components, and link&amp;nbsp;geometry parameters like&amp;nbsp;plate thickness from the MB to its derived component and so forth to Stock names and part numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem of course is those parameters are not visible to the BOM, unless you actually go and eventually make the parts prior to doing a drawing.&amp;nbsp; So you need further scripting to drill into the part and get the faux part numbers and document them in some way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess the short answer is totally doable, but only really useful, if you ultimately get the data back out again by either more scripting or doing the thing that others seem to be suggesting, which is use make components command to push all the bodies to an assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is of some help.&lt;/P&gt;&lt;P&gt;Below is pasted code, (somewhat in progress) for assigning part numbers and descriptions to bodies.&amp;nbsp; The next step, (still working on) is sending that data to the eventually created parts.&amp;nbsp; It is, I will warn you, shamelessly cribbed from many other sources and cobbled together for my purposes. It is also under commented at the moment and not yet finished.&amp;nbsp; When it is better shaped up I will repost if anyone finds it remotely useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'CODE BEGINS&lt;/P&gt;&lt;P&gt;Dim oDoc as Document&lt;BR /&gt;Dim oPartDoc as PartDocument&lt;BR /&gt;Dim oPartCompDef as PartComponentDefinition&lt;BR /&gt;Dim oParams as Parameters&lt;BR /&gt;Dim oUserParams As UserParameters&lt;BR /&gt;Dim oBody as SurfaceBody&lt;BR /&gt;Dim strBName as String&lt;BR /&gt;Dim strSubID as String&lt;BR /&gt;Dim strSubSubID as String&lt;BR /&gt;Dim strPartID as String&lt;BR /&gt;Dim oSet as HighlightSet&lt;BR /&gt;Dim oSelected as ObjectCollection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Dim oParameter as Parameters&lt;/P&gt;&lt;P&gt;oDoc = ThisDoc.Document&lt;BR /&gt;oRedColor = oDoc.Assets("Red")&lt;BR /&gt;oPlateColor = oDoc.Assets("Plate")&lt;BR /&gt;'oUserParams=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters&lt;BR /&gt;'check document is a part&lt;BR /&gt;'if not an assembly go to end of rule&lt;BR /&gt;If oDoc.DocumentType = kPartDocumentObject Then&lt;BR /&gt;&amp;nbsp;oPartDoc = oDoc&lt;BR /&gt;&amp;nbsp;oPartCompDef = oPartDoc.ComponentDefinition&lt;BR /&gt;&amp;nbsp;oParams=oPartCompDef.Parameters&lt;BR /&gt;&amp;nbsp;oSet = oPartDoc.CreateHighlightSet&lt;BR /&gt;&amp;nbsp;oUserParams=oParams.UserParameters&lt;BR /&gt;&amp;nbsp;strSubID = iProperties.Value("Custom", "SubID")&lt;BR /&gt;&amp;nbsp;strSubSubID = iProperties.Value("Custom", "SubSubID")&amp;nbsp;&lt;BR /&gt;&amp;nbsp;strPartID = iProperties.Value("Custom", "PartID")&lt;BR /&gt;&amp;nbsp;strID = strSubID &amp;amp; "-" &amp;amp; strSubSubID &amp;amp; "-" &amp;amp; strPartID&lt;BR /&gt;&amp;nbsp;'msgBox (strID)&lt;BR /&gt;&amp;nbsp;'oSet = Nothing&lt;BR /&gt;&amp;nbsp;For Each oBody In oPartDoc.ComponentDefinition.SurfaceBodies&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'oSet = Nothing&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'oSet.AddItem (oBody)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;oBody.Appearance = oRedColor&lt;BR /&gt;&amp;nbsp;&amp;nbsp;strBName = oBody.Name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;intNameL = Len(strBName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;strBPart = Right(strBName,intNameL-1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;strPartName = strSubID &amp;amp; "-" &amp;amp; strSubSubID &amp;amp; "-" &amp;amp; strBPart&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'msgBox (strPartName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;strPName = strBName &amp;amp; "Description"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Try&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;paramcheck = oUserParams.Item (strPName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;strCurrent = paramcheck.Value&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;strDescription = InputBox ("Change " &amp;amp; strBName &amp;amp; " Description?" &amp;amp; VbCrLf &amp;amp; "CURRENTLY:" &amp;amp; VbCrLf &amp;amp; strCurrent &amp;amp; VbCrLf &amp;amp; "Leave blank to keep current.")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;If Not strDescription = "" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;paramcheck.Value = strDescription&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;End if&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'msgBox (strCurrent)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Catch&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;strDescription = InputBox (" Enter " &amp;amp; strBName &amp;amp; " Description")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;strDescription = iProperties.Value("Project","Description") &amp;amp; ", " &amp;amp; strDescription&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;oParameter= oUserParams.AddByValue(strPName, strDescription,UnitsTypeEnum.kTextUnits)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;End Try&lt;BR /&gt;&amp;nbsp;&amp;nbsp;oBody.Appearance = oPlateColor&lt;BR /&gt;&amp;nbsp;Next&lt;/P&gt;&lt;P&gt;'CODE ENDS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/separate-part-number-for-multibody-solids-in-ipt-file/m-p/6271603#M63210</guid>
      <dc:creator>mgigliotti</dc:creator>
      <dc:date>2016-04-14T18:59:07Z</dc:date>
    </item>
  </channel>
</rss>

