Author Topic: QSAVE  (Read 3286 times)

0 Members and 1 Guest are viewing this topic.

cadpro

  • Guest
QSAVE
« on: March 12, 2008, 07:49:56 AM »
Hi all,

Is it possible to run a command and then save the dwg when the user hits QSAVE in .NET?

Thanks

T.Willey

  • Needs a day job
  • Posts: 5251
Re: QSAVE
« Reply #1 on: March 12, 2008, 10:57:22 AM »
I think you would have to use events, or you could create your own command, and have that button execute you command which will do something and then save the current document.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

cadpro

  • Guest
Re: QSAVE
« Reply #2 on: March 13, 2008, 01:38:49 AM »
I want to reset the scalelist and then save the dwg when the user hits the save button. Is it possible to redefine the QSAVE command?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: QSAVE
« Reply #3 on: March 13, 2008, 04:15:27 AM »

Why do you want to redefine the QSAVE command. ?

Don't you want to just save the drawing as part of the routine which resets the ScaleList ??



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.

cadpro

  • Guest
Re: QSAVE
« Reply #4 on: March 13, 2008, 07:11:38 AM »
That would also be fine. But it should happen when the user hits QSAVE.

mcarson

  • Guest
Re: QSAVE
« Reply #5 on: March 24, 2008, 12:33:53 PM »
That would also be fine. But it should happen when the user hits QSAVE.

Not really worked with AutoCAD events in .NET, but with VBA I used the BeforeSave or OnSave event of the active document/
Using this, you could add your code to reset your scale list and optionally (I think) continue with the save, or cancel it!