Open the parameter tool via VBA?

Open the parameter tool via VBA?

Anonymous
Not applicable
514 Views
2 Replies
Message 1 of 3

Open the parameter tool via VBA?

Anonymous
Not applicable
Hi, everyone.

How can i open the parameter tool via VBA, i mean the control definition item to open the parameter tool, Thanks.
0 Likes
515 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
The code to open the parameters dialog...

Sub ParametersDialog()
Dim oDef As ControlDefinition
Set oDef =
ThisApplication.CommandManager.ControlDefinitions("AppParametersCmd")

oDef.Execute
End Sub

Sanjay-

wrote in message news:5239208@discussion.autodesk.com...
Hi, everyone.

How can i open the parameter tool via VBA, i mean the control definition
item to open the parameter tool, Thanks.
Message 3 of 3

Anonymous
Not applicable

Ok... I'm digging this up from the past...

 

I wanted to do this via iLogic... open the parameters window when the document opens.  I am definitely NOT a VB expert.  I took the above code and edited it till it worked in iLogic...

 

Sub Main()
oDef = ThisApplication.CommandManager.ControlDefinitions("AppParametersCmd")

oDef.Execute
End Sub

(Feel free to criticize and improve the code!)

 

Drop that right into an iLogic rule, set the event trigger to run the rule on open... and presto!

 

Thanks guys!