
Contents |
Find Project Explorer path
Updated in Origin 8.1 SR2
| Display Name | Variable Name | I/O and Type | Default Value | Description |
|---|---|---|---|---|
| Name of page or folder | page |
Input string | | Name of the window/subfolder to be searched for. |
| Path | path |
Input/Output string | | If type is window, this variable outputs the path of the specified window. If type is folder, this variable can be both input and output. As input, it specifies the which folder's subfolder to be searched for. As output, it is the path of the specified subfolder. When it is input and empty, it refers to the current active folder. |
| Target Type | type |
Input int | | Specify the type of the target to be searched for, window or subfolder.
Option list:
|
| Activate Target | active |
Input int | | Specify whether or not to activate the target when it is found. |
This X-Function is used to get the path of the specified window or subfolder in the Project Explorer. If no name of window or subfolder is specified, the current path will be returned. An optional string variable can be used to retrieve the path. Also, you can specify a path from which to find subfolder. When this path variable is not specified, result will be printed out. It also provides option for whether or not to activate the searched target when the target is found.
This example will show how to find an existing workbook in the project.
pe_path -d; in Command Window to open the pe_path dialog. The Name of page or folder is S1Freq1, and the result path will hold by strPath variable. Check the Activate Target check-box.
strPath$ = ; in Command Window, then the path of S1Freq1 workbook in the Project Explorer will be output to the Command Window.