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

VBA Saving: Change default file path and automatically click yes

I have a program that writes out a list of parts that I need from an autocad drawing and I have a part template that goes and picks up the information from there and either 

1)  Opens the part template and activates that document

2) checks that the parts already exist and input them into the head assembly
3) if not it saves the part to a specified file location with an unspecified name

4) then it updates the information and inputs the part into the assembly

5) reactivates the assembly

 

My issue is that I cannot use the file dialog. We use a program that on initial save or save as generates a sequential file number. If I use the file dialog it doesn't trigger the program that generates the part name. So I need to figure out how to target location and automatically say yes so that we aren't rerouting it to the target location every single time and just clicking ok over and over again.

 

Any help would be appreciated, thank you.