How to convert GDL object to XML using with LB_XML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2007-05-24 01:18 PM
Please Guide me if you know this procedure if will very helpfully for me .
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2008-04-06 10:53 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-28 06:34 PM
Ralph wrote:I am having problems using the XML Converter to convert a batch of files to XML. Running the following command:
To convert from XML to GDL, try something like this in the terminal:cd /Applications/Graphisoft/LibDevToolkit\ 11/Tool/OSX/LP_XMLConverter.app/Contents/MacOS/ ./LP_XMLConverter x2l /Users/rwessel/Desktop/LibraryXML/ /Users/rwessel/LibraryGDL/...where LibraryXML is the folder containing the source XML and LibraryGDL is the destination of the converted parts. You would need to use the path to your installation of LP_XMLConverter of course.
/Applications/Graphisoft/ArchiCAD\ 11/LibDevToolkit\ 11/Tool/OSX/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter 12x /Users/username/Desktop/ /Users/username/Desktop/i get a
However i can convert the same objects individually using:
/Applications/Graphisoft/ArchiCAD\ 11/LibDevToolkit\ 11/Tool/OSX/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter libpart2xml /Users/username/Desktop/Test.gsm /Users/username/Desktop/Test.xmlAny ideas what the problem could be?
Also has anyone had any success in running these batch conversions via Automator?
cheers,
os

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-28 09:16 PM
The correct parameter is l2x (letter "l" - as in libpart, 2 as in "to", "x" as in XML).
HTH,
Karl

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-28 09:54 PM
thanks Karl!
(and my what good eyes you have)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-29 12:51 AM
owen wrote:Glad that was it!
(and my what good eyes you have)
Many cool things are possible with the xml copies on a Mac - from finding content via Spotlight, to using all of the various Unix tools to find/change things globally in multiple objects. Have fun.
Cheers,
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-30 09:54 AM
owen wrote:Karl has done a great job of answering the first part of your query, so I'll tackle the rest. Yes, you can run this from Automator or any other tool which can run shell scripts, e.g. XCode or AppleScript. The former can be used to automatically build up to date libraries in conjunction with add-on builds. For Automator, look for the "Run Shell Script" action, and enter the same commands used in the Terminal.
Also has anyone had any success in running these batch conversions via Automator?
Central Innovation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-03-30 02:50 PM
thanks for the help - have not figured out Automator yet (get an error running the same Terminal command via Run Shell Script) but im sure it is just user error
More user-friendly GDL editing is a long standing wish .. are there any 3rd party apps you guys use for your editing or do you do it all in the ArchiCAD GDL editor? I was looking at BBEdit to edit (either the XML or just copy-paste the script) as it is possible AFAIK to create a custom language library/plugin to recognise GDL syntax/functions and format their display ... but i think that is a can of worms i'd rather not open (bit beyond me atm)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-04-05 02:13 PM
openGDL.org
you find a syntax scheme for PROTON Edtor (Windows)
GDL object creation: b-prisma.de

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-04-06 05:47 PM
Joachim wrote:Thanks for the link .. i cannot seem to find Proton for download either on the Proton site nor on Versiontracker (missing file on Version Tracker). Is it still available?
At
openGDL.org
you find a syntax scheme for PROTON Edtor (Windows)
Having a look at the syntax scheme it looks somewhat similar to a BBEdit Codeless Language Module (a .plist file). It has all the GDL commands & keywords up to AC10 so it could be a good start on creating one of these modules.
but maybe Graphisoft should do this if they aren't going to give us a better built-in editor soon?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-04-07 04:20 PM
I found this thread very helpful. After a few attempts I was able to convert libraries into xml, great. Thank you very, very much. Question: Is it possible to convert a library with it's full directory tree into one single xml-file (and back)? My goal would be to modify every objects in a library with a single stroke, using eg. applescript.
Thx a lot again and keep on rockin' in the free world.