Place lighting in revit model as per cad drawing

Dear All,

I have created dynamo script to add lighting fixtures in revit model as per cad drawing.
Refer attached video.
In 1st run, dynamo is adding ‘Type A’ lighting fixtures at location of Cad block ‘LTG_01’ .
And while running dynamo 2nd time to add ‘Type B’ lighting fixtures at location of Cad block ‘LTG_02’ then it is adding ‘Type B’ but automatically deleting ‘Type A’ lighting fixtures at the same time.
Could you please advice me to resolve this issue?

Thank you.

Add Lighting Fixtures As Per CAD Blocks.dyn (32.6 KB)

This is element binding at play.

Read over this thread for more info, but likely your best option will be to run the graph once with an invalid input to create nothing, then save it to remove any existing element bindings. Then henceforth only run via Dynamo Player where bindings are not applied.

1 Like

hi, here is some inspiration via dictionaries

Sincerely
christian.stan

Dear @jacob.small, @christian.stan

I was facing the same issue for another script.
But when I run dynamo through dynamo player issue is resolved.

Thank you.

1 Like