Foro de Soporte Allplan

[Pregunta] Smartparts und IFC-Attribute [Guardado]

Etiquetas:

Schönen Tag!

Wir beschäftigen uns nun seit einer Weile mit Smartparts und verwenden von uns selbst programmierte Smartparts zum Konstruieren von Baugruben und weiteren Spezialtiefbauten. Das funktioniert sehr gut zum erstellen von Plänen und Reports und zur Fehlervermeidung.
Nun wollen wir einen Schritt weiter gehen und uns mit dem Thema BIM beschäftigen. Leider gibt es im Bereich Tiefbau nicht sehr viele Referenzen, weshalb wir ein paar Fragen haben.

Am Beste zeigen wir das einfach anhand einem Beispiel - der Spundwand.
Die Spundwand ist geometrisch erzeugt und auch Querschnittswerte wie das Elastische Widerstandsmoment (ein von uns selbst erzeugtes Attribut) sind hinterlegt. Als IFC-Objekttyp haben wir IfcWall und als IFC-ObjektSubtyp SHEAR gewählt.

Unsere Spundwand ist somit für ein BIM-Bauteil noch sehr rudimentär.
Wenn man sie in Solibri aktiviert sind im Bereich Klassifizierung keine Einträge vorhanden - wie kann man den ein selbst definiertes Bauteil klassifizieren?
Außerdem würden wir gerne die Attribute in das Script einbinden. Das funktioniert eigentlich ganz gut mit einem mit dem jeweiligen Attribut verknüpften Parameter, wenn man jedoch versucht den IFC-Objekttyp an einen Parameter zu binden wird dieser immer als Undefiniert ausgegeben.
Außerdem würde uns interessieren wie man eine Beziehung herstellt bzw. was man dabei beachten muss?
Zu guter Letzt wäre es noch interessant zu wissen, wie man mit Bauteilen umgeht, welche sich aus mehreren unterschiedlichen Materialien zusammensetzten, da das Attribut Material nur ein mal vergeben werden kann.

Schon mal Danke im Voraus!

Adjuntos (3)

Type: image/png
Descargado 104 veces
Size: 8,45 KiB
Type: image/png
Descargado 225 veces
Size: 33,84 KiB
Type: image/png
Descargado 91 veces
Size: 9,27 KiB

Show solution Hide solution

Meines Wissens geht das in 2018 gar nicht.
Wenn Ihr möglichst viel aus IFC herausholen wollt, wäre ein Update auf 2019 aber auch schon alleine wegen der QuantitySets eine Überlegung wert.

GEA Arquitectos S.L.P.
Calle Gerardo Diego 6A | 41013 Sevilla | Spain

11 - 20 (32)

Beim Update auf Allplan 2019 wird eine Datenwandlung der Projekte durchgeführt!
Danach kann kein Allplan 2018 dieser Welt diese Daten mehr lesen!

-> Teilweise Updaten funktioniert also nicht! Entweder alle oder keiner!

Cita de: Nemo
Das Attribut IFC-Objekttyp war bis Allplan 2017 ein Enum-Atribut!
Solche Attribute können mit den SmartParts nicht verändert werden.
Wenn das Sub-SmartPArt und das Main-SmartPart das Attribut IFC-Objekttyp erhalten sollen,
muss man in beiden SmartPArts ATTR_SET 684 , "..." einbauen.

Hallo Nemo!
So haben wir es schon probiert, jedoch ergibt sich dort folgendes Problem:

SmartPart 1: (name = test)
Parameter-Script:
ATTR_SET 684 , "IfcPile"
3D-Script:
CYLIND 3 , 0.1

Smartpart 2:
Parameter-Script:
ATTR_SET 684 , "IfcPile"
3D-Script:
FOR i = 1 TO 5

CALL_OBJ "test" PARAMETERS ALL

TRANSX 0.2

NEXT i

Wenn nun die Attribute der SmartPart-Gruppe exportiert werden, besitzt nur das MainObject beim IFC-Objekttyp den Wert "IfcPile". Bei den SubObjects ist dieser Wert immer leer obwohl er ursprünglich im Smartpart 1 enthalten war.

Adjuntos (1)

Type: image/png
Descargado 57 veces
Size: 25,98 KiB

..na dann einen Text-Parameter erstellen ifc_typ = "IfcPile" und diesem das Attribut "IFC-Objekttyp" zuweisen.
Sollte auch funktionieren...

So hab ich es probiert jedoch ergibt sich wieder das gleiche Problem.. Im Anhang befinden sich beide Smartparts - vielleicht sieht ja jemand den Fehler im Skript.

Adjuntos (2)

Type: text/xml
Descargado 767 veces
Size: 5,55 KiB
Type: text/xml
Descargado 759 veces
Size: 5,23 KiB

Hello Guballplan,

You need to add the variable "ifc_type" (as string) in the main SmartPart.
It is not needed to add ATTR_SET 684 , "IfcPile" in the sub-SmartPart, only the variable is used.


Adjuntos (2)

Type: image/png
Descargado 41 veces
Size: 5,71 KiB
Type: image/png
Descargado 60 veces
Size: 15,38 KiB

Cita de: Bertrand_C
Hello Guballplan,
You need to add the variable "ifc_type" (as string) in the main SmartPart.
It is not needed to add ATTR_SET 684 , "IfcPile" in the sub-SmartPart, only the variable is used.

Hello Bertrand_C!
I tried it like you said but it still doesen't work for me... Could you upload your Smartpart or show me the script?
I would really appreciate it!

Thank you in advance.

Hello,
Here are the modified SmartParts with short comments to explain my changes.


Adjuntos (2)

Type: text/xml
Descargado 927 veces
Size: 5,85 KiB
Type: text/xml
Descargado 763 veces
Size: 5,54 KiB

Hello!
Thank you for all the effort but it still won't work on my computer.
Maybe it has something to do with my version of Allplan (v2018)?

No, I don't think so. It's the same in Allplan 2018 or 2019...
Did you replace the SmartPart "Test2.smt" in your project sub-folder "...\Library"?


Cita de: Bertrand_C
No, I don't think so. It's the same in Allplan 2018 or 2019...
Did you replace the SmartPart "Test2.smt" in your project sub-folder "...\Library"?

Yes I did! But it still won't work!
I inserted the two Smartparts you uploaded. Then I replaced "Test2.smt" with the new Test2. Aferwards I "activated" Test1-1 so that it updates and inserts the new Test2-Smartpart. I didn't change anything else.

Is this just a bug or am I doing something wrong?

11 - 20 (32)