<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connecting an external editor to Archicad to edit the scripts in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280016#M3325</link>
    <description>Hi runxel,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for sharing your thoughts. &lt;BR /&gt;
&lt;BR /&gt;
I think it's taking time to reload libraries at my end because the template I'm using has some BIMcloud libraries which also get updated every time. (Perhaps I could work with the default Archicad template for object building.)&lt;BR /&gt;
&lt;BR /&gt;
Yes, it makes sense to not invest time into creating another VSCode extension for GDL when Graphisoft has started one. And it would be great to let the public contribute &amp;amp; develop it further. It was interesting to learn about 'language servers'.&lt;BR /&gt;
&lt;BR /&gt;
There were certain requirements of the GDL-Sublime extension that I discovered, including the one you told about the HSF directory to be of the same name as the GSM. I also found that the GSM file needs to be alongside the HSF directory for the conversion from HSF to GSM to work, even if the exported GSM goes to another location. (Not sure why HSF to GSM conversion requires the GSM file.) Maybe these notes could be added in the 'ReadMe' of GDL-Sublime.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
    <pubDate>Fri, 02 Jul 2021 14:54:47 GMT</pubDate>
    <dc:creator>dushyant</dc:creator>
    <dc:date>2021-07-02T14:54:47Z</dc:date>
    <item>
      <title>Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280004#M3313</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Does anyone know if there's a way to connect an external editor (like visual studio code) to Archicad, to edit the scripts of an object? This is to have syntax highlighting, better keyboard controls (like vim) and for a dark background soothing to the eyes.&lt;BR /&gt;&lt;BR /&gt;I know the script can be copied into an external editor and then pasted back into the script window in Archicad, but it's not practical when you have to keep testing the effect of frequent changes in the script.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:03:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280004#M3313</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-09-14T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280005#M3314</link>
      <description>- GDLnucleus: &lt;A href="https://gdlnucleus.com/" target="_blank"&gt;https://gdlnucleus.com/&lt;/A&gt;&lt;BR /&gt;
- GDLsublime: &lt;A href="https://github.com/runxel/GDL-sublime" target="_blank"&gt;https://github.com/runxel/GDL-sublime&lt;/A&gt;</description>
      <pubDate>Thu, 01 Jul 2021 07:57:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280005#M3314</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2021-07-01T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280006#M3315</link>
      <description>&lt;BLOCKQUOTE&gt;Joachim wrote:&lt;BR /&gt;- GDLnucleus: &lt;A href="https://gdlnucleus.com/" target="_blank"&gt;https://gdlnucleus.com/&lt;/A&gt;&lt;BR /&gt;
- GDLsublime: &lt;A href="https://github.com/runxel/GDL-sublime" target="_blank"&gt;https://github.com/runxel/GDL-sublime&lt;/A&gt;&lt;/BLOCKQUOTE&gt;

Thanks Joachim. I tried GDL-sublime and could convert to HSF. But when I try to convert it back to GSM, it is not happening. It does say it finished converting, but the file does not get changed. Have you used this tool? Can you help with this?</description>
      <pubDate>Thu, 01 Jul 2021 10:17:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280006#M3315</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-07-01T10:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280007#M3316</link>
      <description>Hi dushyant, I'm the author of GDL-Sublime.&lt;BR /&gt;
For the conversion process the HSF folder needs to have the same name as the GSM.&lt;BR /&gt;
Also note that errors in the GDL sometimes can lead to an abortion of the LP_XMLConverter, so nothing gets changed. The extension can't detect if the converter has terminated succesfully or aborted, so it still says "Finished".&lt;BR /&gt;
If you show the console you will have a more verbose statement on what happened.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But I have to admit that I have converted to VSCode. Mainly because of the well made Git integration, whereas Sublime tries to sell an extra, overpriced client. Also they didn't fix many long standing bugs. Sublime Text 4 has released a few weeks ago, but I had not time to dive into it and probably won't.&lt;BR /&gt;
&lt;BR /&gt;
There is an &lt;A href="https://marketplace.visualstudio.com/items?itemName=GRAPHISOFT.gdl" target="_blank"&gt;VSCode extension&lt;/A&gt; made by Graphisoft; it's okay-ish, but not really polished and lacks some of the stuff I did in my extension.&lt;BR /&gt;
&lt;BR /&gt;
E.g. the GS extension doesn't provide any help on the conversion process.&lt;BR /&gt;
If there is some interest I will share my setup.</description>
      <pubDate>Thu, 01 Jul 2021 10:54:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280007#M3316</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-07-01T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280008#M3317</link>
      <description>Hi runxel,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your message.  It converted to GSM successfully after I renamed the HSF data directory same as the GSM file, and kept it in the same location as GSM.&lt;BR /&gt;
&lt;BR /&gt;
I have a query:&lt;BR /&gt;
What is the actual workflow in this scenario to go about developing in GDL and testing with Archicad? Yes, I got the GSM updated. Now do I have to again open object in Archicad to have it updated? I'm not sure if a local directory can be linked as a library in Archicad.&lt;BR /&gt;
&lt;BR /&gt;
I checked out Graphisoft's GDL plugin for VSCode. I has syntax highlighting and some code-completion. I could not find if it can convert b/w HSF &amp;lt;-&amp;gt; GSM.&lt;BR /&gt;
&lt;BR /&gt;
So are you moving Sublime's GDL plugin to VSCode? I liked your syntax highlighting in Sublime. But VSCode is my primary editor at the moment and would prefer something of this sort in there.&lt;BR /&gt;
&lt;BR /&gt;
While I was trying to figure out the conversion with the extension in Sublime, I tried Graphisoft's conversion-tool via the command-line and was able to produce the GSM:  
&lt;PRE&gt;.\LP_XMLConverter.exe hsf2libpart E:\customObjects\test\hsf E:\customObjects\test\generated.gsm&lt;/PRE&gt;

&lt;BR /&gt;
I only need a way to have the object updated in Archicad automatically after conversion, without the need to re-open it.&lt;BR /&gt;
&lt;BR /&gt;
And yes, please share how you go about it, with your setup/workflow.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!</description>
      <pubDate>Thu, 01 Jul 2021 12:25:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280008#M3317</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-07-01T12:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280009#M3318</link>
      <description>I assume it would be the same as editing an object in a different AC instance, you don't need to reopen, just reload the relevant library.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Fri, 02 Jul 2021 03:25:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280009#M3318</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2021-07-02T03:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280010#M3319</link>
      <description>Hi Ling, &lt;BR /&gt;
So how do you set up a local directory with GSMs in it as a live Archicad library?</description>
      <pubDate>Fri, 02 Jul 2021 05:22:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280010#M3319</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-07-02T05:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280011#M3320</link>
      <description>&lt;BLOCKQUOTE&gt;dushyant wrote:&lt;BR /&gt;
Hi Ling, &lt;BR /&gt;
So how do you set up a local directory with GSMs in it as a live Archicad library?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Any folder that contains GSM objects can be loaded as a library.&lt;BR /&gt;
It doesn't have to be an LCF file.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 02 Jul 2021 05:28:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280011#M3320</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-07-02T05:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280012#M3321</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
I added a local directory as a 'linked library'. Thanks. I thought it should have been one of these: pla, ppa, pca, lcf, libpack.&lt;BR /&gt;
&lt;BR /&gt;
It does not auto-refresh the object after changing the GSM though. You need to reload the library, which takes more than a few seconds as it seems to reload all the connected libraries. So is this the bargain we have to make in order to use an external editor? Or is there a way around it?&lt;BR /&gt;
&lt;BR /&gt;
It's definitely faster when you save the changes in the opened object in Archicad. You see instant changes in the placed object without any reload. If only the built-in script editor had syntax-highlighting &amp;amp; a dark background ... &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks all for your help.</description>
      <pubDate>Fri, 02 Jul 2021 06:21:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280012#M3321</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-07-02T06:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280013#M3322</link>
      <description>&lt;BLOCKQUOTE&gt;dushyant wrote:&lt;BR /&gt;
It does not auto-refresh the object after changing the GSM though. You need to reload the library, which takes more than a few seconds as it seems to reload all the connected libraries. So is this the bargain we have to make in order to use an external editor? Or is there a way around it?
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
I would assume so, but I have never used an external editor purely because it seems like extra steps.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;dushyant wrote:&lt;BR /&gt;
It's definitely faster when you save the changes in the opened object in Archicad. You see instant changes in the placed object without any reload. If only the built-in script editor had syntax-highlighting &amp;amp; a dark background ... &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;
&lt;/BLOCKQUOTE&gt;

Can you copy &amp;amp; paste the script from the external editor into the open object in Archicad?&lt;BR /&gt;
I have no idea, but if you can that may be faster.&lt;BR /&gt;
So simply use the external editor as an editor, and not to save the object.&lt;BR /&gt;
&lt;BR /&gt;
I am not worried about the dark background, but I would certainly love syntax highlighting.&lt;BR /&gt;
And auto-completion of commands would be pretty good.&lt;BR /&gt;
&lt;BR /&gt;
I often wonder what those creating objects at Graphisoft use.&lt;BR /&gt;
Their objects are quite complicated.&lt;BR /&gt;
Do they only use the GDL editor or an external editor?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 02 Jul 2021 07:31:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280013#M3322</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-07-02T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280014#M3323</link>
      <description>Hi Barry,&lt;BR /&gt;
&lt;BR /&gt;
Yes, the scripts can be copied between the external editor and Archicad's script editor. Not a very comfortable thing to keep doing while you're trying to debug or tweak some values.. Anyway, will make do with it &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Yes, now that you mention it, I wonder what dev-environment they use at Graphisoft to build their objects.&lt;BR /&gt;
&lt;BR /&gt;
And I would also like to know the dev-setup of other users here in the community. So please share &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 02 Jul 2021 08:12:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280014#M3323</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-07-02T08:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280015#M3324</link>
      <description>Great to hear you managed it, dushyant!&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;dushyant wrote:&lt;BR /&gt;
What is the actual workflow in this scenario to go about developing in GDL and testing with Archicad? Yes, I got the GSM updated. Now do I have to again open object in Archicad to have it updated? I'm not sure if a local directory can be linked as a library in Archicad.
&lt;/BLOCKQUOTE&gt;

As Berry has mentioned you can just link any folder into the library.&lt;BR /&gt;
Yes, you have to reload the library after, but I've set that command to an easy reachable keystroke and for me it rarely takes more than second to reload the libs.&lt;BR /&gt;
In the future we could send a command via the Python connection which will automatically &lt;A href="https://github.com/tlorantfy/archicad-additional-json-commands/issues/1" target="_blank"&gt;reload the libraries&lt;/A&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;dushyant wrote:&lt;BR /&gt;
I checked out Graphisoft's GDL plugin for VSCode. I has syntax highlighting and some code-completion. I could not find if it can convert b/w HSF &amp;lt;-&amp;gt; GSM.
&lt;/BLOCKQUOTE&gt;

Like I said, it can't.&lt;BR /&gt;
I made a custom setup where this works, I will share this in a later post.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;dushyant wrote:&lt;BR /&gt;
So are you moving Sublime's GDL plugin to VSCode? I liked your syntax highlighting in Sublime. But VSCode is my primary editor at the moment and would prefer something of this sort in there.
&lt;/BLOCKQUOTE&gt;

No. I had already a lot of stuff ready, but GS beat me to it. At the moment I have no time to make a competing (but better) product. Instead I hope that GS will man up and just open source this thing already. No clue why they did not already do this. It would help everybody.&lt;BR /&gt;
Also the next big step, speaking in technical terms here for a second, would be to create a Language Server (LSP is a technology Microsoft invented). This Server can parse the code and is much more robust than the stuff used right now. At the moment syntax highlighting is done by big big ugly Regexes. And those are slow and ain't not smart. A server could easily e.g. detect if a variable is bound to be a string or numerical value, and then can say to the editor "please color this differently". It's very powerful, it's the future.&lt;BR /&gt;
&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;I wonder what dev-environment they use at Graphisoft to build their objects.
&lt;/BLOCKQUOTE&gt;

I wonder, too! For a while there was a screenshot of Sublime Text with my extension on the GDL online reference.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 02 Jul 2021 13:29:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280015#M3324</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-07-02T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting an external editor to Archicad to edit the scripts</title>
      <link>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280016#M3325</link>
      <description>Hi runxel,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for sharing your thoughts. &lt;BR /&gt;
&lt;BR /&gt;
I think it's taking time to reload libraries at my end because the template I'm using has some BIMcloud libraries which also get updated every time. (Perhaps I could work with the default Archicad template for object building.)&lt;BR /&gt;
&lt;BR /&gt;
Yes, it makes sense to not invest time into creating another VSCode extension for GDL when Graphisoft has started one. And it would be great to let the public contribute &amp;amp; develop it further. It was interesting to learn about 'language servers'.&lt;BR /&gt;
&lt;BR /&gt;
There were certain requirements of the GDL-Sublime extension that I discovered, including the one you told about the HSF directory to be of the same name as the GSM. I also found that the GSM file needs to be alongside the HSF directory for the conversion from HSF to GSM to work, even if the exported GSM goes to another location. (Not sure why HSF to GSM conversion requires the GSM file.) Maybe these notes could be added in the 'ReadMe' of GDL-Sublime.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Fri, 02 Jul 2021 14:54:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Connecting-an-external-editor-to-Archicad-to-edit-the-scripts/m-p/280016#M3325</guid>
      <dc:creator>dushyant</dc:creator>
      <dc:date>2021-07-02T14:54:47Z</dc:date>
    </item>
  </channel>
</rss>

