Wyrażenia regularne umożliwiają przekształcenie kilku obiektów, takich jak np. cała seria przekrojów IPE, za pomocą jednego wpisu.
Przykład
Konwersja np. IPE120 w Tekla na IPE 120 | Euronorm 19-57; ... | SZS w RFEM 6 powinien działać również dla wszystkich innych przekrojów z serii przekrojów IPE.
W celu przeprowadzenia konwersji dla całej grupy przekrojów IPE, wyrażenie regularne ma następującą konstrukcję:
Konwersja z Tekla do RFEM 6
|
Tekla
|
RFEM 6
|
Wyrażenie regularne
|
IPE(\d+)
|
IPE $1
|
- Euronorm 19-57; ... AISC
|
Nazwa przekroju
|
IPE120
|
IPE 120
|
- Euronorm 19-57; ... AISC
|
Nazwa przekroju
|
IPE300
|
Rura stand. 8 AISC
|
W wyrażeniu (\d+) można wprowadzić dowolną liczbę dziesiętną. (IPE200, IPE300, ...)
Wyrażenie $1 odnosi się do wstawionej liczby dziesiętnej. Na poniższym rysunku wyrażenie regularne zostało dodane do tabeli konwersji Tekla.
W przypadku zastosowania dwóch miejsc dziesiętnych wyrażenie $1 odnosi się do pierwszej liczby, a wyrażenie $ 2 odnosi się do drugiej liczby. Poniższa tabela pokazuje to na przykładzie konwersji materiału.
Konwersja z Tekla do RFEM 6
|
Tekla
|
RFEM 6
|
Wyrażenie regularne
|
C(\d+)/(\d+)
|
C$1/$2
|
- EN 1992-1-1:2004/A1:2014
|
Nazwa przekroju
|
C20/25
|
C20/25
|
- EN 1992-1-1:2004/A1:2014
|
Nazwa przekroju
|
C30/37
|
C30/37
|
- EN 1992-1-1:2004/A1:2014
|
W tym artykule opisano i wyjaśniono możliwe problemy podczas definiowania wyrażeń regularnych.
Nazwa przekroju 400*400 nie jest konwertowana za pomocą wyrażenia (\d+)*(\d+).
Gwiazdka * ma specjalne znaczenie w wyrażeniach regularnych i dlatego nie jest interpretowana jako zwykły znak. Aby w zwykłym wydruku użyć gwiazdki jako pojedynczego znaku, można wstawić ją z ukośnikiem odwrotnym \ , aby unieważnić jej specjalne znaczenie.
Konwersja z Tekla do RFEM 6
|
Tekla
|
RFEM 6
|
Wyrażenie regularne
|
(\d+)\*(\d+)
|
R_M1 $2/$1
|
Nazwa przekroju
|
400*400
|
R_M1 400/400
|
Nazwa przekroju
|
150*200
|
R_M1 150/200
|
Nazwa przekroju RHS200*100*5 nie jest konwertowana za pomocą wyrażenia RHS(\d+)\*(\d+)\*(\d+).
Jeżeli zastosowanych jest kilka podobnych wyrażeń regularnych, może to spowodować użycie nieprawidłowego wyrażenia regularnego (patrz przykład na ilustracji).
Za pomocą indeksu górnego ^ można określić, że wyrażenie regularne zostanie użyte tylko wtedy, gdy pasuje do początku nazwy materiału lub przekroju. Wyrażenie ^(\d+)\*(\d+) nie jest już prawidłowe dla przekroju RHS, ponieważ nazwa przekroju RHS nie zaczyna się od numeru (np. 400x400).
Konwersja z Tekla do RFEM 6
|
Tekla
|
RFEM 6
|
Wyrażenie regularne
|
^(\d+)\*(\d+)
|
R_M1 $2/$1
|
Nazwa przekroju
|
400*400
|
R_M1 400/400
|
Nazwa przekroju
|
300*300
|
R_M1 300/300
|
|
|
|
Wyrażenie regularne
|
RHS(\d+)\*(\d+)\*(\d+)
|
RRO $1x2x3$
|
- EN 10219-2
|
- ALUKÖNIGSTAHL
|
Nazwa przekroju
|
RHS200*100*5
|
RRO 200x100x5
|
- EN 10219-2
|
- ALUKÖNIGSTAHL
|
Nazwa przekroju
|
RHS180*140*8
|
RRO 180x140x8
|
- EN 10219-2
|
- ALUKÖNIGSTAHL
|
Jak przekonwertować materiał/przekrój z programu RFEM 6 niezależnie od opisu normy?
W porównaniu z programem RFEM 6, programy Revit i Tekla przydzielają nazwy materiałów i przekrojów niezależnie od norm. Na przykład przekrój HEA 300 w programie RFEM 6 z różnych norm jest konwertowany na przekrój HEA 300 w programie Revit lub Tekla bez przypisywania normy do normy.
Konwersja z RFEM 6 do Tekla
|
RFEM 6
|
Tekla
|
Wyrażenie regularne
|
HEA (\d+).*$
|
HEA$1
|
Nazwa przekroju
|
HEA 300
|
- DIN 1025-3:1994-03
|
- Ferona
|
HEA300
|
Nazwa przekroju
|
HEA 300
|
- Euronorma 53-62; ...
|
- SZS
|
HEA300
|
Nazwa przekroju
|
HEA 300
|
- GB/T 11263-2017
|
- --
|
HEA300
|
Pokaż więcej