schDirectEdit
schDirectEdit(
x_index
)
=> t
Description
Directly edits or manipulates the object under the cursor. Usable when editing schematics and symbols.
If the object is under the cursor or if the object is in the selected set, you can modify all objects in the selected set. If the object under the cursor is not in the selected set, you can modify only that object. If there is no object under the cursor, the SelectByArea process is used.
In the schBindkey.il file, DrawThru1 is bound to schDirectEdit as shown:
<DrawThru1> schDirectEdit(1)
Shift<DrawThru1> schDirectEdit(2)
Ctrl<DrawThru1> schDirectEdit(3)
The following table shows what kind of edit takes place.
| Object Type/Index | 1 | 2 | 3 |
|---|---|---|---|
Arguments
|
An integer that specifies which function to execute. |
Value Returned
Examples
If the cursor is not over an object, executes selectByArea. If the object under the cursor is an instance, executes stretch on the instance. If that instance belongs to the selected set, stretches all objects in the selected set.
schDirectEdit( 1 )
If the cursor is not over an object, executes an additiveselectByArea. If the object under the cursor is an instance, executescopyon the instance. If that instance belongs to the selected set, copies all objects in the selected set.
schDirectEdit( 2 )
If the cursor is not over an object, executesdeselectByArea. If the object under the cursor is an instance, executesmoveon the instance. If the instance belongs to the selected set, moves all objects in the selected set.
schDirectEdit( 3 )
Related Topics
Return to top