ElevationView orientation

ElevationView orientation

AndrewButenko
Advocate Advocate
292 Views
1 Reply
Message 1 of 2

ElevationView orientation

AndrewButenko
Advocate
Advocate

Hi!

 

I create elevation view, using next code:

 

        Dim vft As ViewFamilyType = New FilteredElementCollector(doc).OfClass(GetType(ViewFamilyType)).Cast(Of ViewFamilyType)().FirstOrDefault(Function(x) ViewFamily.Elevation = x.ViewFamily)
        Dim marker As ElevationMarker = ElevationMarker.CreateElevationMarker(doc, vft.Id, min, 1)
        Dim v As ViewPlan = New FilteredElementCollector(doc).OfClass(GetType(ViewPlan)).Cast(Of ViewPlan)().FirstOrDefault()

        Dim elevationView As ViewSection = marker.CreateElevation(doc, v.Id, 0)

But for different rvt files, the X and Y coordinates in the elevation view change places. 

I noticed that this is due to the fact that the elevation marker has a different direction during creation.

Does anyone know how to set the direction of the elevation marker or some other solution?

 

0 Likes
293 Views
1 Reply
Reply (1)
Message 2 of 2

mosesWRKV3
Explorer
Explorer
Hi ,

It is running with my Code .
0 Likes