Returns an array of length 3 providing XY co-ordinates and orientation of an instance.
Number | Type | Compulsory | Default | Description |
---|---|---|---|---|
1 |
string |
No |
|
Property name |
2 |
string |
No |
|
Property value |
3 |
real |
No |
-1 |
Schematic ID |
Property name to identify instance. Along with parameter 2, if these arguments are not provided, the selected instance, if any, will be used instead. If there are no selected instances or no instances that match the arguments, the function will return an empty vector. If the arguments identify more than one instance, the function will return information for one of them but there are no rules to define which one.
Using the 'HANDLE' property and its value will guarantee uniqueness.
Property value to identify instance. Along with parameter 1, if these arguments are not provided, the selected instance, if any, will be used instead. If there are no selected instances or no instances that match the arguments, the function will return an empty vector. If the arguments identify more than one instance, the function will return information for one of them but there are no rules to define which one.
Using the 'HANDLE' property and its value will guarantee uniqueness.
Schematic ID as returned by the function OpenSchematic. This allows this function to be used with a schematic that is not open or not currently selected. If omitted or -1, the currently selected schematic will be used.
Return type: real array
Returns real array of size 3 as defined by the table. If no instance is identified by arguments 1 and 2 an empty value will be returned.
Index | Description |
---|---|
0 | X co-ordinate |
1 | Y co-ordinate |
2 | Orientation: 0 to 7 |
Orientation value | Description |
---|---|
0 | Normal (as symbol def) |
1 | 90 deg. clockwise |
2 | 180 deg. |
3 | 270 deg clockwise |
4 | Mirrored through y-axis |
5 | Mirrored through y-axis + 90 deg clock. |
6 | Mirrored through y-axis + 180 deg. |
7 | Mirrored through y-axis + 270 deg clock. |
|