Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Looking for a Revit formula - Convert width to module width (890 -> 9M)

12 ANTWORTEN 12
GELÖST
Antworten
Nachricht 1 von 13
Marcus.Isacsson
791 Aufrufe, 12 Antworten

Looking for a Revit formula - Convert width to module width (890 -> 9M)

Hi fellas!

I wonder if anyone here knows it's somehow to convert widths to a module width, how would that formula look if possible?
For example:

Width
890 - 910 converts to 9M
990 - 1010 converts to 10M
1090 - 1110 converts to 11M and so on.

Would be neat!

Thanks in advance
/Marcus

12 ANTWORTEN 12
Nachricht 2 von 13
ToanDN
als Antwort auf: Marcus.Isacsson

Parameter2 = round(Parameter1)
Nachricht 3 von 13
Marcus.Isacsson
als Antwort auf: ToanDN


@ToanDN wrote:
Parameter2 = round(Parameter1)

Alright, that's something. But how do you go from 890 to 910 converting to 9M the whole way?

Nachricht 4 von 13
ToanDN
als Antwort auf: Marcus.Isacsson

If I understand correctly, you want to convert 890 to 910 mm to 9 meter. Is the concern the capital M? If you plan to use this parameter in a schedule or a tag, then the display of the capital M is a non issue.
Nachricht 5 von 13
Marcus.Isacsson
als Antwort auf: ToanDN


@ToanDN wrote:
If I understand correctly, you want to convert 890 to 910 mm to 9 meter. Is the concern the capital M? If you plan to use this parameter in a schedule or a tag, then the display of the capital M is a non issue.

Not exactly. Not meter, but we want to call something with the measuremt 890 to 910 -> 9M (not meter).

How can I set up a parameter for this conversion?

Nachricht 6 von 13
Marcus.Isacsson
als Antwort auf: ToanDN

I need this for doors, where everytime the width is between 890 mm to 910 mm it should say 9M instead of the measurement.
It's a standardised way of door measurements here.

Nachricht 7 von 13
chrisplyler
als Antwort auf: Marcus.Isacsson

Where should it say it? In the schedule somewhere? In a tag? In a dimension string?

 

Nachricht 8 von 13
Marcus.Isacsson
als Antwort auf: chrisplyler


@chrisplyler wrote:

Where should it say it? In the schedule somewhere? In a tag? In a dimension string?

 


Both in a tag and in a schedule would be really neat.

Nachricht 9 von 13
ToanDN
als Antwort auf: Marcus.Isacsson


@Marcus.Isacsson wrote:

I need this for doors, where everytime the width is between 890 mm to 910 mm it should say 9M instead of the measurement.
It's a standardised way of door measurements here.


It's possible.  I have done it to identify modular casework.  Before getting into creating a formula, what if a door is 850, for example?

Nachricht 10 von 13
Marcus.Isacsson
als Antwort auf: ToanDN


@ToanDN wrote:

@Marcus.Isacsson wrote:

I need this for doors, where everytime the width is between 890 mm to 910 mm it should say 9M instead of the measurement.
It's a standardised way of door measurements here.


It's possible.  I have done it to identify modular casework.  Before getting into creating a formula, what if a door is 850, for example?


Good question. We usually keep it between 890 - 910 because it's standardised here.
But It could be good to have a larger margin, maybe 870 - 930 or whatever.

Nachricht 11 von 13
ToanDN
als Antwort auf: Marcus.Isacsson

See Revit 2017 attached.

 

Capture1.PNGCapture2.PNGCapture3.PNGCapture4.PNGCapture.PNG

Nachricht 12 von 13
Marcus.Isacsson
als Antwort auf: ToanDN

Nice! Oh, looks so simple now! Will try it out, thanks for a nice walkthrough.

Question: Whats the purpose of "Empty field"? :leicht_lächelndes_Gesicht:

Nachricht 13 von 13
ToanDN
als Antwort auf: Marcus.Isacsson


@Marcus.Isacsson wrote:


Whats the purpose of "Empty field"? :leicht_lächelndes_Gesicht:


I originally created a field to enter the letter 'M' and combined it with DoorW so the column would read 9M.   Then I realized when combine the fields, Revit allows to add a Suffix, so I added 'M' directly as a Suffix of DoorW.  But the Empty field must be there, though empty, because a combine field must have a minimum of 2 fields.

 

So, if you have different letters for different door type, make a Type parameter and combine it in the same manner, then you can have things like 9M, 10N, 11L, etc.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report