Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ChristianAndersenIsmyname
1704 Views, 12 Replies

iLogic - "save as" pop-up box

Hey,

How can I force iLogic to force the save-as pop-up box (as if I'm pressing CTRL+S). Can I make it do something like

MessageBox.Show("Save now?",, MessageBoxButtons.YesNo)
If vbYes Then
CTRL+S
End If

 

I also have to make it wait until 'DONE' is pressed in Form box.

I've added a Screencast to show what I mean.

 

I've reduced the length of the code, as some parts are only logic to create part.

'------ CREATE PART ------
iLogicForm.Show("Dimensions")
Feature.IsActive("Revolution1") = True
Feature.IsActive("Chamfer1") = True
Feature.IsActive("Chamfer2") = True

(Code that I've removed here)

'------- SAVE PART -------
' Save box should only come up after we've clicked DONE in FORM dialog box
'MessageBox.Show("File must be saved before making a drawing." & vbNewLine & vbNewLine & "Save now?", "Save part", MessageBoxButtons.YesNo)

'If vbYes Then
'ThisDoc.Document.SaveAs(NewFileNameAndExtension , True)

'End If
Labels (1)