Skip to main content
1-Visitor
March 22, 2018
Question

Can a script be called outside of ArborText Editor or Publishing Engine?

  • March 22, 2018
  • 1 reply
  • 4322 views

Greetings.

 

I am currently researching the various PTC tools (ArborText Editor, Publishing Engine) for API information. What I am looking for is a way to publish a document in the various supported format. In essence, mimick the GUI behaviour but from a script. Based on searching the threads and some of the reference documentation, I have a couple of questions.

 

- Is the ACL reference shared amongst the tools (PE and Editor)?

 

- Is it possible to run a script (Java, Perl etc.) OUTSIDE of ArborText Editor (the Programmer's Guide seems to indicate that this is not possible) and publish a document? Or should one access the PE in Windchill to publish a document?

 

1 reply

16-Pearl
March 22, 2018

There are many ways to use the publishing functionality.

  1. Yes, PE and Editor both include the same Arbortext core with ACL. PE also has a bunch of extra Java stuff running under Apache Tomcat.
  2. Options:
    1. You can call Arbortext with command line parameters to run stuff in batch mode.
    2. You can have Arbortext init.acl scripts call your own functionality at startup.
    3. You can write Java extensions that are loaded with the Arbortext JVM.
    4. The more modern approach is to use the PE web services interface to do the publishing. From memory, you can call f=compose for a full publish or f=java or f=acl to execute some code.
  3. You can certainly use Windchill to publish, assuming WVS (Windchill Visualization Services) has been setup to integrate with PE.

There is loads of ACL code that ships with the application. This implements a lot of the GUI functionality, so you can reuse those functions in your own code, e.g. to publish. Just do a bit of fossicking through the *.acl files.

mastachef1-VisitorAuthor
1-Visitor
March 25, 2018

Thank you. I wanted to do a sanity check becasue I thought wach Arbortext product has its own API.

 

I would like to futher my check based on your responses...

  1. You can call Arbortext with command line parameters to run stuff in batch mode.
    • What is "batch mode" and where/how is that enabled from the Windows CLI? Also, what document(s) contains the command line arguments/options and their descriptions?
  2. You can have Arbortext init.acl scripts call your own functionality at startup.
    • This seems to indicate that Editor needs to be launched and the custom scripts would be available
  3. You can write Java extensions that are loaded with the Arbortext JVM.
    • This would indicate that this is more a plug-in functionality versus something stand alone.
  4. The more modern approach is to use the PE web services interface to do the publishing. From memory, you can call f=compose for a full publish or f=java or f=acl to execute some code.
    • This would seem to be the more logical approach and look further into some documentation.

There is a considerable amount I wish to cover with this research and I am learning the tool as we go. There is a picture within the Programmer's Guide that shows Editor and PE can be accessed with a Java application/script. But we want to be able to publish and not have to launch the GUI. If this is not possible and the only way to accomplish this is to use the folder structure to store our scripts, then I would like to demo such functions. 

mastachef1-VisitorAuthor
1-Visitor
March 25, 2018