- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
how to remove cable and harness authoring from part?
Hi,
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. How can I do it?
I read through the help file in: https://knowledge.autodesk.com/support/inventor-products/troubleshooting/caas/sfdcarticles/sfdcartic.... But looks like it only works for tube and pipe, NOT in cable and harness
Please help! thank you very much!
Limin
Limin
Inventor pro 2023 64 bit update 2.1; Windows 10 pro 64 bit version 21H2; Office 2013 32 bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Limin,
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.
Below is the code that I used to test at my end. This code is used to clear a value of a property that is set while authoring.
Sub RemoveAuthoringInfo()
Dim oProperty As Property
Set oProperty = ThisApplication.ActiveDocument.PropertySets.Item("32853F0F-3444-11d1-9E93-0060B03C1CA6").ItemByPropId(56)
oProperty.Value = ""
End Sub
If it is still not working at your end, could you let me know what version of Inventor you are using?
Regards,
Sajith

Sajith Subramanian
Autodesk Developer Network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, Sajith,
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.
I am using Inventor professional 2016, windows 7 pro 64 bit.
Thanks
Limin
Limin
Inventor pro 2023 64 bit update 2.1; Windows 10 pro 64 bit version 21H2; Office 2013 32 bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Limin,
I checked for the authoring property in your part. It seems to be already removed.
However, there is anadditional info in the attribute set of part’s component definition called "com.autodesk.inventor.HarnessProperties which you can try to delete.
Please execute the code below in a vba editor for this
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
Please let me know if this helps.
Regards,
Sajith

Sajith Subramanian
Autodesk Developer Network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, Sajith,
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?
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).
Any suggestion?
Thanks
Limin
Limin
Inventor pro 2023 64 bit update 2.1; Windows 10 pro 64 bit version 21H2; Office 2013 32 bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Limin,
I did the following steps and it seemed to work for me.
- New part and Author
- Delete iProperty / attribute through VBA
- Save Part
- Close Part
- Place this part to Assembly
- Create Wire
I was not able to test it on the part you have provided, because the references are not included.
Please try out the above steps on your part and let me know if it works.
Regards,
Sajith

Sajith Subramanian
Autodesk Developer Network