Tutorials for using Dynamo with Fabrication Parts

I have looked everywhere to find a tutorial on using Dynamo with Fabrication Parts in Revit. There are many tutorials on how to design lines and shapes using graphs in Dynamo but there are very little to almost no tutorial videos on how to use Dynamo on Fabrication Parts in Revit. Am I not looking in the right place or what? I asked yesterday about changing the fabrication part colors for exporting to Stratus and Navisworks so they can keep the colors and pretty much all I got was to read Dynamo Primer lol. I don’t need to know how to make objects in Dynamo. I just need to know how to use Dynamo with Fabrication Parts. I’ve tried so many graphs I’ve lost count. Can someone point me in the right direction and please don’t point me to Dynamo Primer.

1 Like

Yeah,

Shoot guys

The Primer is suggested as a starting point because it covers the fundamentals of using Dynamo, not necessarily because of the specific content it has you create. The beauty of Dynamo is that it uses the existing APIs of the other applications it interfaces with. This means that you don’t need to know how Dynamo specifically interacts with Fabrication Parts. Fabrication Parts are just a category in Revit. If you understand how Dynamo interacts with Revit and you understand how Fabrication Parts work in Revit then you know how Dynamo interacts with Fabrication Parts. This is also why it may be harder to find content on the specific process that you’re after - the process for working with any Revit content is the same and there’s plenty of content on how to work with Revit content.

Also, if you’ve tried different approaches and they aren’t working… share them. It’s much easier for all of us to respond to specific questions or issues than provide an entire solution for a generic task.

So there are two things at play here. I’ll separate them with lines to help keep things straight. Please don’t take this as direct criticism - you aren’t in the wrong - but these need to be addressed for the benefit of the community not necessarily you and you alone.


The first thing going on is a misconception about the primer.

I am a power user. I have worked with firms in every corner of the earth. Helped industries which you never would have expected Dynamo to apply to. Between in person and digital interactions I have likely met more Dynamo users than almost anyone. And in all that time and all those people I have met… not once have I had someone ask me for help around a topic which is on the Primer.

This might be due to the primer being ‘self help’ (having done the exercises many times I likely scratch my head enough to know that isn’t likely). It might also be due to people knowing there is stuff there so why ask. But this isn’t because the primer is bad.

The primer is not a source for solving specific problems or it would take 10,000 hours to go through. The primer is there to teach concepts so that you can go about solving specific problems.

Most if not all Ither user facing tools in AEC (Revit, AutoCAD, Civil 3D, Forma) are limited in what you can do. They consist of is a series of buttons you push to get an outcome that similar to other outcomes. To simplify it further, those tools are your calculator app. Limited buttons produce limited results.

Dynamo is unconstrained as it is a programming environment, more akin to Visial Studio than Revit. This means you control what it does and at most a primer can help you get your feet wet. It is built to make you think there are limited buttons, but it’s a calculator app that can return a 3D model, the next great literary work, simulation of a car crash to test a child safety seat, BIM, CAD, or a pretty picture. You define what it makes - the rails are gone.

And while there are lots of tutorials, users who say ‘I know Dynamo’ and only know what they learned via a tutorial are often novice in the grand scheme of things.

So when the community pushes you to the primer (as I saw happen in your other post), know they aren’t doing so as there is a solution to your problem, but because there seems to be a bit of missing knowledge in the posing of the question.


The next issue is that Fabrication Parts are niche content.

The entire toolset is not just Revit technology but AutoCAD woth some added DB interaction as well. Stuff that could be done for other categories in Revit like changing object properties winds up being intentionally limited to keep the fabrication database from falling out of sync with the Revit model. As such the otherwise simple task like adjusting a dimension requires 3 extra steps to achieve, and is minimally exposed in the Revit API even then.

While this isn’t ideal, I have found that when there is enough demand the community will usually come up with a method to get stuff done - and this is no exception. Most of what can be done has been; however it isn’t necessarily maintained which may be a limiting factor for you.

The last complication in this area relates to the specifics of your query. People who want to help need to not only know Dynamo basics and fabrication part API basics, but also additional tools in both Navisworks AND Stratus (never even heard of this one before) which are entirely outside of the Revit API. And so while it may be that standard Revit API can achieve what you’re after, someone confirming it would have to first have all three toolsets installed, happen to have the same version of each that you are using, then build a dataset which matches yours to a reasonable degree, build the automation you are after, and finally test the result. Knowing this will take awhile to build, and that it takes more effort to maintain, how likely do you think someone would be to jump in and start this process manually if they didn’t also need this in their work? Community members will try to help out with specific questions readily when given, but generic workflows like this involving the niche topics… that’s a tall order.


And so this sums up the issues you are facing in getting what you seek. No answers yet, but it hopefully helps set up the context of your frustration. Now let’s try and find some answers.

Since this is somewhat niche, you’re going to have to author a lot of this on your own. To do that type of authoring you are going to have to learn the basics and even intermediate aspects of Dynamo. It’ll take a day to go though the primer, and that is the best starting point as it teaches the concepts you’re going to have to apply.

After you upskill yourself a bit, you’re going to have to document how to manage the task without Dynamo, as Dynamo can only do what Revit can do. And if you don’t know what you need to get Revit to do, you won’t stumble into making Dynamo do it. Write down every step, in order. What buttons you hit, what UI components you need. And what standards you might want to review.

After that, start to put your automation together. As you go though it, if you get stuck ask in the forum.

If you get stuck making something that should work actually execute then post a simple Revit file showing one element which needs to be modified and one element which has been updated, your Dynamo graph to replicate the progress so far, and an image showing the issue you’re hitting.

If you get stuck finding a node or script to accomplish a specific task, post what you have tried and a description of the task you are after.


So with that in mind - what are the steps you would have to perform to do this manually?

1 Like

Thank you for your reply. As stated before I am pretty new to Dynamo. We switched our piping data base for SYSQUE to Fabrication Parts and unfortunately Revit does not work as well with Fabrication Parts as it does SYSQUE. The main thing I need to do is make our model keep the colors of the systems that I make. In SYSQUE this is not a problem because I can just change the material parameters and the colors stay the same when I export. In Fabrication Parts it does not and it exports all of my systems the same white color. This isn’t as much of an issue in Navisworks because I can use an appearance profiler and change the colors in Navisworks to what I want them to be. Unfortunately Stratus does not have an appearance profiler. I watched this video https://www.autodesk.com/autodesk-university/class/Using-Dynamo-Fabrication-Parts-Revit-How-It-Can-Automate-Mundane-Tasks-2018#video from Autodesk University where the guy was able to do alot with Fabrication Parts using Dynamo and it did exactly what I need to do. I will post a screenshot of what he was able to accomplish below. Yet when I try to replicate this for some reason or another I get errors. I am reading through Dynamo Prime. I do get the concept of Dynamo although it is a bit confusing at times. I have circled below what I am trying to achieve in the list of scripts that the guy in the video has accomplished.

1 Like

I’m sorry, I circled the wrong one lol. What I am trying to do is set fab parts to Revit Material.

I think this image is what we need to help you get over the hump!

The relevant section of the primer is here: https://primer2.dynamobim.org/5_essential_nodes_and_concepts/5-3_the-building-blocks-of-programs/1-data

What this message is telling you is that the parameter “Fabrication Service” doesn’t expect a string (word) but something else. What that something is, i don’t know. But you can check it by extracting the parameter (I believe the node is Element.GetParameterByName - make sure it doesn’t say ‘value’ in it), and asking what it’s storage type is (I believe Parameter.StorageType though my node name may be off again). My gut tells me it’ll need an element ID, but not sure which or where you get those.

@Pipelayer

Have a look at your other topic you created :innocent:.