entity
实体相关 CLI 命令。
cmd_delete(fmt, file_id, ids)
删除指定实体(需 Dimine 运行)。
Source code in dimine_python_sdk\cli\commands\entity.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
cmd_entity_types(fmt)
列出 Dimine 实体类型的枚举值与中文名称映射表。
Source code in dimine_python_sdk\cli\commands\entity.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | |
cmd_get_selected(fmt, page_size, page)
获取用户在当前场景中手动选中的对象列表(需 Dimine 运行)。
Source code in dimine_python_sdk\cli\commands\entity.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |
cmd_select(fmt, file_id, ids, mode)
选中或取消选中实体(需 Dimine 运行)。
支持两种传参方式:
- 位置参数: select
Source code in dimine_python_sdk\cli\commands\entity.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
register_commands(subparsers, format_parent)
向 subparsers 注册实体相关子命令。
Source code in dimine_python_sdk\cli\commands\entity.py
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |