Add Shared Parameters to multiple Families using Dynamo!

Sdílet
Vložit
  • čas přidán 12. 09. 2024

Komentáře • 89

  • @immi85
    @immi85 Před 4 lety +2

    Really time saver, supper cool 👍

  • @ahg3395
    @ahg3395 Před 4 lety +1

    Cheers Gavin, great work once again.

  • @erfajo
    @erfajo Před 4 lety +4

    First, thanks for using my nodes. let me explain the error. In some cases are files closed so fast that the output can't be shown by previous nodes. This is something I experience on a lot of my nodes, since I have a lot of nodes that works with background files.
    ...and the code block you used for your waiting mechanism do I also have a node for, namely the "Await" node.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Hi Erik, means a lot that you took the time to watch and comment; I'm a huge fan of the Orchid package - it's saved me so much time!
      That makes sense in regards to the error, given the output was still functioning I assumed it was something behind the scenes and not something to worry about.
      The await node is very helpful, I typically write it locally to minimize custom package usage, and also use the 'Passthrough' node in clockwork from time to time (the exposed node contents are sometimes my preference so that users can dig deeper into the functions - although I know ZT nodes are more efficient).
      Thanks again, and keep up the great work you do for the community!

    • @charlesball9522
      @charlesball9522 Před 4 lety +1

      Erik and Aussie BIM Guru - I am having some trouble with this workflow. I am using Dynamo 2.0.3 and Orchid 203. The problem I am having is when I run the workflow, the Shared Parameters are added to the first .rfa file in the folder, then none of the other files. I can see it opened them and saved them as there is now a backup copy. I get an error in the custom node: Parameter.AddSharedParameter that states, "www, xxx, xyz, zyz shared parameter could not be found". I have 9 SPs I am trying to load, the error only includes 4 of them, but the other 5 are also not added to the family. When I run the version of this workflow that is for a single family, there is no problem. I don't know where I am going wrong.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      @@charlesball9522 can you try out the copy on my github? I found the script would yield a warning usually, but work for me anyway.

    • @charlesball9522
      @charlesball9522 Před 4 lety +1

      @@AussieBIMGuru To be honest; I don't understand how to do that. EDIT: Ok, I figured that out. I ran the workflow again and got the same error message. This time however it did actually add all of the SPs to all of the families. Thanks for your time, and this channel, it's been amazingly useful.

  • @ahg3395
    @ahg3395 Před 4 lety +1

    Cheers Gavin, this has just saved me tons of hours!! Thank you :-)

  • @damirces
    @damirces Před 2 lety

    Just amazing how your brain works. Very, very cool Dynamo script.. Thank you Aussieee....

    • @AussieBIMGuru
      @AussieBIMGuru  Před 2 lety +1

      You're welcome! Haha thanks, I like to think outside the box :)

    • @damirces
      @damirces Před 2 lety

      @@AussieBIMGuru, always OOTB.. That makes BIM going...

  • @muratovbim
    @muratovbim Před 3 lety +1

    Cool!
    It'd be nice to see a script which can regroup already existing parameters in a family. Or I can just run the script for the second time with different list of parameter groups?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety +1

      Thanks Vadim! Modifying parameter groups isn't possible from what I've seen and tried - it rolls it back after the file is reopened. Some discussion on it here: forums.autodesk.com/t5/revit-api-forum/bug-changing-parameter-group-is-not-possible-in-api/td-p/9810741

  • @alowther6848
    @alowther6848 Před 4 lety +1

    Hi Gavin,
    Brilliant tutorial - thank you for some advanced free knowledge!
    An issue I ran into - I was following along your tutorial using the latest version of Orchid (v.230.0.1.7430) and the results were temperamental, most of the time returning families with no added shared parameters. I then ran the exact same SharedParamBatch.dyn directly from your Git that used an older version of Orchid (v230.0.1.7333) and it worked perfectly - shared parameters added.
    To test this theory I updated the orchid nodes (Directory.Contents, Document.BackgroundOpen and Document.Close) using v.230.0.1.7430 directly from your Git and it failed - resulting in families that did not have the shared parameters. Just FYI Perhaps this comment will be made redundant on a future update of orchid.
    cheers

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Hrm that's quite odd! Are you using Revit 2020.2.1?

    • @alowther6848
      @alowther6848 Před 4 lety +1

      @@AussieBIMGuru HI Gavin,
      Im using 2020.2 - could that be the issue?
      Any chance you are getting the issue with the latest verios of Orchid.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      I'm on 2020.2.1 so no issues there. I haven't updated my orchid yet but maybe there's a change made... I know Erik saw this video and might have changed node behaviour to better suit levels.
      Can you try with documents with no levels and the @L2 dropped to @L1? I did see him propose this to another user but it didn't work (in my build of Orchid maybe...).

    • @alowther6848
      @alowther6848 Před 4 lety +1

      @@AussieBIMGuru I tried it setting familiyDocument to no levels, parameters names, group etc to @L1 and it didnt seem to work returning families without the shared params.
      For whatever reason your version on Git works no dramas.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Odd!

  • @andreabell189
    @andreabell189 Před 4 lety +2

    Brilliant work ABG! Absolute lifesaver! Can i ask how do you fill complete the information for the shared parameter value? This would be great to know also. Thanks a million for your help :)

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Thanks Andrea, glad to be of help :).
      There are two ways to set type values, one would require setting the values of each type (or types). You could do this using the Orchid Package also, and would need to get the family types after adding the parameters.
      To set formulae instead, you can also use this package. I have a video on how to do it in a family document here: czcams.com/video/arEYfAJp7Y8/video.html

  • @campbellito101
    @campbellito101 Před 4 lety +1

    Thank you so much for this! Clear explanation and an incredible time-saver. I imagine in principle a script can be created to remove all parameters from a folder of families? How would advise going about that? Also, since I’ve got your attention, what sort of third party tools do you use for component library management - I don’t think a dedicated project space is the best solution. - keep up with the content!

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Thanks for the kind words and queries!
      Orchid has a node to remove parameters by name. You could make a list of parameter matches or test if it fails on read only parameters like keynote. An element.parameters and parameter.name node would do the trick.
      I actually build most content myself and use a robust naming/folder system to keep it under control. I've tried unifi before though, good choice for large scale deployment (100+ users).

  • @filippetrovic3173
    @filippetrovic3173 Před 4 lety +1

    Thank you.

  • @Livarc
    @Livarc Před 4 lety +1

    Hey Gavin, first I would like to say that your videos are really great.
    I made my own Dynamo-Script exactly how you did but it didn't work. I tested it with 2 parameter and only the first 2 families got these parameters. Using 3 parameters in my Excelfile the first 3 families got these parameters. I found out that if I let the document-input-level to standard and the other inputs to 1 it works for all families.
    But... anyway... 1000thanks to you =)
    best wishes Philipp

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety +1

      My thoughts might be that the Orchid package expects different level inputs. Typically users have informed me that lowering the levels for the parameter set node seems to help, so making my @L1 into no level, and @L2 into @L1. I believe the author updated this node after seeing my videos, under the expectation this would make the node easier to use (but my video a bit harder to implement...).

    • @javierperezmarin4121
      @javierperezmarin4121 Před 4 lety +2

      @@AussieBIMGuru Thanks for the video Gavin. What it worked for me is raise "familyDocument" to Level 2 and keep the rest without Level. Sometimes I don't understand what is going on but I just need to play a bit with the levels to get the right outcome.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety +1

      @@javierperezmarin4121 yes often it relates to how the Python/C# lists are told to work in the custom node that can dictate the function. Some nodes naturally work with some inputs run across all of the other sub-lists, so levels become the way to run a list for that across each parallel sub-list.

    • @waracana
      @waracana Před 2 lety

      @@javierperezmarin4121 Thank you both, indeed, Javier, I am using Revit 2021 today, Dynamo Revit 2.6.2.15772 and until I used your settings parameters got added, but their Parameter Group wasn't respected, they all came in under the same group. Best regards and again thank you both and Erik for all the nodes, I have been using Orchid for a while now, great nodes. Best regards

  • @xiaomi9865
    @xiaomi9865 Před 4 lety +2

    It great, save a lot of time. But how do you remove the share parameter if we need to put in a new share parameter

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      You can remove shared parameters using orchid also, but I'm not sure how to replace them. I'll have a look into the API later this week hopefully.

  • @rafaaracabral
    @rafaaracabral Před 4 lety +1

    Excelent video!
    I'm just curious, which plugin are you using to enable the align tool in the top bar?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Thanks Rafael!
      This would be part of Monocle by John Pierson. I have a video on this package here;
      czcams.com/video/A4XQXjxIl6U/video.html

    • @rafaaracabral
      @rafaaracabral Před 4 lety +1

      @@AussieBIMGuru another question: I wanted to add a parameter inside a family in Discipline: Structural, type of Parameter: reinforcement length; in group parameter: Dimensions, how should the colums in spreadsheet .xslx be named? tks.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety +1

      The type is ReinforcementLength and the group would be PG_LENGTH

    • @rafaaracabral
      @rafaaracabral Před 4 lety +1

      @@AussieBIMGuru I'm confused, I tried to do it, but it doesn't work. I wanted to add a shared parameter in all families in Structural Rebar Shapes folder. The warning given say "Warning: SharedParameter.Add operation failed.
      Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Revit.Properties.Resources.resources" was correctly embedded or linked into assembly "OrchidRB" at compile time, or that all the satellite assemblies required are loadable and fully signed." I think it is happening because there is no match between the columns . Can you help me?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      That warning sounds like a programming error (I do not recognize it). I would go to Dynamo forums or Erfajo's github for help, it might be a bug or API limitation.

  • @sythrax
    @sythrax Před 3 lety +1

    This is great! I need to add 65 parameters to over 400 families, so I have recreated your script and got it to work with Dynamo 2.6 for 1 file (using Document.Current) But I'm struggling to get this one to work. I'm sure 2.3 is quicker than manually doing the task, but before I do that, have you updated your scrip for the new Orchid nodes?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety +1

      No i dont typically upgrade my scripts, especially for orchid as the nodes seem to change in level management. I still do most work in 2020/2.3.
      Try swapping L2 to L1 and L1 to no levels. I recall that was needed in some builds.

    • @sythrax
      @sythrax Před 3 lety

      @@AussieBIMGuru Thanks Mate it worked! I'll share the updated script on the dynamo forum so those able to get Orchid can use it for Dynamo 2.6. Thanks again!

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety

      Cheers! Glad it was an easy fix.

  • @MycolKewn
    @MycolKewn Před 4 lety +2

    Hey ABG! Do you know if using Dynamo 2.3 to edit later version Revit families would cause any issues?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Dynamo 2.3 is only available in revit 2020, so if you ran this on 2019 or before version of family files it would update the files when they are opened to 2020.

  • @IbramVictor
    @IbramVictor Před 3 lety +1

    Great work .. thank u for the valued information .. Can I ask if there's a way to add SP to multiple families but with the Revit itself ? (I'm not a Dynamo user) ... thanks in advance

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety +1

      Not that I'm aware of unfortunately. Automation tasks really are only possible with dynamo and addins.

    • @IbramVictor
      @IbramVictor Před 3 lety +1

      @@AussieBIMGuru Thank you anyway 🙏 😊

  • @DANIEL78051
    @DANIEL78051 Před 3 měsíci

    Hola, excelente video, consulta, podrías hacerlo para modelos revit en lugar de familias?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 měsíci

      You could run from the project but you would need to programatically open the family documents from the model, run the code and then load them back in - quite different. My custom package (Crumple) has nodes that can achieve this.

  • @sjctc1140
    @sjctc1140 Před rokem

    I want to ask if I have to use Excel. Can I use an existing Revit shared parameters TXT file instead? Because I want to ensure the consistency of GUIDs.

    • @AussieBIMGuru
      @AussieBIMGuru  Před rokem

      This method uses the shared parameters from the active shared parameter file so they will have consistent guids.

  • @momokgoryo
    @momokgoryo Před 6 měsíci

    how to run Orchid in the Revit 2023 version? It's always automatically deleted from my computer when I try to download the samples, which is detected as viruss.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 6 měsíci

      Hrm not quite sure, havent encountered that before so might be a firewall issue at your work. Either check with IT if its work, or log an issue on erfajo's github if not.

  • @maciejcichon2985
    @maciejcichon2985 Před 3 lety

    OPENS AND CLOSES rfa FILES BUT DOES NOT ADD PARAMETERS
    Hi Gavin,
    I've tried to use your workflow for adding parameters to multiple families but it does not add new parameters to families.
    I've tried R2019 and R2021 with Orchid 200 and 206. I've also tried to use your script with replaces orchid nodes, the same effect.
    Appreciate, if you could give me some tips on what might be wrong?
    (Adding parameters to a single file works well)

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety +1

      I seem to recall the list levels were changed after i made this video by the author. Try replacing @L2s with @L1s and removing @L1s with longest lacing.

  • @nguyengiang1520
    @nguyengiang1520 Před 4 lety +2

    Can you show excel file, pls?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety +1

      Refer to the previous video on the channel, or you can download it from my github.

  • @simonjerabek3020
    @simonjerabek3020 Před 3 lety

    Hi Gavin, thanks for the great video! I am experiencing an error though and can't seem to find the answer to it.
    It works flawlessly when used on families from the default content library, however, when I want to apply this on families I am already using in a project (that have also some parameters already in, fx. from the supplier) on the SharedParameter.Add node I get this warning ''The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone'' and it does not work.
    Thanks in advance for any tips :)

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety +1

      I would suggest running the script anew or from dynamo player. Typically this workflow only really suits 1 run per active dynamo session in my experience. See if that gives desired result

    • @simonjerabek3020
      @simonjerabek3020 Před 3 lety +1

      @@AussieBIMGuru Thank you so much for your quick answers. Closing everything down and running it again worked as well as the option of dynamo player!

  • @ruizhang2269
    @ruizhang2269 Před 3 lety

    Hi, Gavin. Thanks for making this useful video! I followed your script but my script only allows me to add the shared parameter to the first .rfa file. Do you have any idea why this happens?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety

      The main things that may cause this are the level management in the add node, or the lacing. Make sure the lacing is set to longest, and try reducing the levels by 1 in the add parameter node (so @l2 becomes @l1, @l1 becomes none etc.). Some versions of Orchid seem to have alternative behaviour for node inputs.

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety

      Levels instruct a node how to work across lists. So if you have two simple lists and you do L1/L2, it will say 'for each element in the list (@l1), work across the other list (@l2).
      The challenge here is that typically custom nodes wont always work with levels correctly, as within the node there is list comprehension built in.
      I would go to erfajos github and lodge a query about this on the issues board so he can clarify the correct levels combination in this scenario.

    • @ruizhang2269
      @ruizhang2269 Před 3 lety +1

      @@AussieBIMGuru Thanks!!

    • @ruizhang2269
      @ruizhang2269 Před 3 lety

      ​@@AussieBIMGuru Hey, Gavin hope everything finds you well!
      Is that possible you could make a new video base on the new version of the orchid I think he updates the orchid node the logic behind them changed.
      Or maybe is that possible you could kindly check my script I have post everything on the forum the link is here:
      forum.dynamobim.com/t/add-shared-parameters-to-multiple-families-using-orchid/61976/5
      Thanks in advance! Hope you have a good day!

    • @AussieBIMGuru
      @AussieBIMGuru  Před 3 lety

      Unfortunately I don't tend to remake tutorials due to custom package updates. I only get so much time for CZcams so I try to send issues with packages to the package managers.
      I just tried it using the latest Orchid installer and it worked fine for me with document input @L1 and the rest @L2. I used the 210 installer and Revit 2022.
      Make sure the shared parameters exist, you are connected to the file in Revit and you haven't made any typos. These are all reasons people have had trouble with this in the past so far.

  • @pavillon9365
    @pavillon9365 Před 4 lety +1

    A suggestion. Why not even: Add multiple Shared parameter to a Revit Project?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Because if your library has them set up you don't have to populate the parameters in the project when you load them. If the parameter exists in the family already, you can pre-set all the data for it.

    • @pavillon9365
      @pavillon9365 Před 4 lety +1

      @Aussie BIM Guru Indeed. But for system families not. E.g. I want to add Layer names and Layer Thicknesses of a wall for "n" Parameters. How can I do insted of selecting "n" shared parameters and import them in once into a Project?

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      @@pavillon9365 you would need to create shared parameters as project parameters using Revit API or suitable custom nodes. Have a look into Genius Loci and Clockwork - I believe I've found this function in one of these two before.

    • @pavillon9365
      @pavillon9365 Před 4 lety +1

      @@AussieBIMGuru Many thanks for your suggestions.

  • @bhaskar5193
    @bhaskar5193 Před 4 lety +1

    Can I use dynamo without script??

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      Dynamo always needs scripts to run, but you can deploy a script using Dynamo Player if you don't want to open the scripting environment.
      I have a tutorial from a while back now that talks about setting up a script with Dynamo Player:
      czcams.com/video/oCDE_t6XoLI/video.html

    • @bhaskar5193
      @bhaskar5193 Před 4 lety

      @@AussieBIMGuru i want to add multiple parameters in multiple families what was format of shared parameters file??

    • @AussieBIMGuru
      @AussieBIMGuru  Před 4 lety

      You would need to use excel like I have here, or develop an alternative method. Dynamo or C# are necessary for that workflow.

    • @bhaskar5193
      @bhaskar5193 Před 4 lety

      @@AussieBIMGuru from where i can download that excel because i want to add shared parametrs into multiple families

    • @bhaskar5193
      @bhaskar5193 Před 4 lety

      ok so u uploaded the excel on github thanks