Import Parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-10 02:47 PM
Is there a way to import parameters automatically from one object to other, instead of retype them one by one?
Thanks
Daniel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-11 08:48 AM
www.leloup.nl
ArchiCAD 9-26NED FULL
Windows 10 Pro
Adobe Design Premium CS5

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-11 09:40 AM
Erwin wrote:This will copy all of the values of parameters from one object to another with the same parameters.
Use the syringe (CTRL + ALT or CMD + ALT) to select the other object. It will retain the similar parameters this way.
It doesn't copy the parameters themselves if you are trying to script an object.
You are stuck creating them one by one unless you save an object that has the parameters you want with the 'Use as Subtype' button ticked (top of the scripting dialogue).
This will create a subtype that you can then use in other objects.
Add or delete parameters in the original object and all those using that subtype should automatically adjust.
You can set custom values in each object and hide those parameters you don't want to use.
Barry.
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-12 12:17 AM
Use the XML converter tool to convert both objects to XML. Then cut and paste the parameter sections in the xml, then convert the XML back to GDL.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-12 02:24 AM
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-12 02:38 AM
I use applescript to convert the files - here is an example
do shell script "Applications/Graphisoft/ArchiCAD\\ 18/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter x2l /XMLHOLDING/ /Applications/MacLibDevKits/GDLPROCESSED/" set alertResult to display alert "XML now converted to GDL"note: x2l is the command to convert the xml to library part. l2x will convert GDL to xml.
It will work 'as is' if you place two folders directly in your hard drive - called 'XMLHOLDING' and 'GDLPROCESSED'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-12 03:42 PM
So in your example you would place your XML files in the folder called XMLHOLDING then run the script and get the processed GDL files that would then be located in the folder GDLPROCESSED. Right?
Would the script going the other way GDL==>XML look like this?
do shell script "Applications/Graphisoft/ArchiCAD\\ 18/LP_XMLConverter.app/Contents/MacOS/LP_XMLConverter l2x /GDLHOLDING/ /Applications/MacLibDevKits/XMLPROCESSED/" set alertResult to display alert "GDL now converted to XML"
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-08-13 12:57 AM
There is more information on the commands in the converter help file. I think its only available in one of the developer downloads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-09-27 09:30 AM
So sorry for late reply. I think my English level created a misunderstanding here.
If you follow this link you'll see what I mean. The answer is there.
http://gdl.graphisoft.com/tips-and-tricks/own-subtype/
Seems that Barry's reply meet my needs.
My question should sound like this:How to create your own subtype?
Anyway thank you so much, it seems that I can learn new things regarding the XML converter.
Again. Thank you,
Daniel
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2015-09-28 05:28 PM
Here are some guidelines, check the "Template" box to create a new subtype.
GDL master window