I'm pretty new to writing gsm and gdl stuff and I'm trying my hands on it to help out in the firm. The guy who does the scripting, writes it directly on Archicad. Which kinda baffles me. No intellisense, no syntax highlighting, no code snippets. It's like I've regressed back to 1990s.
So I've found an add-on on vscode but it doesn't read gsm and seems pretty buggy from the github documentation. I'm wondering (and kinda certain), if someone has created an addon for stuff like sublime, notepad ++ or vs 2022, to easily script and debug these kind of files. That said I'm also wondering what do you guys use and how do you go about it.
Side note, I'm more familiar with JS, and python for web dev... hence why I'm asking about these text editors and IDE.
thanks and I hope there's a dev friendlier way of scripting gsm/gdl stuff.
There is a Sublime add-on, but just like the VSCode one it does not read the actual file so you end up needing to continuously copy and paste to debug... So after a while, like your colleague, I just went back to the lacking AC editor...
There have been wishing regarding an update to the IDE for a great many years...
One of the GS people back in 2019, who appears to have not migrated to this "new" forum, mentioned that an update to the IDE was in the works.
interesting... I'm impressed no-one really made a big deal about this. especially that gdl is this old.
Not going to lie, I'm getting an opinion no-one cares about gdl or gdl isn't used that often to warrant some productivity features.
Like it's not that bad if it's a simple chair or table objects but once you start going into more complex structures, some ease of life things would be great.
Sublime GDL (https://github.com/runxel/GDL-sublime) and gdlnucleus (https://gdlnucleus.com/) have implemented the XML Converter, so there is no need to copy and paste. Only run the BUILD process and F7 (or other shortcut) and you are in Archicad with the updated gsm.
I think that GS easy could implement this in GDL extension for Visual Studio Code (gsm to HSF and back)
Half a step forward?
yeah hopefully! I'd rather stay within Archicad environment like the commenter said... unless they made something where you can easily preview what you're making on vscode.
But **beep** man... this should have been priority long time ago. like flash back in the days had some level of syntax highlighting. oh well! I guess we'll just have to wait.
I use gdl for everything. Just about.
My own cabinets, windows, doors, wall coverings, wall framing, appliances, casing and baseboard, custom railing objects, and the list goes on.
At some point I will make some videos, it's been on my mind.
I actually don't keep any of my stuff to myself. Sometimes there are not active links but I try to give all objects that are not still in heavy development out for free.
I just remove links when nobody asks questions lol
Sometimes I think they are ready and then I find bugs that make it so I have to not release them.
On some occasions I've even posted my library in it's entirety.
What object would you like to see first, maybe I'll do a video today.
Doors and windows are currently being overhauled, if you want to pm me about your door needs I can see if that fits into how I'm doing things.
My doors are super custom to my template at the moment.
I've been coding GDL full time for about 15 years now and I agree it would be nice to have a more modern editor. I manage fine because GDL is where I started my coding journey.
It was only a few years ago that I started using Python and JS and discovered that it is a real pleasure to work with these languages in VS Code with all the efficient modern function. I could imagine being far more productive in my GDL code if the editor was similar.
I definitely do NOT like the idea of coding in another platform and then having to bring it into Archicad to test. As Lingwyser found with Sublime, I would get extremely frustrated by this as I am constantly going back and forth between the GDL code and the object.
Yeah I totally agree with you! I just realised I've opened a can of worms with this topic but I'm still baffled they haven't done anything to gdl for this long. I said earlier Flash had some level of syntax highlighting. That was back in early 2000 when all i wanted was to make a stickman game as a kid.
I kinda wish they sort this now than later but seems like the GS representative said it'll be in AC27, but the way he phrased it seems like never.
For me, as i am working in GDL like You, my use of extern editors was "just trying" and then i went back to the Archicad-Editor, because testing is so much faster. I really would like line-numbers, highlighting, bracket closing and so on - and i can have it in sublime, but i dont use it direct - just to type the code and then copy paste it direct in the Archicad-Editor back für testing in Archicad without any step between.
It's so weird that even a simple line numbering isn't implemented.
ALLPLAN has a gdl editor (SmartParts editor) that is light years ahead of Archicad's : https://help.allplan.com/Allplan/2021-0/1033/Allplan/index.htm#73531.htm
It has :
- line numbering
- syntax highlighting
- interactive reference guide with command and graphical info that changes following what you're highlighting (!!!)
- macros and pictures management
- translation management
As a Graphisoft GDL developer myself, I recommend using our VScode extension as it is continuously developed by us. You can find it here: GDL - Visual Studio Marketplace
Feel free to give us recommendations on what to add to the current features.
As someone mentioned before me, syntax highlight for the GDL editor in Archicad is in progress, I hope we can release it soon (AC27 or later...). In the meantime, even my own workflow is copy-paste between VScode and AC, it's not the best, but I got used to it.