- Messages
- 1,637
- Country

I am trying to get my transmission towers to rotate via the heading of the nearest line which is in this test using a road. A basic test but I cannot see even the slightest rotation.
Here's the script:
ImportOGR|B:\CA Data\OSM Data 2023\CA_63_BX46_towers.shp|*|*|NOREPROJ
ImportOGR|B:\CA\Section_63\Roads\CA_BX46_second.shp|*|*|NOREPROJ
PointToPolygon|power="tower"|10;10|HDG|0|String;objType|power_tower
HeadingFromNearestLine|objType="power_tower"|fclass="secondary"|HDG
CreateAGNLibObject|objType="power_tower"|{04b3be62-557e-4f7a-9140-9fae690526eb}
ExportAGN|P3D v4|B:\CA\Section_63\CA_BX46\Test Objects Towers\texture
Each steps appears to be working correctly, looking at the script results, especially at the HeadingFromNearestLine step. Here's a screening of scenProc's results:
Yet, not a single tower rotates even a little. They are all facing true north (0 degrees), I believe. Shouldn't I see something? Thx.
Here's the script:
ImportOGR|B:\CA Data\OSM Data 2023\CA_63_BX46_towers.shp|*|*|NOREPROJ
ImportOGR|B:\CA\Section_63\Roads\CA_BX46_second.shp|*|*|NOREPROJ
PointToPolygon|power="tower"|10;10|HDG|0|String;objType|power_tower
HeadingFromNearestLine|objType="power_tower"|fclass="secondary"|HDG
CreateAGNLibObject|objType="power_tower"|{04b3be62-557e-4f7a-9140-9fae690526eb}
ExportAGN|P3D v4|B:\CA\Section_63\CA_BX46\Test Objects Towers\texture
Each steps appears to be working correctly, looking at the script results, especially at the HeadingFromNearestLine step. Here's a screening of scenProc's results:
Yet, not a single tower rotates even a little. They are all facing true north (0 degrees), I believe. Shouldn't I see something? Thx.
Last edited:
