Linked model transparency

Hello! Newbie to Dynamo, here. I was just wondering if there was a way to tweak a linked model’s transparency using Dynamo?

Hello @iizukatakuma0914 and welcome here :wink: still not much we can do with links…but one way i like is do by a viewfilter on linked element, maybe we can override the link instance/ type in view but not sure with transparancy, but know we can do with halftone…probably wrong long time ago i have played around with that, but you could try
Revit_yKUqGAIiV7

Thank you for the quick reply!

I tried using ViewFilters as you said, but I can’t seem to find a ParameterFilter specific to linked models? Or am I missing something?

yeah in my example i just create a viewfilter for arch elements categori without any rules, so it will basic only work if you active model dont have arch elements, but that fits me well as mep guy there never use or very rare use these categories…hope it make sense :wink:

PS maybe this post here could help you as well…Modify LinkVisibity with Dynamo - #4 by c.poupin

Hm…My main model shares a lot of categories with the linked one, many of which I don’t want transparent on the main model, so I don’t think ViewFilters would be right for my situation.

As for the LinkVisibility post, it’s…a lot to say the least lol. I’ll take a look when I have the time to.

I very much appreciate the advices, though. Much appreciated! :folded_hands:

you are welcome, but in some cases it could work even if they share categories, but then it will depends on these categories dont share rules…for filter, but know it could be a longer story, and then probably faster just do manuel on VG links…:wink:

Filtering by Category and (not) Workset should do the trick. Anything that isn’t on one of your main model’s worksets, which should include all linked model elements, would then be filtered.

Regardless, you need to determine how to handle this in Revit first. Once you have logic, then you can look at automating it with Dynamo.

Hm…Well, I was thinking of messing with the transparency property override graphics settings of the Revit link by category as is shown below (sorry for the Japanese UI)

Although…I don’t really know how to only get the categories of the linked model.

Assuming you’re in a recent version (2024+) of Revit, this is possible via the API.
SetLinkOverrides Method

The reason I suggest you determine your method first (and then automate it), is that you can usually simplify your Dynamo needs with a good process. Obviously filter creation and category overrides can easily be handled through the Revit UI - automating them isn’t a huge time saver. If you’re wanting to save time in applying those settings to multiple views, then a View Template is still an easy option. If you want to automate assigning View Templates to a large number of views, then that’s still a much simpler task than automating individual overrides for all those views. Find the best method for your needs and then look for a way to automate it.

I apologize for not replying earlier. I’ve had a turbulent day yesterday. I’ve decided it’s probably best if I just used a view template instead.

Thanks for the help!