iLogic rule: save idw as pdf in user specified folder.

iLogic rule: save idw as pdf in user specified folder.

Anonymous
Not applicable
1,330 Views
3 Replies
Message 1 of 4

iLogic rule: save idw as pdf in user specified folder.

Anonymous
Not applicable

Hi,

 

I have a rule which automatically saves an idw as a pdf file with the drawing's revision number as a post-fix. 

Unfortunately, I've only managed to get the pdf automatically saved in a predefined location. 

 

What I am looking for is a code which enables a pop-up window which will ask the user where pdf file shall be stored, similar to a save-copy-as window.

Can anyone help me with this?

 

Cheers,

Lars

0 Likes
1,331 Views
3 Replies
Replies (3)
Message 2 of 4

ing_manuellucena
Advocate
Advocate

Hi Boijens!

 

This is what your looking for

 

http://inventortrenches.blogspot.com/2011/07/ilogic-to-save-pdf-files-to-new.html

 

Please if you fix your issue accept as solution

 

See you! 

Ing. Manuel Lucena
0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Manuel!

 

Thank you for your reply. The code you referred to is ALMOST what I am looking for. However, the referred to code automatically copies a pdf file into a specific location. What I am looking for is a window that pops up after running the rule, which allows to user to browse to a folder location where he or she wants to store the pdf. 

 

L

0 Likes
Message 4 of 4

MechMachineMan
Advisor
Advisor

Look up "FolderDialog".

 

There is a save option within the function that makes the window mimic the save as functionality.

 

Note this function/feature will just return a string from the selection window, and you will have to pass that string to your Save method.

 

ie; see this blog post:

 

http://inventortrenches.blogspot.ca/2012/10/ilogic-adding-save-as-dialog-box.html


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes