list_info macro
Lists information about the macro’s in the current model.
Format:
list_info macro |
|---|
Macro_name = | Existing macro |
Brief = | on/off |
Write_to_terminal = | on/off |
File_name = | string |
Example:
list_info macro & |
|---|
macro_name = | MACRO_1 & |
brief = | off & |
write_to_terminal = | on & |
file_name = | "C:\My Documents\my_file" |
This will display the following information on the terminal as well as in the file “my_file”,
Object Name : .MACRO_1
Object Type : Macro
User Command : None specified, using the macro name 'MACRO_1'
Wrap in Undo : No
Help : None specified
Commands :
! $FIRST_MARKER: T=marker
! $SECOND_MARKER: T=marker
! $NEW_MARKER_NAME: T=new_marker
!
marker create marker_name=$NEW_MARKER_NAME &
location = (( ($FIRST_MARKER.loc_x)+($SECOND_MARKER.loc_x) )/2 ), &
(( ($FIRST_MARKER.loc_y)+($SECOND_MARKER.loc_y) )/2 ), &
(( ($FIRST_MARKER.loc_z)+($SECOND_MARKER.loc_z) )/2 ) &
orientation = 0,0,0 &
relative_to = ground
Description:
Parameter | Value Type | Description |
|---|
Macro_name | Existing macro name | Specify an existing macro whose information has to be listed. |
Brief | On/off | Specify whether the macro information required is in brief or not. |
Write_to_terminal | On/off | Specify whether the information has to be displayed on the terminal. |
File_name | String | Specify filename in which the information needs to be written. |
Tips:
1. Typing “?” after “file_name=” parameter will open the file browse window in Windows environment, making it easier to specify the file name.