2 weeks ago
Hi there!
I have a lot of old 2D objects and want to put preview picture on it, but I don't want to open every single part then, screenshoot, save exit.
Is there a some faster way to generate preview picture for GDL objects other then a screenshot?
Maybe to add a line of code that generates a preview pic from 2D or someting?
Thank you in advance!
2 weeks ago - last edited 2 weeks ago
Yes, it is possible with the LP_XML_Converter, with a special command.
The Sub-ID for preview images must be set to 0.
Library parts can contain "built-in" images. LP_XMLConverter eases the access of this feature, too.
The steps of usage are the following:
<GDLPict MIME="image/png" path="subfoldername/filename.png" SubIdent="3" platform="Win" SectVersion="19" SectionFlags="0"> </GDLPict>The path is relative to the main image folder, which is passed to the converter via the
-img
commandline parameter. SubIdent is the inner identifier of the image. This ID can be used to access the image from the scripts. In case of using -keepimagepath
commandline option, these filenames are invariable after the conversion. Otherwise the filenames become subfoldername/GDLPict_X.ext, where X is the inner identifier of the image ('SubIdent').UI_INFIELD "parName", xPos, yPos, width, height, 1, 3, 5, 1, ! mind the "3" 56, 50, 40, 40, 1, "", 2, "", 3, "", 4, "", 5, ""
2 weeks ago
How complex would that be to do as someone who never used LP_XML_Converter?
2 weeks ago
I created the GDLnucleus tool for MAC OS , which can do that in a nearly automatic way, after you have made some settings. It is a python-script which works together with Visual Studio Code.
Some Information you can find here:
https://www.b-prisma.de/anwender/gdlnucleus/
The latest version has to be updated, befor you can use it.
The Windows Version was created by Frank Beister an it can do the same, it works with Sublime Text, but I do not know if it is up to date now.
http://www.opengdl.org/Tools/Large-GDL-Object-Fission-Fusion
Both versions cost some money (MAC OS 25 Euro, WIN 50 Euro).