Current view

Current view

Anonymous
Not applicable
418 Views
1 Reply
Message 1 of 2

Current view

Anonymous
Not applicable

Hi all,

 

How to set current view as level1 via API.

 

Regards

Richard Mass

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

Revitalizer
Advisor
Advisor

Hi,


commandData.Application.ActiveUIDocument.ActiveView = myLevel1View;

 

The complicated task is to find myLevel1View.

You have to find a ViewPlan whose GenLevel.Id matches your Level1.Id.

Also, this ViewPlan must be of ViewType.FloorPlan since there are also ViewPlans for ceilings and area plans.

 

In fact, there could still be several cadidate ViewPlans matching these conditions, perhaps just different by scale, detail level, display style etc.

 

It depends on yourself which one to use.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes