Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

What do you guys write gsm/gdl scripts on?

Jack D
Contributor

Hello!

 

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. 

 

28 REPLIES 28

Lingwisyer
Champion

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.

AC22-23 AUS 7000
Self-taught, bend it till it breaks.

Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

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. 

 

if am not mistaken instead of updating it they came out with PARAM-O

In the end what is your Objective?
ArchiCAD 9 onwards

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)

Joachim Suehlo . AC12-25 . MAC OSX 10.15 . WIN10

Lingwisyer
Champion

https://community.graphisoft.com/t5/Developer-forum/GDL-Syntax-Highlight-for-VSCode/m-p/331583/highl...

 

Half a step forward?

AC22-23 AUS 7000
Self-taught, bend it till it breaks.

Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

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.

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

I suppose you keep your stuff as a competitive advantage but if it's possible I think it would be interesting with a webinar or a youtube displaying the possibilities with your library strategy.

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

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.

 

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Doors :). We suffer from localized doors that have the gastly >1025 parameters problem with our localized doors which causes all  kinds of mishaps.

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

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.

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Graphisoft love monochrome, why would they want to add highlighting that makes things easier to read 🙄

The resources wasted on param-o could have been used to turn the gdl interface into something that users wanted.

Apple iMac macOS Monterey / AC25UKI (most recent builds)

yeah, I feel that way too. I mean nothing wrong with showcasing new features but I think it is much better to improve the current set of tools they got. Don't get me started with the schedules. 😅

In the end what is your Objective?
ArchiCAD 9 onwards

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.

Creator of Cadswift's parametric GDL libraries
Creator of Infinite Openings and Component Catalogues
Push the envelope & watch it bend
website: https://cadswift.com.au/
YouTube: https://www.youtube.com/user/CADSwift/playlists

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.

AC5.5-AC25EduAut, PC-Win10, MacbookAirM1

MetalFingerz
Booster

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

😵

But hey...we have Structural....and MEP...and....well...

 

When talking about object editors I've played a bit with Bricscad https://youtu.be/e5GjX33G-k8

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

Zsuzsanna Bori
Graphisoft
Graphisoft

Hi! 

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.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!