How to convert following Dynamo Script into Python

Hello everyone,
I prepare a dynamo script (see attached snip), now I covert the following script into Python. Its take to much time for run, that’s why I need Python script.
Suggest me to covert from Dynamo to Python step by step.
If anyone have other idea to cut the process and get the same results also share.

Thank You.

Is there a reason why you aren’t just changing the color of the rebar in lieu of tracing it with solids?

1 Like

As a results at last we want rebar as colour, but due to long process time I make it solid as a colour.

Can you help to make the same process in Python script.

I would respectfully suggest hiring someone to do this kind of work for you.

3 Likes

Step 1 - learn python…

I’ve converted dynamo into python a few times now and I basically sketch out (on paper) what i’m trying to do and if it’s exactly the same as the dynamo. You may want to add a few loops so work out where they want to go.

Then work out what your variables are and what lists you want…

Split the code into chunks - these can be your functions.

Test each function as you go along so you know you’ve got working ones and you’re not left with a total mess at the end.

Because you’re using a python block inside dynamo you can call the dynamo functions in python so it makes your life super easy.

Hth.

1 Like