PDA

View Full Version : Acad2005 End of Publish Event?



KevinBarnett
2004-06-21, 08:17 AM
Greetings,

Is there anyway to write a vba procedure to occur when the publish event has ended? I am refering to using the Sheet Set Manager, right-click on one or more drawings, select Publish to ... . The publishing occurs in the background. If enabled, you get a notification in the acad tray when the publishing is complete. I need to write vba code to occur at the end of the publish event - is it possible?

Thanks,

Kevin.

Ed Jobe
2004-06-21, 02:37 PM
Have you tried the CommandEnded event?

KevinBarnett
2004-06-22, 05:08 AM
Yes I tried that. I simply included a msgbox in the command end event, then executed a publish from the sheet manager - at the end of the publish, no command ended - no msgbox - that didnt work. :-(

kdayman
2004-06-23, 08:03 PM
How about:

Private Sub AcadDocument_EndCommand(ByVal CommandName As String)

If StrComp(CommandName, "PUBLISH") = 0 Then
msgbox "End of Publish command detected"
End If

end sub

KevinBarnett
2004-06-24, 05:00 AM
Yep. That's what I tried. Test it - you will see that nothing happens when the publish (from Sheet Set Manager) ends. It does not appear to register as a command - the event must be somewhere else. Looks like this one will remain a mystery.

Cheers,

Kevin.

RobertB
2004-06-24, 05:20 AM
Kevin,

Is this related to the plotstamp (I thought I saw that mentioned). If so, why not use fields for the plot stamp items. Then you don't need any of this.

KevinBarnett
2004-06-25, 05:34 AM
That appears to be the best option. Thx.