04-03-2024
01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-03-2024
01:27 PM
Hey,
Not sure if this helps, the C# code below is what we have used to update styles.
/// <summary>
/// Updates any outdated style to the global styles.
/// </summary>
/// <param name="drawingDocument">Docuemtn to be updtated</param>
private void UpdateStyles(DrawingDocument drawingDocument)
{
Styles styles = drawingDocument.StylesManager.Styles;
foreach (Inventor.Style style in styles)
{
if (!style.UpToDate)
style.UpdateFromGlobal();
}
}
Chris