Open Sheet Metal defaults after Convert to Sheet Metal

Open Sheet Metal defaults after Convert to Sheet Metal

steveh5
Advisor Advisor
428 Views
1 Reply
Message 1 of 2

Open Sheet Metal defaults after Convert to Sheet Metal

steveh5
Advisor
Advisor

Gang...Looking for some iLogic which would open the Sheet Metal defaults automatically after Convert to Sheet Metal has been activated.

 

In other words...if we hit the Convert to Sheet Metal icon, the Sheet Metal Defaults window would pop up right away.

 

Possible?

 

Thanks in advance,

 

Steve Hilvers

 

 

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
0 Likes
429 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Here is the command behind the Convert To Sheet Metal button.

Dim oCD AS ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("PartConvertToSheetMetalCmd")
oCD.Execute 'or oCD.Execute2(True/False)

 

Here is the command for opening the Sheet Metal Defaults dialog.

Dim oCD AS ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalStylesCmd")
oCD.Execute 'or oCD.Execute2(True/False)

 As for the timing of executing the command right after you've converted a part file to a sheet metal file, I'm not 100% sure, but I think that may require an Add-in.  I don't claim to be an expert when it comes to Add-ins, but based on the answers to some of my previous inquiries, pretty much any program that you want to wait in the background for events to happen, then does something when the trigger action happens, needs to be to set up as an Add-in.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes