BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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 | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«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...

Learn and get certified!

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!