Google Analytics

Wednesday, July 20, 2011

Some Arbortext Tips

As we work on some projects that require automation I find that one of the things that keeps you busy is learning new terminology.  For example,  I have a automated report that ti want to put out in Arbortext for out Technical Publications Team.

It should be easy enough to do.  We populate an .xml file and then if we could just invoke Arbortext from the command line, we could set it up to compose and print or whatever else we need.   Searched the help without success.

To the web. Arbortext has an active community but they tend to focus on slightly more advanced topics.  No real sources of real beginner stuff.

Eventually I found the solution by accident.  The biggest problem was the names that I use.  Command line arguments? Command line options? Were not right - or ate least not used by the Arbortext community.  So Startup Commands and Options is the term.  Now that I found it it is very easy to do what I need to.

I guess that this will get easier as I get more involved.

Anyway,  this has given me some idea where some good Arbortext web resources are.


Are some of my favorite.

By the way: that command that you can call from the command line to compose in batch mode:

"C:\Program Files (x86)\PTC\Arbortext Editor\bin\editor" -styler -C2 "$myparams['stylesheet']='stylesheetname.style'; $myparams['outputFile']='outfilename.pdf'; execute compose::compose_for_pdf(current_doc(),$myparams); exit" "filename.xml" 
 The key tricks are the use of single quotes and double quotes and using the execute call for the function.