All scripts have an interface when needed (with thanks to our friends at data|shapes).
DEPENDENCIES
We worked hard to develop our scripts with as few dependencies as possible to make deployment and maintenance straightforward. By dependencies, we mean custom nodes that need to be downloaded for the script to be functional.
Languages
Our scripts are bilingual. The first section of each script starts with a Python script that queries the language of the Revit interface and conditions the text of the interface.
WARNINGS
These scripts are distributed free of charge by BIM One Inc. They have all been tested and used by our specialists before being released. However, Dynamo, like computing, is not an exact science. Some scripts may not work as expected on your computer or in your projects. We cannot be held responsible for your use of it. Obviously, we will try to correct any problems or answer your questions as best we can and according to our availability. Our goal is to follow up once a week.
Like any Dynamo script, it’s essential to understand that manipulations on a file can cause an unwanted result: Always save your file or a copy before proceeding.
*In order to have a correct result, it is necessary to close and reopen Dynamo every time you use the same script on the same file.
@JustinStirling input 7 in both pythons in the UI section you can specify indices if default values (you might have to make sure it sorts your default choices properly everytime.)
Thanks @Jean-Marc. Here’s the error I’m getting, and I’m pretty sure it has to do with how I’m specifying the indices. Any assistance would be greatly appreciated!
Works like a charm, thank you for the advice @Jean-Marc!
Are you aware of any changes to the API (or other workarounds) to be able to adjust the “include/exclude” for visibility graphics of linked models with Dynamo?
you might be able to use filters (I am not convinced writing it though)
I don’t know the end result you are expecting or the context
if that implies editing links, two options: open in background, or https://github.com/bvn-architecture/RevitBatchProcessor
I should have been a little more clear. I want to be able to manipulate the visibility of let’s say a linked structural or architectural model floor plan within my host MEP model. Looking to turn on/off certain parameters in the Revit Link tab for Model Categories and/or Annotation Categories. I’d also like the ability to turn on/off the Halftone and/or Underlay option for Revit Links as well.
we are going more and more off topic, best way would be _ I guess you know that _ assign a template properly setup with those parameters. and if you already have templates on you views, untick the whole link properties portion, assign a new template that has the proper parameter setup just for the link portion of the template, then reassign the original template.
Yes, exactly the “manual” process. Looking to find a way to automate it instead. I can post a new topic, but I think I already know what the answer is…it can’t be done until the Revit API is open to this area. Thanks for your time!
The problem must be in this part of the graph, since it gives back an empty list at item 1 in the list of the “List View Template parameter names group” , wich correponds to the shared parameters
Hi @abaroja,
you are right, there is a mistake in the filtering there. I just fixed it
All should be working as expected now,
cheers and thanks for the head’s up.
jm
Hi @Jean-Marc
I am having the same issue that @abaroja described above where the graph isn’t able to find shared parameters of the view template. I downloaded the updated code file you provided below but that doesn’t seem to have changed anything. I am very new to dynamo and don’t really know how to edit sections of the graph. Do you know how I can make it search for view parameters instead of system parameters?
@nicolas.becken@abaroja
Sorry it took me a while to get this one going.
I have fixed it, but not necessarly in the way you would expect it.
Using dynamo is becoming a bore to me. I prefer coding in python. I use more and more the pyRevit framework than dynamo as it is so much easier to deal with lists, exceptions, UI, …
So, I created a simple pyRevit extension with the tool, the steps to get it going is as follow:
run the foloowing command in windows command line or in powershell: pyrevit extend ui vt https://github.com/jmcouffin/view_template.extension.git --dest=C:\pyRevit vt stands for the extension name, you can change it if you want,
you can change the destination path for install at will
What it does is had a button to the pyRevit tab under Drawing Set → Views pulldown button → Set View Template Controlled Parameters
Note:
I did a PR on the pyRevit Repository, there a good chance the tool makes it through the next iteration of pyRevit, once it does, you will need to remove the folder where you installed the extension