LetsConstructIT / Grasshopper-TeklaDrawingLink

Grasshopper components for interacting with Tekla drawing area
MIT License
50 stars 6 forks source link

Loop example #37

Open Mantsi opened 3 months ago

Mantsi commented 3 months ago

Hello. Could you shed more light on the loop component and how it could be used?

Again, thanks for the continuous updates on this tool! Very much appreciated!

image

olszewski-grzegorz commented 3 months ago

Hi @Mantsi ! This is a foreach loop. For an input list of objects, it will recalculate the components between the beginning of the loop and the end of the loop with subsequent elements from the list.

Typical usecase for this are the operations over multiple drawings. You can't do it in parallel, with a single flow due to Tekla limitations to having only one drawing opened at a time.

But, it's better to start with something simplier, like this: image Of course, for this you don't need a loop, but the essence is nicecly captured in this screenshot. Please look that Multipllication component is seen as run only once, but the type of input suggest that it is not possible (you see single wire = one object as input).

For the Tekla drawing operations, let's do something like this: image This script will operate on drawings selected in the document manager. It opens drawings sequentially and moves all of the views by the fixed vector.

You can try with those components based on the script: samples/Samples.gh