<?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: how to remove cable and harness authoring from part? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6640941#M67551</link>
    <description>&lt;P&gt;Hi Limin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the same code in Inventor 2017 for removing the authoring for Cable and Harness and it seems to be working at my end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code that I used to test at my end. This code is used to clear a value of a property&amp;nbsp;that is set while authoring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub RemoveAuthoringInfo()

 Dim oProperty As Property

 Set oProperty = ThisApplication.ActiveDocument.PropertySets.Item("32853F0F-3444-11d1-9E93-0060B03C1CA6").ItemByPropId(56)
   
 oProperty.Value = ""

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If it is still not working at your end, could you let me know what version of Inventor you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sajith&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 09:59:49 GMT</pubDate>
    <dc:creator>sajith_subramanian</dc:creator>
    <dc:date>2016-10-24T09:59:49Z</dc:date>
    <item>
      <title>how to remove cable and harness authoring from part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6636421#M67526</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are in some cable and harness project. We have created connector parts and authored them (use command in "manage"---"author"---"connector") for cable and harness. This authoring will show an arrow and help in routing a wire. But later on, we decided not to use the authoring and want to remove it from the part.&amp;nbsp; How can I do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read through the help file in: &lt;A href="https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Remove-Tube-and-Pipe-Authoring-from-part.html" target="_blank"&gt;https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Remove-Tube-and-Pipe-Authoring-from-part.html&lt;/A&gt;. But looks like it only works for tube and pipe, NOT in cable and harness&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help!&amp;nbsp; thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Limin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 03:00:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6636421#M67526</guid>
      <dc:creator>liminma8458</dc:creator>
      <dc:date>2016-10-21T03:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove cable and harness authoring from part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6640941#M67551</link>
      <description>&lt;P&gt;Hi Limin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the same code in Inventor 2017 for removing the authoring for Cable and Harness and it seems to be working at my end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code that I used to test at my end. This code is used to clear a value of a property&amp;nbsp;that is set while authoring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub RemoveAuthoringInfo()

 Dim oProperty As Property

 Set oProperty = ThisApplication.ActiveDocument.PropertySets.Item("32853F0F-3444-11d1-9E93-0060B03C1CA6").ItemByPropId(56)
   
 oProperty.Value = ""

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If it is still not working at your end, could you let me know what version of Inventor you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sajith&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 09:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6640941#M67551</guid>
      <dc:creator>sajith_subramanian</dc:creator>
      <dc:date>2016-10-24T09:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove cable and harness authoring from part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6642814#M67563</link>
      <description>&lt;P&gt;Hi, &lt;FONT size="-1"&gt;Sajith&lt;/FONT&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see attached model (a part shrinkwraped from an assembly) which I already assigned authoring. But I can not remove it using the code. When I create wire, the arrow is still there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Inventor professional 2016, windows 7 pro 64 bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Limin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 23:48:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6642814#M67563</guid>
      <dc:creator>liminma8458</dc:creator>
      <dc:date>2016-10-24T23:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove cable and harness authoring from part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6649056#M67607</link>
      <description>&lt;P&gt;Hi Limin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked for the authoring property in your part. It seems to be already removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However,&amp;nbsp;there is anadditional info in the attribute set of part’s component definition called&amp;nbsp;"com.autodesk.inventor.HarnessProperties which you can try to delete.&lt;/P&gt;
&lt;P&gt;Please execute the code below in a vba editor for this&lt;/P&gt;
&lt;PRE&gt;Sub main()
Dim Doc As PartDocument
Set Doc = ThisApplication.ActiveDocument

Dim attrset As AttributeSet
Set attrset = Doc.ComponentDefinition.AttributeSets.Item("com.autodesk.inventor.HarnessProperties")
 
attrset.Delete

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sajith&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 10:16:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6649056#M67607</guid>
      <dc:creator>sajith_subramanian</dc:creator>
      <dc:date>2016-10-27T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove cable and harness authoring from part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6649723#M67610</link>
      <description>&lt;P&gt;Hi, Sajith,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, if you only checked for the authoring property in your part which I sent in last reply, the property of "ItemByPropId(56)" has been removed. But if you use the part in cable and harness to create a wire, you will see the arrow (resulted from the authoring) still there. Please see page 1 in attached file. How to remove this arrow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I use a combination of code as you suggested (shown in page 2) to try to delete the authoring, it causes serious error for Inventor and crash it (shown in page 2 and 3 of the attached file).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Limin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 13:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6649723#M67610</guid>
      <dc:creator>liminma8458</dc:creator>
      <dc:date>2016-10-27T13:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove cable and harness authoring from part?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6671347#M67760</link>
      <description>&lt;P&gt;Hi Limin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did the following steps and it seemed to work for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;New part and Author&lt;/LI&gt;
&lt;LI&gt;Delete iProperty / attribute through VBA&lt;/LI&gt;
&lt;LI&gt;Save Part&lt;/LI&gt;
&lt;LI&gt;Close Part&lt;/LI&gt;
&lt;LI&gt;Place this part to Assembly&lt;/LI&gt;
&lt;LI&gt;Create Wire&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;I was not able to test it on the part you have provided, because the references are not included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try out the&amp;nbsp;above steps on your part and let me know if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sajith&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:04:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-remove-cable-and-harness-authoring-from-part/m-p/6671347#M67760</guid>
      <dc:creator>sajith_subramanian</dc:creator>
      <dc:date>2016-11-07T11:04:18Z</dc:date>
    </item>
  </channel>
</rss>

