Tampilkan postingan dengan label python. Tampilkan semua postingan
Tampilkan postingan dengan label python. Tampilkan semua postingan

Dynamo List sorting - various methods, different Packages, plus a bit of Python?

Posted by Unknown Minggu, 19 Januari 2014 0 komentar
Check out the solution suggested by Andreas Dieckmann:

"I ended up using one of Python's abilities to handle lists which is called groupby() because I did not want my head to hurt thinking about how to go about this in Dynamo... ;-)
Here's how:
  1. Sort list by X values using the method Steve explains above
  2. Sort list by Z values 
    (Notice that within each group of equal Z values, the X values retain their order from the previous sort operation)
  3. Create a list of lists with XYZ values (sublist 0) and just Z values (sublist 1)
  4. Group that list of lists by the Z values (using a custom node with some Python code inside)
  5. Extract only the list of lists of XYZs by combining two map nodes
You will need the package Group List of Lists By Key for this to work.
(For what it's worth, I also uploaded another package called Sort List Of Lists this week which was related to that project but isn't needed here. But it might be worth checking out, too.)"



Heads-up:
https://twitter.com/Jbenoit44/status/420673580838293504

Baca Selengkapnya ....

Dynamo Revit Test Framework (by Ian Keough)

Posted by Unknown Rabu, 16 Oktober 2013 0 komentar
From the github page:
uses a python script to automatically generate Revit journal files. When run, these journal files handle opening a specified model, instigating the testing plugin, and running the specified test. This document outlines the components of the Dynamo Revit Test Framework and provides examples of how to run NUnit tests against Revit from the command line.
...
results file is a proper nunit results file and should be able to be parsed as such by continuous integration systems like Jenkins, etc.

via

Baca Selengkapnya ....

Remove all Views not on Sheets

Posted by Unknown Kamis, 02 Mei 2013 0 komentar
... by using a very wild script from dp Stuff!

Comes with a disclaimer:
Warning! Make sure you don't run this script on your central model - detach it from central first. Because once the views are gone - they are GONE! Don't tell me that I didn't warn you - use it at your own risk.
Download Revit IronPython Shell script
via
dp Stuff: Remove Working Views With Python Shell and Revit API

Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android tv.