Hello,
I cannot purge a textstyle out of my drawing. When I run purge nothing is available.
However if I select the style from the style dialog I am able to select delete and delete the style.
When I use the method on the style (vlax-invoke-method style 'Delete). AutoCAD states:
Automation Error. Object is referenced by other object(s)
The style is defenatly not in use but may have been used in the past.
Any ideas
Thanks
David
Solved! Go to Solution.
Solved by dbroad. Go to Solution.
Somehow i can't duplicate that condition. Deleting the TextStyle via Style dialog box and thru vla produce the same result. The only time i wasnt able to delete the Text style is when it's currently is use thru the following:
Dimstyle
Part of a block
When set as Current
How's about posting that file in here so we can have a look/see
Hello,
My apologies, it turns out I cannot delete the font with the delete option in the styles until I delete the table on the attached drawing.
I am trying to remove the font ISOCP.
There seems to be something stuck in the table, there is nothing in the table style, no cell override or anything. However if I delete or explode the table I am then able to delete the style.
I'd really like to find out why as not being able to delete or purge the font means that my script to change fonts keeps running unnecessarily on this drawing.
Kind Regards
David
Thanks very much, nice program, unfortunately it didn't fix the style. It is stuck inside the table. But it seems no amount of persuading releases the style.
David
Something related to table with that style , because if you erase the table you can delete the Text Style with
this simple code .
(vlax-for style (vla-get-textstyles (vla-get-ActiveDocument (vlax-get-acad-object))) (if (eq (vla-get-name style) "ISOCP") (vl-catch-all-apply 'vla-delete (list style)) ) )
Drock,
Thanks for posting the problem so well. It is quite possible that you found a bug worth reporting at autodesk.com/submitbug.
To fix the problem in this case, select all the cells in the table and then select the text style "standard". Then purge the style and then reselect the table and return the cell text styles to what you want. This should not be necessary since I looked at every cell in your table and there were no references to the style you want to purge. But it works in this case and probably in the drawing where there is actually something worth saving.
With properties change the text style of table cells to Standard (select the cells), then change to Arialn again.
Thanks everyone, yes it appears to be a bit of a bug, but with your helpful solutions I am able to now purge the redundant style.
Kind Regards
David