We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How to convert GDL object to XML using with LB_XML

Anonymous
Not applicable
Dear Archicad User i am doing some experiment how to convert GDL object to XML format using with LB_XML Converter Tools in (Lib Dev Tool kit).

Please Guide me if you know this procedure if will very helpfully for me .

thanks
23 REPLIES 23
Ralph Wessel
Mentor
SandorP wrote:
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.
There's no need to merge all the XML files into a single file to accomplish this. You can run a script across multiple files in a directory, and plenty of text editors will allow find/replace operations to be applied to multiple files.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Ralph wrote:
SandorP wrote:
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.

There's no need to merge all the XML files into a single file to accomplish this. You can run a script across multiple files in a directory, and plenty of text editors will allow find/replace operations to be applied to multiple files.


Thank you very much for your answer. This is what I gathered by now. I started looking around for bits of applescripts, but not much luck...

So far I've only managed to create an applescript application that opens the xml files. I've found some good clues to have it open all files within a folder (with subfolder). It's the search-and-replace part I can't seem to grasp.

Any clues?
Ralph Wessel
Mentor
SandorP wrote:
It's the search-and-replace part I can't seem to grasp. Any clues?
If you want to do a search and replace across multiple files, just use a text editor like TextWrangler (free application). You can perform a search and replace simultaneously across multiple files by using Search > Multi-File Search, and either picking the target folder or opening all the XML files in TextWrangler and selecting the option to search and replace across all open documents.

There are plenty of other text editors or IDEs (e.g. XCode) that will do the same job, but TextWrangler is free, quick, and easy to use (and available through the Mac App Store too).
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Ok. I'll try TextWrangler. Thanks again.