Dynamo Door Tag Script Help

Dynamo Door Tag Script Help

sdWJKH8
Explorer Explorer
1,972 Views
7 Replies
Message 1 of 8

Dynamo Door Tag Script Help

sdWJKH8
Explorer
Explorer

New here and been looking through the forums for some help on creating a door tag that pulls the room number then adds a suffix in sequential order. I've found a couple of examples on here and I feel like I'm close but I hit a point where I'm not sure where the issue is coming from. Here's what I've got:

 

The script:

sdWJKH8_0-1663602634060.png

All I need to happen is to get the "To Room No." door parameter to be the room number the door is in. Then using a custom door tag with a label to show that parameter on the tag. 

 

What I'm Getting:

sdWJKH8_1-1663602767516.png

Sometimes it works and sometimes it doesn't. In the door schedule the room numbers the doors are in are showing up correctly but I don't know where the dynamo tag script is getting these numbers from. Granted, there is a room numbered 509 in the project however its nowhere near the door shown.

 

Any advice?

0 Likes
1,973 Views
7 Replies
Replies (7)
Message 2 of 8

ToanDN
Consultant
Consultant

Try this one.

0 Likes
Message 3 of 8

rxi.gg
Advisor
Advisor

can you share the model and the script to check them?

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

0 Likes
Message 4 of 8

sdWJKH8
Explorer
Explorer

sdWJKH8_0-1663603930231.png

is there a package where this node definition comes in?

0 Likes
Message 5 of 8

ToanDN
Consultant
Consultant

@sdWJKH8 wrote:

sdWJKH8_0-1663603930231.png

is there a package where this node definition comes in?


Replace the built-in node, it gives a warning but till spits out the correct result.

 

ToanDN_0-1663606235333.png

 


.

0 Likes
Message 6 of 8

sdWJKH8
Explorer
Explorer

As you mentioned it's giving me some error warnings, though the tags in the project remain incorrect as they were.

sdWJKH8_0-1663606642596.png

 

sdWJKH8_0-1663605991281.png 

sdWJKH8_1-1663606008870.png

at this point I'd attach the Revit file and script file, but the Revit file is too large for these forum posts allowance

0 Likes
Message 7 of 8

ToanDN
Consultant
Consultant

Not sure what happened at your end but I did a test run and it worked here:

 

ToanDN_0-1663606499724.png

 

0 Likes
Message 8 of 8

L.Maas
Mentor
Mentor

Are your rooms placed ok? For example if your rooms are too high they might go through next floor and cause confusion for the script.

As mentioned by other try to upload your project (Revit version?). You can strip your project (verifying that issue is still there) and then upload or instead use a service like dropbox/wetransfer to upload the project and post the link.

 

Also try other nodes like these from clockwork

LMaas_0-1663665797813.png

Besides the Door.Rooms, this package also has the other way around Room.Doors that might help in analyzing the problem.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes