[Question] 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.

Pièces-jointes (3)

Type: image/png
Téléchargé 37 fois
Size: 70,77 KiB
Type: image/png
Téléchargé 27 fois
Size: 70,98 KiB
Type: image/png
Téléchargé 27 fois
Size: 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

Pièces-jointes (1)

Type: image/png
Téléchargé 14 fois
Size: 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.

Pièces-jointes (2)

Type: image/png
Téléchargé 22 fois
Size: 268,41 KiB
Type: image/png
Téléchargé 28 fois
Size: 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.

Pièces-jointes (1)

Type: application/zip
Téléchargé 801 fois
Size: 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

Pièces-jointes (1)

Type: image/png
Téléchargé 4 fois
Size: 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.

Pièces-jointes (3)

Type: text/xml
Téléchargé 786 fois
Size: 771,20 KiB
Type: text/xml
Téléchargé 735 fois
Size: 2,22 KiB
Type: text/xml
Téléchargé 816 fois
Size: 771,20 KiB

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

Pièces-jointes (2)

Type: text/plain
Téléchargé 750 fois
Size: 9,68 KiB
Type: text/plain
Téléchargé 725 fois
Size: 273,68 KiB