Hey everyone!
I’m trying to add a Spot Elevation tag to the element at an active locked 3D view. But I have some issues to get appropriate bend and end points for a spot elevation tag.
After doing some thinking I decided to place spot elevation manually and see its position in a 3D space:
After rotating unlocked 3D view I noticed that spot elevation is placed on a plane that is parallel to a viewport position at the moment when I added it manually:
Then I tried to find appropriate points according to same logic as I placed it manually:
- created a local coordinate system that represented a position of an appropriate view direction
- placed points of the bend and end position of spot elevation’s tag
- then transformed points into a global coordinate system by Geometry.Transform node. So they became locating at the necessary plane
- feeded that points to a GeniusLoci python script node “SpotElevation ByReference” that modified by myself.
As a result I caught an error:
Also I caught the same error when I designed a different script. I got a reference point by FindNearest() method and did almost the same as a previous one with some differences (inspired by Clockwork node “SpotElevation.ByFloorPlanAndPoint”).
Please anyone explain me what I did wrong? What is the correct way to place spot elevations in a 3D view?
Here are my raw DYN files to check:
Spot elevation (bend and end poins as points).dyn (76.7 KB)
Spot elevation (reference by FindNearest() method).dyn (88.6 KB)