Results 1 to 10 of 10
Like Tree2Likes
  • 1 Post By ekkonap
  • 1 Post By GMcDowellJr

Thread: Mapping Parameters in Bulk

  1. #1
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    5,885
    Current Local Time
    11:06 PM

    Mapping Parameters in Bulk

    Is there any way to map parameters from a nested family to the host family programmatically? I'm updating a bunch of families and am remapping the same 4 parameters in every single one of my families and it's mind numbing. Something like the replace parameter function in CTC BIM Suite or Spectrum would be awesome.

  2. #2
    Moderator snowyweston's Avatar
    Join Date
    December 21, 2010
    Location
    C.LONDON
    Posts
    4,292
    Current Local Time
    04:06 AM
    I had to do this today.

    I too would be interested to know if "there's an app for that!" as I'm getting ever closer to throwing down a purchase order to make these tasks less painful.

  3. #3
    Senior Member ekkonap's Avatar
    Join Date
    May 23, 2011
    Location
    Netherlands
    Posts
    564
    Current Local Time
    05:06 AM
    did you try matching the old and new nested family names before loading the new one in, and taking care not to rename the parameters?
    Also, instance parameters with identical names will retain their association if you switch the family type, manually or by family Type parameter. For projects you'd need a shared parameter, in families any parameter will do.

    If the parameter set that needs to be associated is stable between versions, you could try coding all the parameter values into one number value in one parameter in the host family, and decoding it in the nested families. Bit technical, and rather useless if the above works for you, or if you need text or materials.
    Last edited by ekkonap; July 6th, 2016 at 07:14 PM.
    JWR likes this.

  4. #4
    Member
    Join Date
    September 19, 2015
    Posts
    160
    Current Local Time
    05:06 AM
    you could try coding all the parameter values into one number value in one parameter in the host family, and decoding it in the nested families.
    Hi Ekko,
    This sounds interesting. Could you please provide us with some explanations or a link?

  5. #5
    Member rbcameron1's Avatar
    Join Date
    August 15, 2012
    Location
    USA
    Posts
    191
    Current Local Time
    09:06 PM
    I thought Maller (twiceroadsfool) had some workflow that allowed for this. Let me do a quick search and see if I can find it.

  6. #6
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    5,885
    Current Local Time
    11:06 PM
    Quote Originally Posted by ekkonap View Post
    did you try matching the old and new nested family names before loading the new one in, and taking care not to rename the parameters?
    Also, instance parameters with identical names will retain their association if you switch the family type, manually or by family Type parameter. For projects you'd need a shared parameter, in families any parameter will do.

    If the parameter set that needs to be associated is stable between versions, you could try coding all the parameter values into one number value in one parameter in the host family, and decoding it in the nested families. Bit technical, and rather useless if the above works for you, or if you need text or materials.
    I did a lot of renaming of parameters and families Just something to watch out for next time

  7. #7
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    9,459
    Current Local Time
    10:06 PM
    Quote Originally Posted by rbcameron1 View Post
    I thought Maller (twiceroadsfool) had some workflow that allowed for this. Let me do a quick search and see if I can find it.
    Not for MAPPING the parameters of the nesteds to the parameters of the host, when you have renamed the PARAMETERS in the Nesteds.

    Chad and i talked about it at length last week. Its the one part that is still excruciatingly manual.

  8. #8
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,331
    Current Local Time
    08:06 PM
    Looks like that is exposed in the API... should be possible right code to manage the process. Anybody good with Python or VB?

    ParameterMap Members
    Yna_Db likes this.

  9. #9
    Senior Member ekkonap's Avatar
    Join Date
    May 23, 2011
    Location
    Netherlands
    Posts
    564
    Current Local Time
    05:06 AM
    Quote Originally Posted by Yna_Db View Post
    Hi Ekko,
    This sounds interesting. Could you please provide us with some explanations or a link?
    the basic principle is very simple. Say you have two integer parameters that can vary between 0 and 9. You can multiply one of them by 10 and add that to the other one with a formula in a third parameter. You can associate that parameter to onr in a nested family. There you divide by 10 and round down the combined value, giving you the first integer. Multiply by 10 and subtract it from the combined value gives you the second value.

    the need to restrict the range is a hassle, this method is best used for bool values translated to binary and then to decimals. I plan to do a writeup this summer fot use at RTC europe.

  10. #10
    Member
    Join Date
    September 19, 2015
    Posts
    160
    Current Local Time
    05:06 AM
    Hi everyone,
    For those who would be interested in a simple solution with Dynamo, I tried to find the beginning of an appropriate script before I go for a short vacation, and here is the result. Basically, I put an instance of the family with one of the nested element in the same Revit file, so that I can select them simultaneously. The parameters to be modified have to be instance parameters, otherwise they won't appear in the list. What is still strange is that the index numbers keep changing each time I run the script, but for a one-time use, it seems to do the job. This can surely be improved for more complex situations. Any reaction welcome, I'll post this in a Dynamo forum next week if needed.
    Mapping Parameters in Bulk-_paste-parameter-nested-family.png
    Ekko, thanks for the answer, I'll try that next week...

Similar Threads

  1. Mapping Revit parameters to IFC parameters
    By tuekappel in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: January 31st, 2016, 09:33 PM
  2. Replies: 0
    Last Post: August 28th, 2015, 11:45 AM
  3. Adding views to sheets in bulk?
    By cellophane in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: May 7th, 2014, 08:18 PM
  4. Copy shared paramters in bulk
    By cellophane in forum Architecture - Family Creation
    Replies: 5
    Last Post: June 26th, 2012, 04:27 AM
  5. text font or parameters bulk conversion
    By biff in forum Architecture and General Revit Questions
    Replies: 3
    Last Post: December 6th, 2011, 11:17 PM

Posting Permissions

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