Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
phila
in reply to: MechMachineMan

I added this to the top of the rule. I added it after posting the original rule:

 

' Start of iLogic code *******************************************

'query user

question = MessageBox.Show("Is a STEP file needed for " & ThisDoc.FileName(False), "iLogic Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)

'set condition based on answer

If question = vbNo Then

Exit Sub

End If

 

This gives me the option to say no if I am in an assembly that does not have a trigger. Just have to remember what assembly I'm in.

 

The two parts that are this assembly have triggers to create a step file of each individual part. The assembly it self does not have a trigger. No STEP needed.

 

Each file with triggers opens the dialog box with their respective part numbers. Good to this point

 

If I click no, the rule stops, no STEP created. The second box opens, click no again.

 

If I click yes to both or just one, it creates the STEP file with the entire assembly with the respective file names in the dialog boxes.  Both parts and all the hardware.

 

When I open either STEP file created, it is of the entire assembly not the single part.