Author Topic: is there a programmatic way to turn off annotative text?  (Read 2979 times)

0 Members and 1 Guest are viewing this topic.

andrew_nao

  • Guest
is there a programmatic way to turn off annotative text?
« on: November 06, 2014, 10:22:19 AM »
i have some old dwgs that have some text as annotative and some arent.
does anyone have any code that turn off the annotative text?

or maybe guide me on where to look on how to code it myself?

thanks for any help

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: is there a programmatic way to turn off annotative text?
« Reply #1 on: November 06, 2014, 10:26:49 AM »
Set ANNOAUTOSCALE to -1.
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

andrew_nao

  • Guest
Re: is there a programmatic way to turn off annotative text?
« Reply #2 on: November 06, 2014, 10:30:51 AM »
thanks
mine was set to -4


andrew_nao

  • Guest
Re: is there a programmatic way to turn off annotative text?
« Reply #3 on: November 06, 2014, 10:45:12 AM »
that didnt work, text is still annotative

ronjonp

  • Needs a day job
  • Posts: 7533
Re: is there a programmatic way to turn off annotative text?
« Reply #4 on: November 06, 2014, 10:59:12 AM »
I think it's set in the TEXTSTYLE.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Jeff H

  • Needs a day job
  • Posts: 6151
Re: is there a programmatic way to turn off annotative text?
« Reply #5 on: November 06, 2014, 11:16:59 AM »
You can change each Mtext and DbText Annotative properties.

Its a property on each of those objects and is initially set by the current style.

andrew_nao

  • Guest
Re: is there a programmatic way to turn off annotative text?
« Reply #6 on: November 06, 2014, 12:07:15 PM »
annotative check box is grayed out in my dimstyle dialog

ive been using the properties dialog to change them but im getting tired of doing it... i just want to press a button and have it all change at once.

i guess im just stuck on changing them manually

i appreciate everyones input

ROBBO

  • Bull Frog
  • Posts: 217
The only thing to do with good advice is to pass it on.
It is never of any use to oneself.

Oscar Wilde
(1854-1900, Irish playwright, poet and writer)

andrew_nao

  • Guest
Re: is there a programmatic way to turn off annotative text?
« Reply #8 on: November 06, 2014, 01:41:28 PM »
thanks


and thanks to alanjt for the code