Object action
object_actionSelect, enable/disable, copy, or delete project-tree objects and vertices using path-based selection and SI-meter coordinates for photonic simulation setup.
Instructions
Manipulate selection and objects in the project tree (SI meters for vertices).
Select cheat-sheet (SimWorks select / selectpartial / shiftselect*):
Structures at root:
select('Ring').Under FDTD:
select('FDTD::MonitorName').Mode ports:
select('FDTD::Ports::Port_input')— include solver + port group + port. OmittingFDTD::is the usual reason select fails.Discover group:
select_partial('::Ports')orselect_partial('FDTD::Port').Multi-select:
shift_select/shift_select_partialadd without clearing (same group only); thenset_propertyapplies to all selected.If select fails: retry with
FDTD::<Group>::<Child>; never re-add or disable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Selected polygon index (1 = uppermost). | |
| name | No | Select path rules (try in order; stop at first success): (1) Top-level objects: bare Name from add, e.g. 'Ring', 'FDTD', 'Bus_top'. (2) Nested under a solver: 'Solver::Object', e.g. 'FDTD::Index'. (3) Ports / objects under a port group under FDTD: 'FDTD::PortGroupName::PortName', e.g. 'FDTD::Ports::Port_input' (NOT bare 'Port_input', NOT 'Ports::Port_input', NOT 'Port Group::...'). (4) select_partial / shift_select_partial: 'FDTD::Port' (all ports under FDTD), '::Ports' (port group), '::Child' / 'Parent::Child'. Bare child names and Group::Child without the solver prefix usually fail for ports. Remember Names from add / rename. | |
| name2 | No | Optional second arg for select / shift_select / select_partial / shift_select_partial. Same forms as select: select('name', value) or select('type', typeValue). Prefer full Solver::Group::Child paths for ports. | |
| action | Yes | select / select_partial / shift_select / shift_select_partial / select_all / unselect_all / select_parent / enable / disable / copy / delete / delete_all / add_vertex / delete_vertex. Prefer select/select_partial over re-adding. shift_* add to the current selection (same group only). Do not disable objects to work around a failed select. | |
| cord_1 | No | Vertex coord 1 (SI m). For add_vertex. | |
| cord_2 | No | Vertex coord 2 (SI m). For add_vertex. | |
| order_num | No | Vertex order for add_vertex / delete_vertex. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |