Slide background
Slide background

LRCZ Blog

Just another WordPress.com site

Touch and go

February 27, 2019

So let’s play a little game of Touch and Go – the client request this time was to create a Dynamo script that would do the following:

  • Allow selecting elements of various categories
  • Get all available quantities out of the elements
  • Display sums of quantities

Well here is the script:

Capture.png

Link to script here

So what it does is that it will prompt you to select elements in your model:Capture

And the result you get displayed in a Windows form:

Capture

Nothing too fancy but getting to the Windows form display is in a way a noble idea because it is just a few lines of Python – see here:

Capture

This is the code behind it

Capture

Simple – but elegant – and life again is good…

Posted in: Uncategorized