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: 

how to script a Formula: IF type/code="text 1", then length=A*2, if IF type/code="text 2", then length=A*10

2 ANTWORTEN 2
GELÖST
Antworten
Nachricht 1 von 3
heichan88
331 Aufrufe, 2 Antworten

how to script a Formula: IF type/code="text 1", then length=A*2, if IF type/code="text 2", then length=A*10

Hello,

I need a simple model to change its formula according to its name (eg identity, subcategory, Y/N etc), for example:
if its name/code is "square", then its width=A*2
if its name/code is "bar", then its width=A*10

It is expected to be a simple model, not by nest, bcos now it is just a begnining of a basic component, but already too many many families types with many nests, see enclosed picture, so want to be simplified at this begenining

屏幕截图 2021-11-01 100548.png

please advice,

Thanks

2 ANTWORTEN 2
Nachricht 2 von 3
ToanDN
als Antwort auf: heichan88

Nachricht 3 von 3
heichan88
als Antwort auf: ToanDN

I try the code to be interger like 1, 2, 3 it works 

now trying other ways Y/N etc.....will seek advice later

屏幕截图 2021-11-01 102727.png

 

Thanks, Mr ToanDN

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