[Frage] 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,

Anhänge (1)

Typ: image/jpeg
124-mal heruntergeladen
Größe: 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".

Anhänge (3)

Typ: image/png
36-mal heruntergeladen
Größe: 112,40 KiB
Typ: image/png
22-mal heruntergeladen
Größe: 47,81 KiB
Typ: image/png
21-mal heruntergeladen
Größe: 26,55 KiB

attachment 4 and 5.

Anhänge (2)

Typ: image/png
30-mal heruntergeladen
Größe: 48,43 KiB
Typ: image/png
32-mal heruntergeladen
Größe: 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

Anhänge (1)

Typ: image/jpeg
26-mal heruntergeladen
Größe: 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

Anhänge (3)

Typ: image/png
34-mal heruntergeladen
Größe: 26,24 KiB
Typ: image/png
35-mal heruntergeladen
Größe: 11,36 KiB
Typ: image/png
30-mal heruntergeladen
Größe: 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

Anhänge (2)

Typ: image/jpeg
40-mal heruntergeladen
Größe: 64,16 KiB
Typ: image/jpeg
33-mal heruntergeladen
Größe: 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.

Anhänge (1)

Typ: image/png
42-mal heruntergeladen
Größe: 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

Anhänge (2)

Typ: image/jpeg
16-mal heruntergeladen
Größe: 191,90 KiB
Typ: image/jpeg
30-mal heruntergeladen
Größe: 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

Anhänge (2)

Typ: image/jpeg
18-mal heruntergeladen
Größe: 63,85 KiB
Typ: application/x-rar
297-mal heruntergeladen
Größe: 2,62 KiB
11 - 20 (21)

https://campus.allplan.com/ verwendet Cookies  -  Mehr Informationen

Akzeptieren