Automation Reference - JMP
Automation Reference - JMP
Automation Reference - JMP
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Application Object <strong>Reference</strong> for Automating <strong>JMP</strong><br />
Application Object<br />
Dim Doc As <strong>JMP</strong>.Document<br />
Set Doc = DT.Document<br />
Doc.SaveAs ("c:\myData.jmp")<br />
NewDatabaseObject() As AutoDB<br />
Creates an object of type AutoDB, which is used for automating ODBC access to data.<br />
NewDataFeed() As DataFeed<br />
Creates a data feed object used to sample an external instrument hooked up to a serial port.<br />
NewDataTable(FileName As String) As DataTable<br />
Creates a new <strong>JMP</strong> data table, and returns the object so that it can be further automated.<br />
OpenDocument(FileName As String) As Document<br />
Opens a <strong>JMP</strong> data table as a Document.OpenDocument(FileName As String) As Document is a standard<br />
document access routine for automation applications, so it is provided in <strong>JMP</strong>. If a data table is loaded and the<br />
user wishes to manipulate the table contents, the Document method GetDataTable must be called to get a<br />
DataTable object. The DataTable object is what allows the contents to be changed.<br />
Quit()<br />
Shuts down <strong>JMP</strong> if no other automation applications are using it. Decrements the use count on <strong>JMP</strong> if other<br />
applications are automating it.<br />
RunCommand(Command As String)<br />
Runs JSL text that is provided in string form.<br />
RunJSLFile(FileName As String)<br />
Loads a JSL text file from disk given a valid path name, and then submits the text for execution within <strong>JMP</strong>.<br />
SetCurrentDirectory (DirName As String) As Boolean<br />
Sets the current directory within <strong>JMP</strong>. This allows the use of relative file names in other methods. This should be<br />
used with caution if existing automation client code assumes the use of the <strong>JMP</strong> installation directory.<br />
ShowLogHonorPreferences()<br />
This method is a variation of ShowLog(). The log is normally suppressed for <strong>Automation</strong>. However, if the <strong>JMP</strong><br />
preferences indicate that the log should appear on startup, calling this function will show the log. The other log<br />
preferences are to show the log only when the user opens it or when <strong>JMP</strong> writes text to the log.<br />
ShowStartupWindow()<br />
Shows the <strong>JMP</strong> startup window (usually the Home window). If the Home Window is already showing, it is<br />
brought to the foreground.<br />
Page 39