Message 1 of 6
Replace styles in Drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have some styles I will like to replace in some drawings
but how? I cant find any function to do this.
Do I missing some thing ?
Dim oIDWStyles As Inventor.DrawingStylesManager
Set oIDWStyles = oDrawDoc.StylesManager
Dim oldstyle As style
Dim Newstyle As style
For Each oldstyle In oIDWStyles.Styles
If oldstyle.Name = "Old style" Then
' Debug.Print oldstyle.Name & " : " & oldstyle.InternalName
For Each Newstyle In oIDWStyles.Styles
If Newstyle.Name = "New style" Then
'Debug.Print Newstyle.Name & " : " & Newstyle.InternalName
End If
Next
'How to replace oldstyle with newstyle
'oldstyle = Newstyle
End If
Next
René J