Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

PolyOperation using Dictionaries

squall_tmo
Contributor

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
Ace

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.

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

squall_tmo
Contributor

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...

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!