Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Exporting multiple open documents to a chosen folder path

sgyabaah
Explorer

Exporting multiple open documents to a chosen folder path

sgyabaah
Explorer
Explorer

Hi,

 

I am trying to somehow "merge" the attached iLogic rules, for exporting dwgs to PDFs. I must say I don't know much about VisualBasic coding - but separately both rules work fine.

 

What I mean by "merge" is, I want one rule that will allow me to choose whether I want to export the current drawing I'm in or export all currently opened drawings and allow me to save it to a particular folder path, by opening a Folder Browser.

 

Any guidance on creating such a rule will be appreciated. Thanks

0 Likes
Reply
209 Views
1 Reply
Reply (1)

A.Acheson
Mentor
Mentor

Hi @sgyabaah 

The first step is combining rules like this is to create a list of task you want to achieve. Then write a pseudo code and include any options. 

 

For your example here I see you have 2 options required so a radio button dialogue available in the ilogic browser would be a good fit.

 

Next you need to figure out what objects/ section of code will be used more than once. These will form sub routines or functions which you can call using a call word. Example the choose folder would be one example. What you would want to return is the folder directory chosen.

 

By looking at the code you seem to have both elements but perhaps there not functioning as you need. I would suggest you create a third rule and start working on the pseudo code and just make sure you can get your user options working by using a messagebox to test.

 

Post the code as you progress and if you have questions or encounter errors then post the more info tab of the error dialogue.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes