Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Walliguy
in reply to: ndillner343SKL

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