Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

[Frage] Visual scripting - CSV - XLSX table


In Allplan with visual scripting it's possible to change area representation over CSV table.

Is it possible to connect CSV table to change attributes of elements.

I.e.
if i have csv or excel table with attributes that i use for every project, can i import attribute values/new attributes and new attribute values into allplan.

Exporting and importing attributes via allplan attribute export and import is what i want to avoid.

Or if it's not possible with current visual scripting, is there a possibility to connect xlsx or csv table to do this with python api?

Thank you in advance.

Joe
_________________

In Allplan mit visueller Skripterstellung ist es möglich, die Bereichsdarstellung über die CSV-Tabelle zu ändern.

Ist es möglich, eine CSV-Tabelle zu verbinden, um Attribute von Elementen zu ändern?

Das heißt,
Wenn ich eine CSV- oder Excel-Tabelle mit Attributen habe, die ich für jedes Projekt verwende, kann ich Attributwerte / neue Attribute und neue Attributwerte in allplan importieren.

Das Exportieren und Importieren von Attributen über den Export und Import von allplan-Attributen ist das, was ich vermeiden möchte.

Oder gibt es eine Möglichkeit, eine XLSX- oder CSV-Tabelle zu verbinden, wenn dies mit der aktuellen visuellen Skripterstellung nicht möglich ist, um dies mit der Python-API zu tun?

Vielen Dank im Voraus.

Joe

I.e.

My csv or xlsx table has 2 columns which would visual scripting use as a filter,
and other columns would represent attributes which need to be input and rows would be the values that need to be import.

If it's still not clear I'll provide pictures of how I imagined it.

There's a video of how another software like Allplan, does it,
I'm pretty sure this can be done within Allplan,
but I don't know how to connect csv table to attributes, since visual scripting only allows csv import and not xlsx

Thanks.
____________________

Meine CSV- oder XLSX-Tabelle enthält 2 Spalten, die visuelles Scripting als Filter verwenden würden.
und andere Spalten würden Attribute darstellen, die eingegeben werden müssen, und Zeilen wären die Werte, die importiert werden müssen.

Wenn es immer noch nicht klar ist, werde ich Bilder liefern, wie ich es mir vorgestellt habe.

Es gibt ein Video, wie eine andere Software wie Allplan es macht,
Ich bin mir ziemlich sicher, dass dies in Allplan möglich ist.
Ich weiß jedoch nicht, wie ich eine CSV-Tabelle mit Attributen verbinden soll, da visuelles Scripting nur den CSV-Import und nicht xlsx zulässt

Vielen Dank.

You want to filter elements by specific characteristics (type, layer, attribute values) and then assign specific attributes to these elements. This is called classification.
With visual scripting this is certainly very complicated, if not impossible!
The problem can be broken down into the following tasks:
-read -xlsx or cvs file
-separate filter characteristics (type, layer, attribute values) from attributes to be written
-filter Allplan elements
-assign attributes to these elements
Unfortunately, there are not the right nodes for all tasks!
Multiple assignment of attributes may not work! (see here)
With PythonParts it fails because of the database query with corresponding filters.

But there is a solution: The plugin classification does exactly what you intend.Only the filters and attributes are not stored in an XLS or CSV file, but in a legend on the drawing file or in a favorite file(xml).

-----------------------------------------------

Du willst Elemente nach bestimmten Merkmalen (Typ, Layer, Attributwerte) filtern, und diesen Elementen dann bestimmte Attribute zuweisen. Das nennt man Klassifizierung.
Mit Visual-Scripting ist das sicher sehr kompliziert, wenn nicht gar unmöglich!
Das Problem zerlegt sich in folgende Aufgaben:
-xlsx oder cvs-Datei lesen
-dabei Filter-Merkmale(Typ, Layer, Attributwerte) von zu schreibenden Attributen trennen
-Allplan-Elemente filtern
-Attribute zuweisen
Leider gibt es nicht für alle Aufgaben die passenden Nodes!
Mehrfachzuweisung von Attributen funktioniert schon mal nicht! (siehe hier)
Mit PythonParts scheitert es an der Datanbank-Abfrage mit entspr. Filtern.

Aber es gibt eine Lösung: Das Plugin Klassifizierung macht genau das, was Du beabsichtigst. Nur sind die Filter und die Attribute nicht in einer XLS- oder CSV-Datei gespeichert, sondern in einer Legende auf dem Teilbild oder als Favorit(xml).

Anhänge (1)

Typ: image/png
103-mal heruntergeladen
Größe: 164,73 KiB

Thank You for the quick reply.

One more Q.. to create Allplan plugins, allplan python api is used right?

___________

Danke für die schnelle Antwort.

Noch eine Frage: Um Allplan-Plugins zu erstellen, wird die Allplan-Python-API verwendet, oder?

No, not Python API!
There is an Allplan API using C++ and C# (WPF).The access to it can be requested from Allplan under approval of an NDA. The solutions with such plug-ins far exceed the possibilities of Python or Visual Scripting. However, professional knowledge of these programming languages is already required. This makes it not so difficult to implement the above tasks. The GUI with WPF is perhaps the most difficult part.

---------------------------------------------------------------------------------------------

Nein, nicht Python-API!
Es gibt eine Allplan-API unter Verwendung von C++ und C# (WPF). Den Zugang dazu kann man bei Allplan unter Zustimmung zu einem NDA beantragen. Die Lösungen mit solche Plugins übersteigen die Möglichkeiten von Python oder Visual-Scripting bei Weitem.
Allerdings sind schon professionelle Kenntnisse in diesen Programmiersprachen notwendig. Damit ist es dann nicht so schwer, die oben genannten Aufgaben zu implementieren. Die GUI mit WPF ist vielleicht noch das Schwierigste dabei.

I see,
Thank You a lot Nemo.
__________

Vielen Dank Nemo.


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

Akzeptieren