Is it possible to get the Z coordinate of an element when selecting a point in a 3D UVS view?
I need to create level dimensions directly in the 3D view.
Thank you!
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.
Melden Sie sich jetzt an und diskutieren Sie mit!
Is it possible to get the Z coordinate of an element when selecting a point in a 3D UVS view?
I need to create level dimensions directly in the 3D view.
Thank you!
Hi,
I took the challenge. It wasn't easy, but I made it (see the attached script).
I created a small interactor that allows you to input a point on an edge. Assuming, that this happened in a UVS, the clicked point, the edge on which it was clicked (both in UVS coordinate system) and the UVS itself gets recognized and stored in the result class (ScriptObjectInteractors.ZCoordResult).
Then, in the ScriptObjects.ZCoordScriptObject class, in the start_next_input() method I do following:
This works for a point clicked on an edge, like on your screen shot. Clicking the vertex won't bring any result.
Have a look on the script and feel free to reuse it. Now it only prints the elevation so you will need to adapt it to create a text like on your screenshot.
Best,
Bart
Hi,
I took the challenge. It wasn't easy, but I made it (see the attached script).
I created a small interactor that allows you to input a point on an edge. Assuming, that this happened in a UVS, the clicked point, the edge on which it was clicked (both in UVS coordinate system) and the UVS itself gets recognized and stored in the result class (ScriptObjectInteractors.ZCoordResult).
Then, in the ScriptObjects.ZCoordScriptObject class, in the start_next_input() method I do following:
This works for a point clicked on an edge, like on your screen shot. Clicking the vertex won't bring any result.
Have a look on the script and feel free to reuse it. Now it only prints the elevation so you will need to adapt it to create a text like on your screenshot.
Best,
Bart