PACK 01 - SCRIPT 2/3 - MAP PARAMETERS - BIM One Inc

PACK 01 - SCRIPT 2/3 - MAP PARAMETERS - BIM One Inc.

We’ve learnt so much on the dynamobim forum and have decided to give back by sharing some of our internal scripts.

Here is script 2 on 3 for today

WITH THIS SCRIPT YOU WILL BE ABLE TO:

  • Copy the data of a parameter applied to several categories, while adding a prefix or a suffix or a specific separation character.
  • Bonus: add a prefix or suffix to the data of an already-filled parameter…

5-STEP PROCESS:

  1. Select affected item categories with source data

  2. Select the source parameter

  3. Select the parameter to which you want to copy the data

  4. If necessary, fill in the prefix, suffix, and separator fields. N.B.: If empty, only the source data will be transferred.

  5. Select the composition mode of the transferred data:

    • Prefix + separator + data + separator + suffix
    • Prefix + data + suffix
    • Prefix + separator + data
    • Prefix + data
    • Data + separator + suffix
    • Data + suffix
    • Data

The script will return the number of items processed.

WARNINGS:

  • Tous les (types de) paramètres ne sont pas équivalents ou transposables. Il faut respecter leurs caractéristiques propres, un peu comme des unités de mesure. Ainsi, un paramètre de texte ne peut pas être transféré dans un paramètre de nombre, par contre l’inverse est faisable. Un matériau ne se transfert pas dans un paramètre de type oui/non, etc. vous avez compris le principe!
  • Vous pouvez transférer de la donnée de plusieurs catégories, mais uniquement si le paramètre est appliqué à toutes les familles d’une catégorie. Sinon, il vous sera impossible de transférer correctement de la donnée depuis ou vers ce paramètre pour les familles en question.
  • Le script est également capable de transférer le nom du sous-projet ou de la phase vers un paramètre de type texte

and for the french speaking people :slight_smile:

UPCOMING SCRIPTS

We can not wait to release our next Dynamo Script Pack. The second pack should consist of file cleanup tools.

If you have any questions about these scripts, please do not hesitate to contact us on dynamo@bimone.com. If you’d like to receive the latest news, sign up here to our monthly newsletter.

More details and all three scripts on http://bimone.com/en/Blog/Dynamoscript1

et plus de détails sur les trois scripts sur http://bimone.com/fr/Blog/scriptDynamo1

INTERFACE

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 computers or in your projects. We can not be held responsible for your use of it. Obviously, we will try to correct any problems or answer your questions as much as possible 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.

BIM1_MapParameter.dyn (331.7 KB)

10 Likes

An updated version of the script
BIM1_MapParameter.dyn (332.6 KB)

2 Likes

in case you need to map area/surface parameters, you can edit the script as follow: