[Pregunta] Plankopf teilweise automatisieren


Guten Tag,

eventuell könnt ihr mir bei dem Thema automatisierter Plankopf weiterhelfen. Ich habe die folgende Ausgangssituation:

Im Planteilbildnamen füge ich den Dateinamen (Plannamen) ein. Mit Hilfe dieses Namens würde ich gerne Textfelder im Plankopf als „Legende“ einfügen. Der Planname setzt sich wie folgt zusammen:

51103_ALL_ALL_GRV_Grundriss Fundamente_00005_PR_01

Die folgenden Zeichen würde ich gerne herausfiltern "51103" & "00005" und im Plankopf-Textfeld "Plannummer" einfügen. Dabei sind die ersten 5 Stellen (51103) einfach zu filtern mit der folgenden Formel „MID(@445@;0;5)“. Den zweiten Nummernteil würde ich gerne vom Ende des Dateinamens filtern. Dementsprechend -11 Zechen und dann die 5 Zeichen in blau. Der Text „Grundriss Fundamente“ ist ein Freitext und kann variieren und kann Leerzeichen enthalten. Wie kann der hintere Nummernteil gefiltert werden?

Mit dieser Formel könnte ich dann auch das „PR“ und „01“ am Ende des Dateinamens herausfiltern und dementsprechend den Plankopf automatisch befüllen lassen.

Besten Dank im Voraus,

Adjuntos (1)

Type: image/jpeg
Descargado 124 veces
Size: 119,71 KiB
11 - 20 (21)

I tried it, but I get an other result. Here you can see my steps:

1. open function.vbs
2. add your function -> Attachment 001
3. safe
4. open Allplan
5. choose "Teilbild"
6. add a new cell with the formula -> Attachment 002
7. add the formula -> Attachment 003
8. add the cell on the Teilbild
9. create a legend -> Attachment 004
10. safe the legend
11. open drawing and add the legend
12. my result -> Attachment 005

You can see my result is "11".

Adjuntos (3)

Type: image/png
Descargado 36 veces
Size: 112,40 KiB
Type: image/png
Descargado 22 veces
Size: 47,81 KiB
Type: image/png
Descargado 21 veces
Size: 26,55 KiB

attachment 4 and 5.

Adjuntos (2)

Type: image/png
Descargado 30 veces
Size: 48,43 KiB
Type: image/png
Descargado 32 veces
Size: 53,98 KiB

Can you fix it like this and try again?

Function sagdan(yazi,sayi)
sayi = CInt(sayi)
yazi = CStr(yazi)
sagdan = Right(yazi,sayi)
End Function

Hatem OZDEMIR
Architect | Allplan Trainer | BIM Manager
Website: http://www.mimcad.com
Website: http://www.bimakademi.com
e-mail: hatemozdemir[at]gmail.com
Ankara / Turkiye
LinkedIn-Profil
YouTube

It is the same result.

I tried the following formulas for the drawing file name in Allplan 2023 and it works fine. If it doesn't work, there may be a problem with your functions.vbs file.

51103_00005 => formula: MID(@445@;0;5) +"_"+ MID(v:sagdan(@445@;11);1;5)
00005 => formula: MID(v:sagdan(@445@;11);1;5)
PR => formula: MID(v:sagdan(@445@;11);7;2)
01 => formula: MID(v:sagdan(@445@;11);10;2)

Hatem OZDEMIR
Architect | Allplan Trainer | BIM Manager
Website: http://www.mimcad.com
Website: http://www.bimakademi.com
e-mail: hatemozdemir[at]gmail.com
Ankara / Turkiye
LinkedIn-Profil
YouTube

Adjuntos (1)

Type: image/jpeg
Descargado 26 veces
Size: 69,41 KiB

I tried all your formulas, but it doesn't work. When I create the Legend I allways choose the following functions:

1. 006
2. 007
3. 008

Adjuntos (3)

Type: image/png
Descargado 34 veces
Size: 26,24 KiB
Type: image/png
Descargado 35 veces
Size: 11,36 KiB
Type: image/png
Descargado 30 veces
Size: 67,57 KiB

It works fine (snap1) on my computer. Can you check the layout attributes (snap3)

Hatem OZDEMIR
Architect | Allplan Trainer | BIM Manager
Website: http://www.mimcad.com
Website: http://www.bimakademi.com
e-mail: hatemozdemir[at]gmail.com
Ankara / Turkiye
LinkedIn-Profil
YouTube

Adjuntos (2)

Type: image/jpeg
Descargado 40 veces
Size: 64,16 KiB
Type: image/jpeg
Descargado 33 veces
Size: 216,48 KiB

When I have a look into the Layout and Project Attributes I see the name in a different field, see on the screenshot.

I don't know, but I think the function "Right" is not really working. But I don't know how I can test it.

Adjuntos (1)

Type: image/png
Descargado 42 veces
Size: 62,43 KiB

After editing the layout description it worked fine on my computer. There may be a problem with the attributes. if you can send the legend as a drawing I can edit the formula

I think there is a problem with the standard legend I edited (turkish version). I got it when I checked it from the English version

Hatem OZDEMIR
Architect | Allplan Trainer | BIM Manager
Website: http://www.mimcad.com
Website: http://www.bimakademi.com
e-mail: hatemozdemir[at]gmail.com
Ankara / Turkiye
LinkedIn-Profil
YouTube

Adjuntos (2)

Type: image/jpeg
Descargado 16 veces
Size: 191,90 KiB
Type: image/jpeg
Descargado 30 veces
Size: 95,44 KiB

Hi thomas

You can download the legend as a drawing file (allplan 2022) from the attachment. You can revise the formulas according to your own legend.

Hatem OZDEMIR
Architect | Allplan Trainer | BIM Manager
Website: http://www.mimcad.com
Website: http://www.bimakademi.com
e-mail: hatemozdemir[at]gmail.com
Ankara / Turkiye
LinkedIn-Profil
YouTube

Adjuntos (2)

Type: image/jpeg
Descargado 18 veces
Size: 63,85 KiB
Type: application/x-rar
Descargado 313 veces
Size: 2,62 KiB
11 - 20 (21)

https://campus.allplan.com/ utiliza cookies  -  Aqui

Acéptalo