Results 1 to 2 of 2

Thread: Loading shared parameters

  1. #1
    Member
    Join Date
    2008-06
    Posts
    16
    Login to Give a bone
    0

    Default Loading shared parameters

    Is it possible to automate loading shared parameters into a family?

    For example, we load the same shared parameters into every light fixture family we use, so they can all be on the same schedule.

    But for every new family we use, we have to manually load every parameter one at a time. That's a lot of effort if we want to use a lot of different fixture families.

    Can someone post an example of some code that would load a parameter into a family?

  2. #2
    Active Member
    Join Date
    2015-10
    Location
    Escondido, CA
    Posts
    91
    Login to Give a bone
    0

    Default Re: Loading shared parameters

    I don't have sample code to share at the moment, but this is possible. One way to do it is to set the Application.SharedParametersFilename to the pathname of your shared parameters file, then call Application.OpenSharedParameterFile() to get the DefinitionFile. From there, you can read in the definition groups and then bind them to categories of elements.

    This has some sample code for binding the parameters, but uses new definitions rather than ones read in from a file: http://help.autodesk.com/view/RVT/20...8-1715A526081E

    Hope that helps,

Similar Threads

  1. 2014: Shared parameters error when loading a family
    By sarita in forum Revit Architecture - Families
    Replies: 2
    Last Post: 2015-07-23, 02:23 PM
  2. 2014: Criteria for Project Parameters vs. Shared Parameters
    By jagostinho in forum Revit - Platform
    Replies: 3
    Last Post: 2014-03-21, 02:46 PM
  3. Loading Shared Parameters.
    By sean.darnell in forum Revit Architecture - Tips & Tricks
    Replies: 1
    Last Post: 2012-01-05, 02:42 PM
  4. Loading/Importing Multiple Parameters at once
    By cyriousn in forum Revit MEP - General
    Replies: 17
    Last Post: 2011-10-12, 08:30 PM
  5. Shared parameters file loading
    By sifuentes in forum Revit Architecture - General
    Replies: 3
    Last Post: 2005-02-04, 04:20 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •