Message 1 of 8

Not applicable
06-27-2016
02:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need iLogic code to change the Parts List Style. Here's what I'm starting with:
Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = oDrawDoc.ActiveSheet Dim oPartslist As PartsList oPartslist = oSheet.PartsLists(1) oPartsList.Style = oDrawDoc.StylesManager.PartsListStyles.Item("PartsList(MyStyleName)")
But it's not working. I get the error message, "The Parameter is Incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Any ideas?
Solved! Go to Solution.