Skip to content

Commit

Permalink
Modify Hierarchy Reorder function #85
Browse files Browse the repository at this point in the history
  • Loading branch information
eryar committed Jul 28, 2022
1 parent c5bddf8 commit e560944
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/en/development/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ aCurrentSession = PipeCad.CurrentSession
| CollectItem | Collect items by supplied type |
| SearchItem | Search items by supplied key and type |
| IncludeItem | Include the supplied item into current item |
| ReorderItem | Reorder the supplied item to target row |
| Translate | Translate the current item |
| Rotate | Rotate the current item |
| PickItem | Pick item in the 3d viewer |
Expand Down Expand Up @@ -682,6 +683,20 @@ PipeCad.IncludeItem(TreeItem theTreeItem, int thePosition)
| theTreeItem | TreeItem | The tree item will be included into current item |
| thePosition | int | The position in current item member list |

## PipeCad.ReorderItem
Reorder the supplied item to target row.

```python
PipeCad.ReorderItem(TreeItem theTreeItem, int theTargetRow)
```

**Parameter List**

| Parameter | Type | Purpose |
| :--- | :--- | :--- |
| theTreeItem | TreeItem | The tree item will be included into current item |
| theTargetRow | int | The target row you want move the item to. |

## PipeCad.Translate
Translate the current item by a vector.

Expand Down

0 comments on commit e560944

Please sign in to comment.