Message 1 of 4
Update Styles with VB6

Not applicable
06-15-2006
12:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
We use INV 11 Series + SP1 and Vault 5
I want to make a program which loops through all of our idw's and update the drawing styles with the global one
This the code I use but it doesn't seem to work.
Whats wrong?
Regards,
Geert van den Brand
Code:
Dim oDrawDoc As Inventor.DrawingDocument
Set oDrawDoc = oINVDoc
Dim oStylesmanager As Inventor.DrawingStylesManager
Set oStylesmanager = oDrawDoc.StylesManager
Dim oActiveStyle As Inventor.DrawingStandardStyle
Set oActiveStyle = oStylesmanager.ActiveStandardStyle
oActiveStyle.UpdateFromGlobal
Dim oObjectDefault As Inventor.ObjectDefaultsStyle
Set oObjectDefault = oActiveStyle.ActiveObjectDefaults
oObjectDefault.UpdateFromGlobal
We use INV 11 Series + SP1 and Vault 5
I want to make a program which loops through all of our idw's and update the drawing styles with the global one
This the code I use but it doesn't seem to work.
Whats wrong?
Regards,
Geert van den Brand
Code:
Dim oDrawDoc As Inventor.DrawingDocument
Set oDrawDoc = oINVDoc
Dim oStylesmanager As Inventor.DrawingStylesManager
Set oStylesmanager = oDrawDoc.StylesManager
Dim oActiveStyle As Inventor.DrawingStandardStyle
Set oActiveStyle = oStylesmanager.ActiveStandardStyle
oActiveStyle.UpdateFromGlobal
Dim oObjectDefault As Inventor.ObjectDefaultsStyle
Set oObjectDefault = oActiveStyle.ActiveObjectDefaults
oObjectDefault.UpdateFromGlobal