Idling not working when viewing a 3d perspective window

Idling not working when viewing a 3d perspective window

pfk
Enthusiast Enthusiast
536 Views
4 Replies
Message 1 of 5

Idling not working when viewing a 3d perspective window

pfk
Enthusiast
Enthusiast

Hi

 

Title ways it all.  Idling does not seem to trigger whilst viewing a 3d perspective window in Revit 2012 or 2013.  Works fine on non-perspective 3d windows.  If this a bug?  Is there a work-around?

 

Tnx

0 Likes
537 Views
4 Replies
Replies (4)
Message 2 of 5

arnostlobel
Alumni
Alumni

No, not a bug. It works as designed. Revit does not call addins if the current view is a 3D perspective. You would notice that you cannot call any external commands either.

As of this time, there is no workaround.

Arnošt Löbel

Revit R&D

Arnošt Löbel
0 Likes
Message 3 of 5

Revitalizer
Advisor
Advisor

Hi all,

 

additionally, there are other situations where Idling won't be called.

For example, if there is a modal dialog opened.

Or if there is no document opened at all.

Or if the current view is a schedule (in 2011 + 2012; this may have been changed for Revit 2013).

 

As a thumb rule:

If the buttons for external commands are greyed out, you cannot trigger a command by OnIdling.

 

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 4 of 5

arnostlobel
Alumni
Alumni

Actually, Idling may be raised with no document open in Revit, but that depends on the version of Revit. R2012 will not raise the event, while R2013 would. (I am not sure now if it was from the first release of R2013 or since the next update.)

 

As for the Modal dialog "limitation", the idling is not raised because Revit is or is not Idling. It is not raised because some command is obviously not finished yet, and Revit never calls outside in the middle of another command executing.

 

Arnošt Löbel

Revit R&D

 

Arnošt Löbel
0 Likes
Message 5 of 5

Revitalizer
Advisor
Advisor

Hi Arnost,

 

thanks for clearifying that.

Of course, every dialog is opened during a command, and a command will never be finished until the relating dialog has been closed.

So an opened dialog is not a limitation per se.

It's the command that opened this dialog.

 

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes