Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
felix.cortes5K3Y2
699 Views, 3 Replies

iLogic to Change Drawing's Part List Style

Hi Forum,

 

I have two different Part List Styles that I use on my drawings and I am trying to write a code to switch in between them. Lets say I have a Part List Style named as "Style One" and "Style Two". Here's what I got so far:

 

Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oPartsList As PartsList = oDrawDoc.ActiveSheet.PartsLists(1)
oPartsList.Style() = "Style Two"

 

This code doesn't seem to work. Anyone have an idea?

 

Thanks,

- Felix Cortes