Convert Angle and Size Parameters to fill Text Parameters with Suffix

Convert Angle and Size Parameters to fill Text Parameters with Suffix

lars.olssonZJQNS
Participant Participant
824 Views
6 Replies
Message 1 of 7

Convert Angle and Size Parameters to fill Text Parameters with Suffix

lars.olssonZJQNS
Participant
Participant

I could not find this question in any of my searches, Apologies if double post
I'm trying to extract the Angle Parameter And the Diameter parameter into a third parameter called Prefab Name (text) with added Suffix
So If my Angle Parameter was 90.00° and my Diameter 2"
Prefab name would read: P90-200 or P90-2", or something like that

The Issue I'm running into is inconsistent units warning.
I'm quite new families and parameters in general,
Does anybody know if this is possible?

Cheers!

Example.PNG

0 Likes
Accepted solutions (2)
825 Views
6 Replies
Replies (6)
Message 3 of 7

lars.olssonZJQNS
Participant
Participant

Thanks for the reply,

I can Convert Angle in to a number and so on.

The Problem now is to get my numbers in to a Text parameter.

Is that possible?

0 Likes
Message 4 of 7

barthbradley
Consultant
Consultant
Accepted solution

Is this for Schedules?  Perhaps you can use Combine Parameters for this.

 

Combine Parameters 221.pngCombine Parameters 222.png

 

 

 

https://help.autodesk.com/view/RVT/2023/ENU/?guid=GUID-FB1AD8E6-86C1-422D-98F2-869A989C8EA2

0 Likes
Message 5 of 7

SteveKStafford
Mentor
Mentor

The kind of data conversion and harvesting you're describing isn't possible inside Revit. It is possible with Dynamo or other API programming. You'd have to supply the actual values you require in each type and then run a Dynamo graph you create to evaluate those parameters and create the ID value you want from that. It would need to be run again each time the family changes, new types are added for example.


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

0 Likes
Message 6 of 7

ToanDN
Consultant
Consultant
Accepted solution

Why do thyy need to be in one text parameter?  If you want to tag then create a label consists of the two parameters, with prefix/suffix and the desired units format .  If you want to show them combined in a schedule then use Combine parameters.

0 Likes
Message 7 of 7

lars.olssonZJQNS
Participant
Participant

Thanks for all the replies, 

I opted for combined parameter in schedule, which has worked fine,

I'm realizing the more I work in Revit that Dynamo can solve most issues

0 Likes