Wir schätzen Ihren Input! Bitte nehmen Sie an der Umfrage zu Archicad 28 Startbildschirm und Lerninhalte/Schnell-Tutorials teil
am 2015-01-04 09:23 AM
4.2 Handling built-in images
Library parts can contain "built-in" images. LP_XMLConverter eases the access of this feature, too.
The steps of usage are the following:
Create a folder for the image files and place images in it. The images can be of any format known by ArchiCAD.
Refer the images from the XML files using the following syntax:
<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.
Use the image in the scripts of the library part containing it. The actual image can be identified by the SubIdent value, as this example shows:
UI_INFIELD "parName", xPos, yPos, width, height,
1, 3, 5, 1, ! mind the "3"
56, 50, 40, 40,
1, "",
2, "",
3, "",
4, "",
5, ""
am 2015-01-04 12:31 PM
am 2015-01-04 01:37 PM
am 2015-01-07 12:05 PM
am 2015-04-03 10:28 AM
am 2015-04-03 11:07 AM
cd C:"\Program Files\GRAPHISOFT\ArchiCAD 18"
pause
LP_XMLConverter.exe l2x e:\GDL e:\GDL\LibraryXML
pause
am 2015-04-03 12:00 PM
C:\Users\Heimo\AppData\Local\Graphisoft\ArchiCAD-64 Data Folder\ArchiCAD-64 18.0.0 AUT R1
copy C:"\Users\Heimo\AppData\Local\Graphisoft\ArchiCAD-64 Data Folder\ArchiCAD-64 18.0.0 AUT R1\ui_dachzub_xml.txt" e:\GDL\LibraryXML
pause
am 2015-04-03 04:13 PM
<GDLPict MIME="image/png" path="ui_dachzubehoer/9.png" SubIdent="2" platform="Win" SectVersion="19" SectionFlags="0"></GDLPict>
<?xml version="1.0" encoding="UTF-8"?>
<Symbol IsArchivable="no" IsPlaceable="yes" MainGUID="7B1F2557-6DB0-48A2-9576-1FE5B7A120BC" MigrationValue="Normal" Owner="1196638531" Signature="1196644685" Version="34">
<Ancestry SectVersion="1" SectionFlags="0" SubIdent="0" Template="no">
<MainGUID>F938E33A-329D-4A36-BE3E-85E126820996</MainGUID>
<MainGUID>103E8D2C-8230-42E1-9597-46F84CCE28C0</MainGUID>
</Ancestry>
<GDLPict MIME="image/png" SectVersion="19" SectionFlags="0" SubIdent="1" length_in_bytes="1868" platform="Win">
<![CDATA[
696D6167652F706E670089504E470D0A1A0A0000000D49484452000000320000
012C08020000000EF677B9000000017352474200AECE1CE90000000467414D41
0000B18F0BFC6105000000097048597300000E7400000E74016B24B3D6000006
........... editiert .......
16557FE3CE277ACB42685938A8D6E3E97492F0383C3CFC0FF77AA6BB49040E5F
0000000049454E44AE426082
]]>
</GDLPict>
<!-- GDL SCRIPT ===== GDL SCRIPT ===== GDL SCRIPT ===== GDL SCRIPT ===== GDL SCRIPT -->
</GDLPict>einfügen muss.
Convert ... Stiegenauswahl.xml
e:\XML\Stiegenauswahl.xml(71) : error: Error in image section 'GDLPict'; Invalid
Image File - could not open for reading
Convert ... Wendeltreppe1.xml
am 2015-04-03 04:38 PM
for i = 1 to BildNr
picture2 i, 1, 1, 0
add2 0.5,-0.2
Text2 0,0,i
del 1
add2 1,0
next i
am 2015-04-03 10:54 PM