For example, cmd = AFXGuiCommand( mode, 'PointSection', 'mdb.models[%s]', True) In addition, modes recognize session.viewports[%s] as a special repository. The mode registers a query on the session automatically so that the command will be kept up-to-date if the user switches the current viewport. The following examples illustrate the special syntax: cmd = AFXGuiCommand( mode,'setValues','session.viewports[%s]', True) cmd = AFXGuiCommand( mode,'bringToFront','session.viewports[%s]', True) |