AFXPickStep in Abaqus/CAE plug-in

If your plug-in involves a picking procedure (AFXPickStep) and you would like to highlight entities being picked in the viewport then please note that the pick procedure clears highlighting when it finishes, so even though you highlight an entity it immediately gets cleared. So users must highlight the entities in the deactivate() method of the procedure. In the example below you can see how a reference point can be highlighted.

def deactivate( self ):

AFXProcedure.deactivate( self )

sendCommand( self.keyword.getSetupCommands() )

sendCommand( "highlight( pickedRefPoint )" )

TechTip ​​​​​​​