Actions after loading .DVB file

Actions after loading .DVB file

Anonymous
Not applicable
473 Views
3 Replies
Message 1 of 4

Actions after loading .DVB file

Anonymous
Not applicable

Hi there,

 

Is it possible to do actions directly after loading the DVB file by command appload in the autocad command bar?

 

For example, creating a menu in the menu bar with the available procedures in the .DVB?

0 Likes
474 Views
3 Replies
Replies (3)
Message 2 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

does that help

 

Private pInitFinished As Boolean

Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
   If Not pInitFinished Then
      pInitFinished = True
      Call MsgBox("Running initialization")
      'do what have to be done
   End If
End Sub

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 4

Anonymous
Not applicable

Well it works, it send the msgbox after loading the file directly,Could yuo kindly give me more details about it?

0 Likes
Message 4 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

wasn't that what you where looking for? Just replace the "msgbox"-statement with your code for loading a menu or do some initialization, it's then called automatically when this DVB is loaded.

 

That was the question I thought ... or what did I understand wrong?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes