Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unknown Textstyles appearing in new file

14 REPLIES 14
SOLVED
Reply
Message 1 of 15
fythosx
14581 Views, 14 Replies

unknown Textstyles appearing in new file

I hope i can clear this up soon,

 

while working on a new file, which only has our 4 standard textstyles, something happened at some point during the work period where multiple textstyles named "AUDIT_1_12030....." and counting up appeared. over 40 of them.

 

they are all somehow embedded within the each object in the file, even lines, which confuses me. Noweven if i wanted to just copy most of the project excluding blocks, dims, leaders and text, (which was my original assumption that the textstyles were in there somewhere),  I cant. I usually am able to remove unwanted textstyles through the TXTMRG LISP/VBA macro. It has no effect this time.

 

anyone have an idea how to fix this?

 

 

Thanks

14 REPLIES 14
Message 2 of 15
Anonymous
in reply to: fythosx

Did you try to purge the drawing:
Command purge

Message 3 of 15
fythosx
in reply to: Anonymous

Yes. Ive done full purges, audits and even tried deleting everything and purging. its in there somewhere. Maybe the file got damaged?
Message 4 of 15
fythosx
in reply to: Anonymous

Attached is an image of what appears in the textstyle manager and a sample file of what happens even if i just copy a line from the original file

Message 5 of 15
Anonymous
in reply to: fythosx

Mayby the file is damaged.
Try this:
Wblock -> Entire drawing
or select the objects you want to save in a other file
Message 6 of 15
fythosx
in reply to: Anonymous

Still nothing. If i try to copy just lines/polylines etc without any blocks,dimensions etc, it still brings in those textstyles.
Message 7 of 15
rkmcswain
in reply to: fythosx

SuperPurge was able to purge those styles, but no references were purged with them, so there is no way to really tell what is linked to those styles.

 

If WBLOCK does not work, then I would clean this drawing as best as possible, but DO NOT use anything from it ever again.

 

Make sure your templates are clean too so you can avoid this in the future.

 

One last note, your drawing contains a bunch of DGN linetype garbage too. This stuff will spread with copy+paste and pollute your DWG files also.

R.K. McSwain     | CADpanacea | on twitter
Message 8 of 15
fythosx
in reply to: rkmcswain

Thanks a ton!
i am out of the office today, but i will try it when i get home and see if i can do the same with superpurge

-Eric
Message 9 of 15
Anonymous
in reply to: fythosx

I saw also verry much anonymous blocks!
Maybe the textstyles are part of that blocks.

You only can puger tham whith SuperPurge:

http://www.manusoft.com/software/superpurge.html

Message 10 of 15
dbroad
in reply to: fythosx

As RK said, the drawing is riddled with extra garbage (probably from DGN export to DWG).

 

Other than superpurge, steps to fix would include, deleting all the anonymous blocks *A1 to *A302

After deleting those, then delete the related linetypes, then delete the extra text styles. 

 

Kean has promised to fix his DGN cleanup tool. That might help but you will need to wait.  Until then, you might try the following cautiously.

 

;;Extremely dangerous. Take care when using
;;D. C. Broad, Jr. - Not responsibe for loss of data
(defun c:delblks (/ doc )
  (setq doc (vla-get-activedocument (vlax-get-acad-object)))
  (vlax-for n (vla-get-blocks doc)
    (vlax-for i	n ;;delete anonymous blocks references
      (if
	(and
	  (= (vla-get-objectname i) "AcDbBlockReference")
	  (wcmatch (vla-get-name i) "\*A*")
	)
	 (vla-delete i)
      )
    )
  )
  (vlax-for n (vla-get-blocks doc)
    (if	(wcmatch (vla-get-name n) "\*A*")
      (vl-catch-all-apply 'vla-delete (list n))
    )
  )
)

 After loading and running that, you can purge the linetypes and then the text styles.

Architect, Registered NC, VA, SC, & GA.
Message 11 of 15
abubakars
in reply to: fythosx

DGN linetype is the culprit, see the cleaning up process of your file using BatchInEditor in action, use it untill you get the fix from Autodesk

The tool is free and available http://www.cadmanagertools.com

I am trying to attach the video file but it terminates half way through

Message 12 of 15
fythosx
in reply to: abubakars

Ahh that makes sense now. I hadnt noticed the DGN linetypes. Someone put them in our standards for some reason. ill make the necessary adjustments. Thanks for the quick responses

Message 13 of 15
abubakars
in reply to: fythosx

Here is my first ever video on youtube regarding Purge DGN linetype

Purge DGN Linetype

Message 14 of 15
fythosx
in reply to: abubakars

That video was perfect. I just got back to a desk again and tried it. Works like a charm. Best response from anyone Ive seen on these forums. Thank you again

Message 15 of 15
pgmflora
in reply to: abubakars

Thank you! Works perfectly!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost