Original Tip Date: Jun. 17, 2003
AskInga Tip #292
Oto, no you can't delete one supplied by a DGNLib. However, a local copy is made in the DGN and I need to remove that copy as it is in conflict with the DGNLib. I got an error indicating that it's locked. I'm not sure why the local style is locked, but assume it's because data is relying on it.
Do you know of a way to unlock the style in MicroStation SS3 using VBA?
My original goal is to bring text back to compliance with the DGNLib styles. On occasion, deleting or updating the local style does not work because it is locked.
My VBA workflow is to create a temp set of text styles in my DGNLib. I then programmatically move the text to those styles, then delete the primary styles. This typically "refreshes" the style list from the DGNLib, but sometimes gets caught on a locked style. My code then puts the elements back into the primary styles.
Any help would be appreciated!