def issue_init(self): cmd = abaqusGui.AFXGuiCommand( mode=self, method='create_registry', objectName='PeriodicBoundaryCondition_kernel', registerQuery=False) issue_command(cmd) # Return True indicating the command was issued return True
def issue_remove(self): # Issue command cmd = abaqusGui.AFXGuiCommand( mode=self, method='remove_constraints', objectName='PeriodicBoundaryCondition_kernel') abaqusGui.AFXStringKeyword(cmd, 'name', True, self.getCurrentDialog().get_current_name()) issue_command(cmd) # Update the overview window self.getCurrentDialog().update_boundaries() # Return True indicating the command was issued return True
def issue_match(self): # Check if the name already exists name = self.getCurrentDialog().get_current_name() if mdb.customData.matchers.has_key(name): # The name already exists: display an error message abaqusGui.showAFXErrorDialog( abaqusGui.getAFXApp().getAFXMainWindow(), 'A constraint with this name already exists') # Return false indicating the command was not issued return False else: # The name does not exist yet: issue the command cmd = abaqusGui.AFXGuiCommand( mode=self, method='match_nodes', objectName='PeriodicBoundaryCondition_kernel', registerQuery=False) abaqusGui.AFXStringKeyword(cmd, 'name', True, name) abaqusGui.AFXIntKeyword(cmd, 'model', True, self.getCurrentDialog().currentModel, False) abaqusGui.AFXIntKeyword(cmd, 'part', True, self.getCurrentDialog().currentPart, False) abaqusGui.AFXIntKeyword(cmd, 'master', True, self.getCurrentDialog().currentMaster, False) abaqusGui.AFXIntKeyword(cmd, 'slave', True, self.getCurrentDialog().currentSlave, False) abaqusGui.AFXIntKeyword( cmd, 'ex_m', True, self.getCurrentDialog().get_master_exempt_index()) abaqusGui.AFXIntKeyword( cmd, 'ex_s', True, self.getCurrentDialog().get_slave_exempt_index()) abaqusGui.AFXIntKeyword(cmd, 'plane', True, self.getCurrentDialog().currentPlane, False) abaqusGui.AFXIntKeyword(cmd, 'sym', True, self.getCurrentDialog().currentSym, False) issue_command(cmd) # Return True indicating the command was issued return True