I am trying to write in a Sheet parameter in Revit as a part of a bigger graph.
To do everything correctly, I need to get the sorting in Dynamo exactly like it works in Revit in Sheet List Schedule. For now I am not able to do that with the sorting nodes in Dynamo.
Although Revit says that it uses only the Sheet Number for sorting in the Schedule, and Dynamo also uses only SortByFunction - Sheet Number the results that I get from the two are different. How does that happen and what can I do about it?
Thanks for the reply, but I don’t think that this is it.
I am using sort by function and that is my function - the graph works like it is, if I added the suggested wire it would not work.
Here, with wire, not working:
EDIT: To clarify: My problem is not that my graph is not working, but that it is not producing the expected result. There is maybe something different between the sorting mechanics of Revit and Dynamo, and I don’t know how to overcome it.
So I don’t believe Dynamo has access to the same sorting method that Revit uses (I may be wrong) so you are dependent on the nodes that are built in and the packages which people have made.
I think you’re always going to struggle when your numbering is so random…
Something to note is that the sheet number is actually a string, I suspect that if you split out the A, convert the rest to numbers and sort it might behave?
As you’re seeing the sort node you’re using is using all the 1s, then 10s, 11s etc down to 12. Once you remove the A, you can pad the sheet number so it has consistent numbers of digits (for sorting purposes) then sort? It should help?
Have a dig around for other sort nodes in different packages. I believe Orchid has one, perhaps other people have more suggestions…