DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
340 stars 188 forks source link

Add ability to get parameter values by GUID and BuiltInParameter name. #2188

Open ColinDayOrg opened 6 years ago

ColinDayOrg commented 6 years ago

Issue by dannypolkinhorn Thursday Sep 25, 2014 at 21:43 GMT Originally opened as https://github.com/DynamoDS/Dynamo/issues/2530


GetParameterValueByName isn't safe in situations where the parameter names are the same, curtain Grids for example, or for localization differences. Revit API documentation suggests using the BuiltInParameter name or a shared parameter GUID to ensure that you have selected the exact parameter you expect. Use case: http://dynamobim.org/forums/topic/curtain-wall-instance-properties/ Api Documentation references: Parameters: http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-E0F304BC-07B8-461E-8FB2-234106951B0A BuiltInParameter: http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-C0D9C62F-1BEB-412E-B5B4-E70E2EF4F378

ColinDayOrg commented 6 years ago

Comment by andydandy74 Friday Sep 26, 2014 at 03:36 GMT


:+1:

ColinDayOrg commented 6 years ago

Comment by ksobon Thursday Oct 08, 2015 at 23:38 GMT


@dannypolkinhorn if you download archi-lab_Grimshaw package you will find three nodes that extend this exact workflow. Here's an example:

capture

Please close this issue if this addresses your question.

Thank you,

ColinDayOrg commented 6 years ago

Comment by dannypolkinhorn Friday Oct 09, 2015 at 00:00 GMT


Hi Konrad, yes, I think this addresses one of the two parameter options, specifically getting the BuiltInParameter name. I think the forum post mentioned above would need a shared parameter GUID to resolve the issue. So, even though GUIDs aren't very user friendly, I would still like to see them added.

dannypolkinhorn commented 6 years ago

Agreed, best practice is to use the GUID.