Where I can get FloorPlan ElementId for ViewPlan.Create method

Where I can get FloorPlan ElementId for ViewPlan.Create method

kmalovanyk
Contributor Contributor
224 Views
1 Reply
Message 1 of 2

Where I can get FloorPlan ElementId for ViewPlan.Create method

kmalovanyk
Contributor
Contributor

Please help me with this issue. 

0 Likes
Accepted solutions (1)
225 Views
1 Reply
Reply (1)
Message 2 of 2

kmalovanyk
Contributor
Contributor
Accepted solution

ViewFamilyType familyType = new FilteredElementCollector(document).OfClass(typeof(ViewFamilyType)).Cast<ViewFamilyType>().First(x => x.ViewFamily == ViewFamily.FloorPlan);

ViewPlan floorView = ViewPlan.Create(document, familyType.Id, level.Id);

0 Likes