Can you safely run a Macro without having to have the Last line read CommandState.StartDefaultCommand
This was only for an example, not for an actual VBA Macro. I see that CommandState.StartDefaultCommand at the bottom of the different Macros, but I really do not always want to go back to the default command if something else is already active. Sorry if this is a poor question, but I do have a reason. I know how to load the Element Selection when I need it, but do not always like going back to that command?
Short Example: 1
Sub Macro002() ' 092813 - Testing running a Macro from this macro. It sets Level 7, Then Place Cloud ' Dim startPoint As Point3d Dim point As Point3d, point2 As Point3d Dim lngTemp As Long
' Start a command
CadInputQueue.SendCommand "place revcloud points" CommandState.StartDefaultCommand
End Sub
Would it be ok to comment out the last line as in Example: 2
' Run SetLevel 7 Macro First ActiveLayerSet7 Use No ()
' Start a command Added Level Command and Color Command then the RevcloudActiveLayerSet7
CadInputQueue.SendCommand "place revcloud points" ' CommandState.StartDefaultCommandEnd Sub
Hi,
The only reason for the last StartDefaultCommand is to leave Microstation in a "nice clean state" when giving it back to the user. All it really does is start the Choose Element (Power Selector) tool. So, in your routine, you should omit that because you are wanting the user to continue the command to Place RevCloud Points.
--Robert