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] VisualScript Generation Problems


I am generating parameterized models in VisualScript and I have some problems, which I think must be from the system.
When generating a VisualScript. I have generated several files and I want to assemble them into one, but it does not appear. I have the display enabled in the Node, but they don't appear in the file.
I generate the file and in the properties it appears correct, but visually it is not visible.
This runs perfect, with the example that comes by default.
Thank you.

Anhänge (3)

Typ: image/png
37-mal heruntergeladen
Größe: 70,77 KiB
Typ: image/png
27-mal heruntergeladen
Größe: 70,98 KiB
Typ: image/png
27-mal heruntergeladen
Größe: 36,45 KiB

If you check the loaded script MultiSidedDome.pyp from example, it will generate objects from the node Shell. If the loaded script only generates preview, it won't work in this example.

Could you please check if the loaded script 01.pyp from your script will generate objects by itself?

If you just want to combine the script logic not objects from several small scripts to avoid creating a large script, I'm afraid that it currently doesn't work as you expected.

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: image/png
14-mal heruntergeladen
Größe: 86,56 KiB

Thank you very much for the answer and the help.
My idea is to create the union of several Script, so that you do not have to make a very large one. In Example 01, a created script replicates it giving it angle and repetition.
Thank you.

I'm afraid, it is currently not possible to do that, unless each script also creates at least one object and you can then use that object in another script.

Product Owner API, Allplan GmbH

Thank you very much for the help and above all for the speed of the response.
I hope that soon, they can improve that function. ;)
Taking advantage of the post, I have a question, which I think may be due to the system.
When placing a reinforcement, there are times when it does not place it correctly.
In the reinforcement of the upper part it is perfectly represented, but that of the lower part is not seen in the model visualization.
Thank you.

Anhänge (2)

Typ: image/png
22-mal heruntergeladen
Größe: 268,41 KiB
Typ: image/png
28-mal heruntergeladen
Größe: 28,11 KiB

I'm not familiar with rebar topic in VS... yet...
If you can upload your pyp-script (if possible) and point out where the expected rebar placement should be, our team or others may help.

Product Owner API, Allplan GmbH

Of course, it is not a problem.
I am sending you the file, because I don't know if it's a system problem or something that I did wrong.
Thank you very much.
All the best.

Anhänge (1)

Typ: application/zip
845-mal heruntergeladen
Größe: 152,81 KiB

Just tried your script with Allplan 2021-1-13. It seems that VS Editor gets some errors with your script... After I started your script, I only got half of the geometry (the lower part), no rebar...

Could you try to provide allplan.out and allplan_python.out after start the script?
They should be located in Allplan user <Tmp> folder, by default:

C:\Users\<UserName>\AppData\Local\Nemetschek\2021_VisualScripting\2021\Tmp

If there is no such file there, please turn on the logging function from Allplan Service Appliation.
loading

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: image/png
4-mal heruntergeladen
Größe: 11,41 KiB

Good afternoon, I thought it had been solved, but it was just a momentary problem.
I attach the files, to see if you can help me to solve the incident and tell me where the error is.
Thank you very much.

Anhänge (3)

Typ: text/xml
827-mal heruntergeladen
Größe: 771,20 KiB
Typ: text/xml
766-mal heruntergeladen
Größe: 2,22 KiB
Typ: text/xml
848-mal heruntergeladen
Größe: 771,20 KiB

Attached I send allplan_python.out and allplan.out
Thank you very much.

Anhänge (2)

Typ: text/plain
802-mal heruntergeladen
Größe: 9,68 KiB
Typ: text/plain
762-mal heruntergeladen
Größe: 273,68 KiB