License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
GDL
About building parametric objects with GDL.
SOLVED!

Libpack and folder/file structure (not reading the translation)

I am trying to uderstand how the folder structure translation works. I have created a dummy library with 3 files. All what I need is the folder/file structure change, so I do not need now *.po files, just pathNameTable*.json. I did only INT for the sandboxing.

 

I cannot get it to work, probably some silly mistake.

Loading this folder as a libpack does load it straight without translating the path.

Can anyone help with it? Please

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

I have tested your folder, that's why I suggested this, because without this tag, it didn't work for me either. The same applies to the localizationData.info file. Even if you don't have dictionaries, you need the empty tag in the file and so on. I've attached a version that works for me.

My last resort is, maybe try checking if your Localization Preferences are set to "INT". 

View solution in original post

12 REPLIES 12
ZsuzsannaB
Graphisoft
Graphisoft

Hi Piotr! 

 

I'm not sure I understand your exact issue; please help me clarify a few things first so that I can help.

Do you mean by "loading this folder as a libpack" that you have compiled it with the LP_XMLConverter into .libpack format?

By "without translating the path", do you mean it doesn't change to the virtual paths defined in the pathnametable file? 

 

 

Hi,

I need only to apply the directory/filenames changes while translation is done, so I assume I have to include only pathNameTable*.json. I did myself a sandbox library with 3 objects in 3 libraries. In the sandbox I included only INT translation.

For testing purposes I initiated the option in GDL editing toolbar so AC 28 interprets the folder content as a libpack.

Anyway it does not work with the changes in pathNameTable*.json, I probably did a silly mistake...because I checked in some of the GLOBAL Lib libpacks and it should work.

PiotrDobrowolski_0-1732555507622.png

So I need to know what I did wrong  😛

 

 

We really do need some documentation about these library packs, what are the individual files within them for, how are they edited, what references what, how are they packaged together.

If this documentation is available, please share where it is, as it is not obvious to me.

 

I assume there will be many 3rd party library makers wanting to create library packages.

 

Also how to convert a library mapping table JSON file into a CSV file.

In the video (at 2.00) it shows the conversion, but it is not clear (to me at least) what file is run to make that conversion.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Dear Barry,

 

The documentation is available on the GDL center for 3rd party developers! You can find it here.

You can also find a less technical overview of library packages here under Library Documentation.

Let me know if you still have questions after reading them!

 

Best regards,

Zsuzsi

Hello,

 

Thank you for the clarification; I just wanted to be on the same page about your workflow to replicate it and see what might be missing. 🙂 

I'm still searching for the solution.

 

Regards,

Zsuzsi

Thanks @ZsuzsannaB 

There is a bit to read there but it looks like it covers what is what.

 

While I have you though, in the movie about modifying the mapping table that can be extracted from a template, at about the 2.00 minute mark, it shows converting the mapping value JSON file to a CSV file so it can be edited in Excel.

 

This is the movie link ...

https://graphisoft.sharefile.com/share/view/s852df7d2f10f47708082f329e3cc32d8

 

Is that also done with the LP_XMLConverter ?

Or is there some other magic involved.

I can't figure out what needs to be run or typed to do the conversion.

 

I have manually edited the JSON file in a text editor, but I would really like to know how to convert it to CSV so I can easily edit just the parts I want.

 

Thanks,

Barry.

 

 

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Your issue is in the package.info file. Try adding the empty <Dependencies></Dependencies> tag, so that the info file is valid. 🙂 

Unfortunately it is not the case 😞  I tested it also with this tag, without it, and fully copied tag from the libpack I have extracted from global library.

when loading the whole thing it always show as the native path in lcf.

json file looks like this:

PiotrDobrowolski_0-1732611577896.png

and in AC:

PiotrDobrowolski_1-1732611629594.png

So I am missing something that triggers the translation some way  😞

Solution

I have tested your folder, that's why I suggested this, because without this tag, it didn't work for me either. The same applies to the localizationData.info file. Even if you don't have dictionaries, you need the empty tag in the file and so on. I've attached a version that works for me.

My last resort is, maybe try checking if your Localization Preferences are set to "INT".