Message 1 of 10
iLogic to Update Styles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I have been using this code to update styles to match the my client's standard. I found it on the forums, but cannot seem to locate the original poster:
Imports System.Windows.Forms
'Updates Drawing Styles To match active standard
Dim oCM As CommandManager = ThisApplication.CommandManager
Dim oCD As ControlDefinitions = oCM.ControlDefinitions
Dim oUpdateStyles As ControlDefinition = oCD.Item("UpdateStylesCmd")
oUpdateStyles.Execute2(False)
SendKeys.SendWait("Y ")
It worked seamlessly for parts, assemblies and drawings, at least until I upgraded to 2027. I have migrated all of my styles using the Style Library Manager 2027.
I ran the code on a migrated 2026 idw but noticed that the table line colors which had previously been set to white...
...are being reset:
Anyone have any idea why this is happening?
TIA