Call Sub On save

Call Sub On save

Anonymous
Not applicable
349 Views
5 Replies
Message 1 of 6

Call Sub On save

Anonymous
Not applicable
Hi,
I need Call mySub() on Save.

Following the my necessity..
-------------------------------------------------------
Public Sub onSaveDocument...

Call MySub()
End Sub
-------------------------------------------------------
My problem is use OnSaveDocument for call my sub...

Somebody know how help.

Tks
0 Likes
350 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
You could try my RunMeOnSave addin available from
http://www.mcadforums.com/forums/viewtopic.php?t=4779
All the hard work (ie the On Save coding) is done for you
Regards
MattH
0 Likes
Message 3 of 6

Anonymous
Not applicable
Hi Matt,
Your Addin is very good.

But i don't understand a thing.
Why my code don't work in .IVB, only while is in part?

----------------------------------
Sub AutoSaveConfirm()
MsgBox "Save Correct", vbInformation
End Sub
---------------------------------


Tks for all

Cristiano Oliveira
0 Likes
Message 4 of 6

Anonymous
Not applicable
I believe it has to be named
Sub AutoSave()

Any change in the name won't work.

But you don't want to put this in your template. There is problems with
having to many parts with code in them.

--
___________________
Kent Keller
www.kwikmcad.com


wrote in message news:5527598@discussion.autodesk.com...
Hi Matt,
Your Addin is very good.

But i don't understand a thing.
Why my code don't work in .IVB, only while is in part?

----------------------------------
Sub AutoSaveConfirm()
MsgBox "Save Correct", vbInformation
End Sub
---------------------------------


Tks for all

Cristiano Oliveira
0 Likes
Message 5 of 6

Anonymous
Not applicable
Hi Kent,
My problem is in .IVB, don't work nothing.

In my parts is working correct.

Any ideia?
0 Likes
Message 6 of 6

Anonymous
Not applicable
I think this is what you are saying....

This is from help

Automatic macros are only supported within document projects. Macros within
the Application or a User Project that use the names below will be ignored
as far as running automatically.

--
___________________
Kent Keller
www.kwikmcad.com


wrote in message news:5527657@discussion.autodesk.com...
Hi Kent,
My problem is in .IVB, don't work nothing.

In my parts is working correct.

Any ideia?
0 Likes