Is there any way to successfully export a value of the "Function" property used in Revit for (walls, floors, doors, etc.)?
I've tried to export this property using almost all data types but without success.
If I understand correctly the accurate data type for this property is Identifier (when exported using Revit property sets), but If I try to use custom property set - the property is not exported.
I've made to export it using Integer and Real data types, but exported value is number instead of text value of Function enum.
Any help to export "Function" property accurately? tnx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Function" internally is a number. We should add some code that if the number corresponds to a visible string (basically, is an enumeration), we can export it as a string if asked for. But keep in mind that the number is universal, while the string is localized, so you may actually prefer the number.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for reply.
Clear explanation, however for a common user I believe that the acceptable solution would be exporting a Function value as a respective string since the string value is the value originally selected in the authoring tool (I don't think that common user understand or remembers which number corresponds to which string, especially if it's not explicitly marked).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any way to successfully export a value of the "Function" property used in Revit for (walls, floors, doors, etc.)?
I've tried to export this property using almost all data types but without success.
If I understand correctly the accurate data type for this property is Identifier (when exported using Revit property sets), but If I try to use custom property set - the property is not exported.
I've made to export it using Integer and Real data types, but exported value is number instead of text value of Function enum.
Any help to export "Function" property accurately? tnx
"Function" internally is a number. We should add some code that if the number corresponds to a visible string (basically, is an enumeration), we can export it as a string if asked for. But keep in mind that the number is universal, while the string is localized, so you may actually prefer the number.
Thanks for reply.
Clear explanation, however for a common user I believe that the acceptable solution would be exporting a Function value as a respective string since the string value is the value originally selected in the authoring tool (I don't think that common user understand or remembers which number corresponds to which string, especially if it's not explicitly marked).