Skip to content

Revit Dynamo Generative Design: force GD to single threading #112

@HadiMoosavi

Description

@HadiMoosavi

Situation right now

I recently installed Revit 2023 and also updated it with the latest hotfix (2023.0.2 Hotfix released on August 3, 2022).
I am trying to develop a dynamo graph for Generative Design (GD). In this graph, there is a zero-touch node that I have developed myself that calls Robot Structural Analysis (RSA) through API. This graph works perfectly when tried without GD but when used in GD, things go wrong and it is like the node does not run

I understand that Dynamo GD uses 6 instances at a time to speed up the process and RSA API cannot be called multiple times. So I tried to use the hack described here: Generative Design in Structural Analysis / How to handle connections / Multithreading? - Generative Design - Dynamo (dynamobim.com)
This is to force Dynamo GD to use only 1 instance instead of 6. This hack seems to have worked for some people and probably previous versions. But I was not successful.

Could you please help me with this?

What improvement do you suggest ?

Could we possibly have an option in Dynamo to select the number of threads during GD. And for example, limit it to one when need in certain case like this?

How would this change improve the Primer ?

This would help developers use Dynamo GD for interesting applications.

Are you ready to write the content for this change ?

I use C# for my work. Let me know if I can be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions