VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Actions after loading .DVB file

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
359 Views, 3 Replies

Actions after loading .DVB file

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?

3 REPLIES 3
Message 2 of 4
Alfred.NESWADBA
in reply to: Anonymous

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
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 4
Anonymous
in reply to: Alfred.NESWADBA

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

Message 4 of 4
Alfred.NESWADBA
in reply to: Anonymous

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
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost