Author Topic: Lost Style Purging capabilties in vba?  (Read 4333 times)

0 Members and 1 Guest are viewing this topic.

Matersammichman

  • Guest
Lost Style Purging capabilties in vba?
« on: May 23, 2006, 02:28:55 PM »
What happened to the ability to purge the following in vba?

RoofSlabStyles
SlabStyles
CurtainWallStyles
CurtainWallUnitStyles
WindowAssemblyStyles

I could purge them fairly easily via vba in ADT2002, but can't in 2005.

What gives?

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Lost Style Purging capabilties in vba?
« Reply #1 on: May 23, 2006, 05:16:17 PM »
what code are you using to purge?
ThisDrawing.PurgeAll
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Matersammichman

  • Guest
Re: Lost Style Purging capabilties in vba?
« Reply #2 on: May 23, 2006, 05:31:05 PM »
That's just for regular CAD purging.
What I'm referring to is Styles (ADT).

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Lost Style Purging capabilties in vba?
« Reply #3 on: May 23, 2006, 05:48:36 PM »
I dont have ADT, so I dont know off the top of my head. 
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Lost Style Purging capabilties in vba?
« Reply #4 on: May 24, 2006, 07:08:53 PM »
chirp
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Bob Wahr

  • Guest
Re: Lost Style Purging capabilties in vba?
« Reply #5 on: May 24, 2006, 07:21:53 PM »
I don't have ADT so I don't get to play along from home but you might look at something like
Code: [Select]
dim objRoofSlabs as RoofSlabStyles
dim objRoofSlab as RoofSlabStyle
on error goto ka_blooie

set objroofslabs = thisdrawing.roofslabstyles
For each objroofslab in objroofslabs
  objroofslab.delete 'hopefully if the style is used it will toss a binky or whatever Kerry says
next objroofslab

arvyderchy:
  Exit Sub
ka_blooie:
  err.clear
  resume next objroofslab
end sub
This is really rudimentary, really basic, and guaranteed NOT to work as is and is intended merely as a suggestion on one way that it might be possible to go about it.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Lost Style Purging capabilties in vba?
« Reply #6 on: May 24, 2006, 07:25:18 PM »
Spit the dummy is what your looking for. but toss the binky was funny as hell
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Bob Wahr

  • Guest
Re: Lost Style Purging capabilties in vba?
« Reply #7 on: May 24, 2006, 07:30:03 PM »
yeah, I knew it was something like that, I just couldn't come up with it, thanks.

MickD

  • King Gator
  • Posts: 3636
  • (x-in)->[process]->(y-out) ... simples!
Re: Lost Style Purging capabilties in vba?
« Reply #8 on: May 24, 2006, 07:40:57 PM »
Spit the dummy is what your looking for. but toss the binky was funny as hell
:lmao:
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Lost Style Purging capabilties in vba?
« Reply #9 on: May 24, 2006, 09:14:31 PM »
heheheeh

I use a 'SpitTheDummy' method ..

but 'ka_blooie:' sounds pretty descriptive ..   : - )
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: Lost Style Purging capabilties in vba?
« Reply #10 on: May 25, 2006, 12:41:07 PM »
this is so funny, Im now using
Code: [Select]
ed.WriteMessage("AutoCAD has Tossed the Binky  ");as my error checking line
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)