WEXP - how to run it more than once from script?

We have the RMF add-on which has the WEXP Word exporter utility. (We do not have a WEXP server.)

I've found that I can invoke WEXP from a DXL script with this line (it brings up the WEXP dialog and the user just needs to click on 'Export' button):

#include <addins/irdrmfao/WEXP/menu calls/wexp.inc>

However I can't run WEXP multiple times because I can't put this line in multiple times (without causing an error, unsurprisingly).

I haven't played around with this too much yet, and I need to dig into the documentation more.

But does anyone know a way to use a DXL script to run WEXP multiple times??


strathglass - Thu Jul 06 00:11:15 EDT 2017

Re: WEXP - how to run it more than once from script?
pommCannelle - Thu Jul 06 08:34:30 EDT 2017

( have you tried the eval_ perm ? ;) )

Re: WEXP - how to run it more than once from script?
strathglass - Thu Jul 06 09:29:34 EDT 2017

No, not familiar with eval_ (not a documented feature).

So I tried changing the last line of my script from the single include file line above to:

eval_ "#include <addins/irdrmfao/WEXP/menu calls/wexp.inc>"
//some code here to update certain module properties
eval_ "#include <addins/irdrmfao/WEXP/menu calls/wexp.inc>"

This kind of actually works, except I get both WEXP GUIs right away...I really would like to have the second WEXP GUI only show up after the user finishes running the first one.

And ultimately my real problem to solve is to have WEXP run without the user having to see the WEXP GUI and click the WEXP 'Export' button.

IS THIS IN ANY WAY POSSIBLE?

 

Re: WEXP - how to run it more than once from script?
pommCannelle - Fri Jul 07 04:18:04 EDT 2017

strathglass - Thu Jul 06 09:29:34 EDT 2017

No, not familiar with eval_ (not a documented feature).

So I tried changing the last line of my script from the single include file line above to:

eval_ "#include <addins/irdrmfao/WEXP/menu calls/wexp.inc>"
//some code here to update certain module properties
eval_ "#include <addins/irdrmfao/WEXP/menu calls/wexp.inc>"

This kind of actually works, except I get both WEXP GUIs right away...I really would like to have the second WEXP GUI only show up after the user finishes running the first one.

And ultimately my real problem to solve is to have WEXP run without the user having to see the WEXP GUI and click the WEXP 'Export' button.

IS THIS IN ANY WAY POSSIBLE?

 

(

Create a file in DOORS, launch a macro deleting the file in WORD and wait the file deletion in DOORS before to continue your run can be a way to 'wait' the job is done in the WORD part ... 

And ... 

May be it's time to considere than DOORS is not the only one technology in the world ;)
Even if you don't have access to an API for WEXP, you can interract with any kind of window's object using ... AutoIT for example. This is an easy way to click a close button if needed.
And perhaps you can think about a way to run your DXLs in an other machine.
For no more copy/paste issues for example ... There is sooo many things to imagine o:)
Enjoy ! ;)

)

Re: WEXP - how to run it more than once from script?
strathglass - Fri Jul 07 06:10:14 EDT 2017

pommCannelle - Fri Jul 07 04:18:04 EDT 2017

(

Create a file in DOORS, launch a macro deleting the file in WORD and wait the file deletion in DOORS before to continue your run can be a way to 'wait' the job is done in the WORD part ... 

And ... 

May be it's time to considere than DOORS is not the only one technology in the world ;)
Even if you don't have access to an API for WEXP, you can interract with any kind of window's object using ... AutoIT for example. This is an easy way to click a close button if needed.
And perhaps you can think about a way to run your DXLs in an other machine.
For no more copy/paste issues for example ... There is sooo many things to imagine o:)
Enjoy ! ;)

)

Thanks for the tips, ...I will investigate!