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

GDL
About building parametric objects with GDL.

PolyOperation using Dictionaries

squall_tmo
Booster

Hi,

 

I'm trying to figure out how PolyOperation works with DICT...

...but anytime I try my result is always empty or an error...

 

Does anyone know how this works?

where can I find a small example?

 

Many thanks in advance!

2 REPLIES 2
runxel
Legend

It is actually not that hard, but the first time might be confusing.

A few things to remember:

  • You need to open a channel, create two containers and set the source and the destination container.
  • After this init store the dict as the input.
  • The input dictionary needs to be set exactly as per GDL manual stated. If you have not enough, or too much (!) keys inside the dict the whole thing will fail.
  • The Parameters for the thing you want to do are stored with "preparefunction". The actual operation is a "callfunction".
  • Retrieve the polygon (also a "callfunction").

For anything more paste your code here and tell us what exactly fails.

Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
squall_tmo
Booster

Hi runxel!

 

Many thanks for your answer:

I'll try to follow your suggestions!

 

I'd also like to say thanks to Pertti P__sky that shared a sample in another topic:

https://community.graphisoft.com/t5/Developer-forum/My-StoreDictPolygon-attempt/m-p/327614/highlight...

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!