You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-8Lines changed: 46 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Copy _one_ of these into the file on the right and save:
58
58

59
59
60
60
#### Don't like the themes?
61
-
You can edit the `.sublime-color-scheme` files directly. But remember to copy and rename the provided one. Otherwise an update would overwrite your changes.
61
+
You can edit the `.sublime-color-scheme` files directly – they are nothing else than `.json` files basically. But remember to copy your own color scheme into the `User` folder! Otherwise an update would overwrite your changes. (Of course you then need to point Sublime Text to your new color scheme like above.)
62
62
63
63
### GoTo, Auto completion, Snippets
64
64
The "Goto" feature of Sublime Text is pretty powerful. To gain full access you must use [Sublime projects](#workflow). If you e.g. quickly want to got to a subroutine place your cursor into the name and press <kbd>F12</kbd>. You will then jump directly to the definition.
@@ -73,27 +73,65 @@ You will find all the shipped snippets in the `Snippets` folder.
73
73
## Workflow
74
74
With the advent of ARCHICAD 23 we don't longer need third-party apps like [GDLnucleus](http://www.opengdl.org/Default.aspx?tabid=9748) for a Sublime Text driven workflow. The **LP_XMLConverter**, which is part of every Archicad installation, can now convert `.gsm` directly into subsequent `.gdl` scripts and vice-versa. This means an end to the abundant copy & pasting orgy of the past.
75
75
76
-
To use this feature you first need to set the path to where your ARCHICAD is installed. Open the package settings again and copy the respective item from the left to the right pane. Change the path accordingly.
76
+
To use this feature you first need to set the path to where your ARCHICAD is installed. Open the package settings again and copy the respective item from the left to the right pane. Change the path accordingly.
77
+
77
78
Afterwards drag and drop a folder with your 'gsm' (I recommend different folders for different gsm's) into Sublime Text and then create a Sublime project via `Project > Save Project As…`. Other benefits are a better working 'goto', 'auto completion', and the possibility to fast switch between different coding sessions on various gsm's.
78
79
You can now use the the two conversion options in `Tools > GDL`. For a quick access both items are reachable via a right mouse click on the editor pane. There are also key bindings on each.
79
80
The default for `Convert to script (gsm → hsf/gdl)` is <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>H</kbd>. `Build GSM from HSF (hsf/gdl → gsm)` has <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>alt</kbd>+<kbd>G</kbd>. Of course these can be adjusted to your taste.
80
81
81
82
### Places
82
-
If you convert between HSF and GSM the default place will be next to each other. However you can define a _global default path_ where any GSMs should be deployed to. This is useful if you have a central library already linked in Archicad.
83
+
If you convert between HSF and GSM the default place will be next to each other. However you can define a _global default path_(see [example](#example) below) where any GSMs should be deployed to. This is useful if you have a central library already linked in Archicad.
83
84
Of course you can overwrite this behavior by having a path on _project basis_. This can be set by opening the corresponding `.sublime-project` file and adding:
84
85
85
86
```json
86
-
"cmdargs":
87
+
{
88
+
"cmdargs":
87
89
{
88
-
"proj_gsm_path": "C:/Users/runxel/Desktop",
89
-
},
90
+
"proj_gsm_path": "C:/Users/runxel/gsm-dev"
91
+
}
92
+
}
90
93
```
91
94
92
-
If you substitute the path with `"default"` you can mimic the standard behavior: the GSM will be built next to the HSF. This is useful if you have set a global path in the package settings. Remember: Project settings override global settings.
95
+
If you substitute the path with `"default"` you can mimic the standard behavior: the GSM will be built next to the HSF. This is useful if you have set a global path in the package settings. Remember: **Project settings override global settings**.
93
96
94
97
Note: There's no path checking implemented at the moment! You have to take care by yourself that you're allowed to write at the paths accordingly.
0 commit comments