I am building an Add-In that creates some parameters and schedules as part of the functionality. I also need to access the parameters within my Add-In. However, we are creating the Add-In to support users with different languages, by following the currently running Revit Language. I notice that the built-in parameters (like Room Area, Number, Name, etc.) are localized, but I can't see how to do that with the parameters I add.
Any guidance would be appreciated.
-Ed
Dear Ed,
Sorry, tricky area.
You do not specify whether you are talking about family parameters or shared parameters.
Family parameters are identified by their name only, making them very hard indeed to localise. I would recommand just using characters like A, B, C, etc.
Possibly prefixing them with your four character registered developer symbol, e.g. ESIL_A, ESIL_B, etc.
Shared parameters can be identified using a GUID instead.
People have apparently succeeded at manipulating the shared parameter file to produce identical shared parameters with identical GUIDs in different languages:
http://thebuildingcoder.typepad.com/blog/2013/11/translated-shared-parameter-guid-consolidation.html
Oh, actually you do specify which parameters you mean, in the title. Sorry, missed that, just looking at the text.
Regarding project parameters, I would suggest forgetting about them completely, if you can. As far as I know, we have very little if any programmatic access to those at all.
I hope this helps.
Cheers,
Jeremy
Thank you for the information Jeremy.
Let me respond you your question about the type of parameters. We are creating them via the API as Project Parameters:
Then adding them to elements:
We would like "Space", "Name", and "UseClassification" to follow the language Revit is currently using. We do this with the rest of our Add-In (the ribbon labels, dialogs, etc.).
In reading the information you provided, the process of translating the parameters doesn't seem like it would switch the parameter labels if a different user opens the model using a different language version of Revit. Am I correct about that?
We have the same question/problem with Schedule names. If we create the schedule with a Spanish label, and a user opens the model with English Revit, he will see the Spanish schedule name; there isn't a way for us to provide translations. Am I correct about that?
It would be a great enhancement for the future.
Thank you again.
-Ed
Can't find what you're looking for? Ask the community or share your knowledge.