Skip to content

Commit 02f5215

Browse files
authored
GetHotlinks command description
1 parent 7e5deac commit 02f5215

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ These JSON commands are **callable via Python**, see examples below.
1717
- [Quit](#quit)
1818
- [ReloadLibraries](#reloadlibraries)
1919
- [MoveElements](#moveelements)
20+
- [CreateColumns](#createcolumns)
21+
- [GetHotlinks](#gethotlinks)
2022

2123
## Publish
2224
Performs a publish operation on the currently opened project. Only the given publisher set will be published.
@@ -136,6 +138,25 @@ act = conn.types
136138
acc.ExecuteAddOnCommand (act.AddOnCommandId ('AdditionalJSONCommands', 'TeamworkReceive'))
137139
```
138140

141+
## ReloadLibraries
142+
Reloads the libraries of the current Archicad project.
143+
### Parameters
144+
### Response
145+
* errorMessage
146+
* Type: string
147+
* The error message upon error. If the command executed successfully, then there is no response.
148+
### Python Example
149+
```python
150+
from archicad import ACConnection
151+
152+
conn = ACConnection.connect ()
153+
154+
acc = conn.commands
155+
act = conn.types
156+
157+
acc.ExecuteAddOnCommand (act.AddOnCommandId ('AdditionalJSONCommands', 'ReloadLibraries'))
158+
```
159+
139160
## MoveElements
140161
Moves elements with a given movement vector.
141162
### Parameters
@@ -180,3 +201,21 @@ origosOfNewColumns = [{'x': 1.0, 'y': 1.0}, {'x': 5.0, 'y': 5.0}]
180201

181202
acc.ExecuteAddOnCommand (act.AddOnCommandId ('AdditionalJSONCommands', 'CreateColumns'), {'coordinates': origosOfNewColumns})
182203
```
204+
205+
## GetHotlinks
206+
Get the file system locations (path) of the hotlink modules. The hotlinks can have tree hierarchy in the project.
207+
### Response
208+
* hotlinks (required)
209+
* Type: array
210+
* List of hotlinks with locations and the children in the tree hierarchy.
211+
### Python Example
212+
```python
213+
from archicad import ACConnection
214+
215+
conn = ACConnection.connect ()
216+
217+
acc = conn.commands
218+
act = conn.types
219+
220+
print (acc.ExecuteAddOnCommand (act.AddOnCommandId ('AdditionalJSONCommands', 'GetHotlinks')))
221+
```

0 commit comments

Comments
 (0)