Author Topic: Text Style PLOTSTAT can't be renamed?  (Read 664 times)

0 Members and 1 Guest are viewing this topic.

KewlToyZ

  • Water Moccasin
  • Posts: 2343
  • I can finally hear myself think.
Text Style PLOTSTAT can't be renamed?
« on: May 09, 2012, 07:27:59 pm »
PLOTSTAT Style keeps claiming it is Standard and cannot be renamed?
Really odd I can't seem to delete this junk unless I copy and paste everything into a new file.
I disassociate everything I can find in the file, even checked for hidden attributes, deleted all layouts and page setups. Nothing lets me remove this thing except copy and paste into new file, and it follows everything into the new file even when there isn't any text and the dimension style doesn't use it. I can delete it in the new file, but what a pain in the arse.
Anyone ran into this before?
Engineering is making reality more efficient than fantasy...
What does it mean when I dream I'm an anteater?

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9646
  • class keyThumper<T>:ILazy<T>
Re: Text Style PLOTSTAT can't be renamed?
« Reply #1 on: May 09, 2012, 09:07:07 pm »

Posting the dwg file would be handy :)

... saves guessing games.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9646
  • class keyThumper<T>:ILazy<T>
Re: Text Style PLOTSTAT can't be renamed?
« Reply #2 on: May 09, 2012, 09:10:35 pm »
I made a style called PLOTSTAT.

Was able to rename and purge it providing it wasn't the current style.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

Jeff H

  • King Gator
  • Posts: 4023
Re: Text Style PLOTSTAT can't be renamed?
« Reply #3 on: May 09, 2012, 09:33:01 pm »
I made a style called PLOTSTAT.

Was able to rename and purge it providing it wasn't the current style.
Think Kerry gave you a hint there.

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9646
  • class keyThumper<T>:ILazy<T>
Re: Text Style PLOTSTAT can't be renamed?
« Reply #4 on: May 10, 2012, 05:42:49 am »


I'm usually more subtle  :-D
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

KewlToyZ

  • Water Moccasin
  • Posts: 2343
  • I can finally hear myself think.
Re: Text Style PLOTSTAT can't be renamed?
« Reply #5 on: May 10, 2012, 09:45:22 am »
lol, yeah I made sure it wasn't the current style.
I Checked, deleted everything i could, setup a new standard style and made sure it was default for the Dimstyle too.  :ugly:
Engineering is making reality more efficient than fantasy...
What does it mean when I dream I'm an anteater?

M@yhem

  • Needs a day job
  • Posts: 9863
  • Pain is temporary. Quitting is forever.
Re: Text Style PLOTSTAT can't be renamed?
« Reply #6 on: May 10, 2012, 10:03:11 am »
lol, yeah I made sure it wasn't the current style.
I Checked, deleted everything i could, setup a new standard style and made sure it was default for the Dimstyle too.  :ugly:
I couldn't rename it through the TEXT STYLE dialog box - kept getting the message you were referring to - but I could rename it through the RENAME dialog box.  *shrugs*

KewlToyZ

  • Water Moccasin
  • Posts: 2343
  • I can finally hear myself think.
Re: Text Style PLOTSTAT can't be renamed?
« Reply #7 on: May 10, 2012, 10:33:45 am »
lol, yeah I made sure it wasn't the current style.
I Checked, deleted everything i could, setup a new standard style and made sure it was default for the Dimstyle too.  :ugly:
I couldn't rename it through the TEXT STYLE dialog box - kept getting the message you were referring to - but I could rename it through the RENAME dialog box.  *shrugs*

Hmmm ok, maybe I try something else then.
Code: [Select]
(defun c:rpl (/)
  (if exist (tblsearch "STYLE" "PLOSTAT")
   
    (progn       
      (command "-rename" "style" "PLOSTAT" "AMEP Text")
      (command "-style" "AMEP Text" "Romans.shx" 0 0.9 0 "No" "No" "No")
      )
    )
  (princ)
)
Engineering is making reality more efficient than fantasy...
What does it mean when I dream I'm an anteater?

ronjonp

  • King Gator
  • Posts: 4212
Re: Text Style PLOTSTAT can't be renamed?
« Reply #8 on: May 10, 2012, 11:21:14 am »
This works:

Code: [Select]
(defun _renameitfoo (oldname newname / e)
  (and (setq e (tblobjname "style" oldname))
       (entmod (subst (cons 2 newname) (assoc 2 (entget e)) (entget e)))
  )
)
(_renameitfoo "plotstat" "foo")

AutoCAD 2014

Dell Optiplex 9010 / Intel I7-3770 / 8GB RAM / NVidia 550ti

dgorsman

  • Swamp Rat
  • Posts: 1397
Re: Text Style PLOTSTAT can't be renamed?
« Reply #9 on: May 10, 2012, 11:28:43 am »
You can rename the STANDARD text style something else, in which case AutoCAD sometimes still treats it as being named STANDARD (might be a flag in there from older versions) and won't purge it.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

Jeff H

  • King Gator
  • Posts: 4023
Re: Text Style PLOTSTAT can't be renamed?
« Reply #10 on: May 10, 2012, 11:42:35 am »
You can rename the STANDARD text style something else, in which case AutoCAD sometimes still treats it as being named STANDARD (might be a flag in there from older versions) and won't purge it.

That is what happened.
Because the Standard dimension, table, multileader, styles reference PLOTSTAT, and if you set all the styles to use STANDARD then you can purge STANDARD.

Jeff H

  • King Gator
  • Posts: 4023
Re: Text Style PLOTSTAT can't be renamed?
« Reply #11 on: May 10, 2012, 11:44:11 am »
..............
 

KewlToyZ

  • Water Moccasin
  • Posts: 2343
  • I can finally hear myself think.
Re: Text Style PLOTSTAT can't be renamed?
« Reply #12 on: May 10, 2012, 12:05:32 pm »
Tables & MLeaders... did not check that.  :ugly:

Thanks gents.  :kewl:
Engineering is making reality more efficient than fantasy...
What does it mean when I dream I'm an anteater?

KewlToyZ

  • Water Moccasin
  • Posts: 2343
  • I can finally hear myself think.
Re: Text Style PLOTSTAT can't be renamed?
« Reply #13 on: May 10, 2012, 12:06:12 pm »
What are you using to view those tables?
Engineering is making reality more efficient than fantasy...
What does it mean when I dream I'm an anteater?