Message 1 of 2
Change general styles in drawings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Fans and Friends
I have just a question about chaning the general styles.
I am using a template and there are some adjustment saved in the styles.
so during a ilogic routine i want to update other drawings by my choice
current i am using this rule:
' Updaten der Stile Dim oIDW As DrawingDocument oIDW = ThisApplication.ActiveDocument Dim oIDWStyles As Inventor.DrawingStylesManager oIDWStyles = oIDW.StylesManager Dim i As Integer 'JW Loop durch unterstile entfernt da durch Loop unten die Aktualisierung aller Stile abgedeckt ist For i = 1 To oIDWStyles.Styles.Count 'Debug.Print "Styles - " + oIDWStyles.Styles.Item(i).Name If oIDWStyles.Styles.Item(i).UpToDate = False Then oIDWStyles.Styles.Item(i).UpdateFromGlobal End If Next oIDW.Update oIDW.Save Next End If
but it doesnt work proper because there are still some styles in the origin mode.
whats wrong with this rule??
thx for your support!!
Thomas