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

CopyAlongPath - Circle [Gelöst]

Schlagworte:
  • Visual scripting
  • Copy along path
  • Circl
  • Cylinder

Hello,

If I want to copy an object along a 3D cirle, it won't complete the whole circle at a certain amount of objects. This amount of objects depends also on the radius of the circle. With a larger circle it can accept more objects.
As you can see, there will be an opening between the objects and also the amount isn't correct.

What is going wrong?

Thanks in advance!

Anhänge (3)

Typ: image/png
87-mal heruntergeladen
Größe: 40,51 KiB
Typ: image/png
80-mal heruntergeladen
Größe: 13,72 KiB
Typ: image/png
65-mal heruntergeladen
Größe: 14,44 KiB

Lösung anzeigen Lösung verbergen

Hi Joris,

I tested with your script and one cylinder is indeed missing. It happens when the radius of path circle is smaller than 2m, which is weird. We will try to fix it.

Alternatively, you can try the node "DivisionPointsByCount", then connect the division points to node "Cylinder". You will get a same result. (Please check attached screenshot)

Generally speaking, I prefer the approach with "DivisionPoints", because if the distributed cylinders have different radius, "CopyAlongPath" can't handle it.

Regards
Xinling

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: image/png
34-mal heruntergeladen
Größe: 68,37 KiB
1 - 10 (11)

Hi J_Broekman,

I just test with the latest Allplan 2020-1-6. It works well and has no such issue. Which Allplan version do you have? Could you update Allplan to the latest version and try again?

If that still doesn't help, could you please upload your script here, so we can take a look on that.

Best wishes
Xinling

Product Owner API, Allplan GmbH

Hi Xinling,

I've made this in the beta version of Allplan 2021, I think it was RC1.
I will try to reproduce it in 2020-06.

Greetings Joris

Hi Joris,

Thanks for testing the RC version.
2021-RC1 does have some issue regarding Visual Scripting. But we fixed them already. I just tested with 2021-RC3 and it also works.

Product Owner API, Allplan GmbH

Okay thanks for replying.
I guess I have to rebuild the script before it works well?

I don't think so. But I'm not sure.

Product Owner API, Allplan GmbH

When I rebuilt the script it's working.
Thanks

Hi Xinling,

Now I was trying to build a script in the new Allplan 2021-0 version but the copy along path still doesn't work well.

It is the same problem as in the beta version..

Can you have a look at this?

Thanks in advance!

Joris

Hi Joris,

I didn't have such an issue with Allplan 2021-0-0. Could you maybe upload the script? with which value it doesn't work?

Product Owner API, Allplan GmbH

Anhänge (1)

Typ: image/png
73-mal heruntergeladen
Größe: 167,71 KiB

Hi Xinling,

When I use a radius of 2000mm it is working well with 35 copies but with 36 it is a failure.

I see a difference between yours and mine script; I am using cylinders in stead of circles to copy.

And the failure depends also on the radius of the path, bigger radius is more number of copies.

Greetings Joris

Anhänge (3)

Typ: image/png
40-mal heruntergeladen
Größe: 21,01 KiB
Typ: image/png
14-mal heruntergeladen
Größe: 12,41 KiB
Typ: text/xml
1109-mal heruntergeladen
Größe: 2,46 KiB
1 - 10 (11)