The Session object has no constructor. Abaqus creates thesession member when a session is started.
session
This method modifies the Session object.
Required arguments
Optional argument
A Float specifying the memory limit value for the Abaqus/CAE kernel process in megabytes. If the limit is exceeded, Abaqus/CAE displays an error message.
The default memory limit value for Windows 32-bit systems if not set is 1800 MB. Increasing the memory limit is not recommended unless you are using a Windows 32-bit system with the boot option /3GB /userva=SizeInMBytes to extend the amount of memory available for Abaqus/CAE. In this case the limit can be changed to 2800 MB.
If the kernel memory size reaches the abq_ker_memory value or the virtual memory limit of the machine, the following message will be displayed:
Operation did not complete due to a memory allocation failure.For optimal performance, the memory limit should be set to a value less than the physical amount of memory on the machine.
The minimum setting allowed is 256 MB.
Return value
Exceptions
This method enables an associative import CAD connection for the specified CADName.
Required argument
A String specifying the CAD system. Available options are Pro/ENGINEER, CATIA V5, CATIA V6, NX and SolidWorks.
Optional argument
An Integer specifying the port number to be used by the CAD system to communicate with Abaqus/CAE. If unspecified, attempts will be made to identify an open port.
Return value
The connection port number used for the CAD connection.
Exceptions
This method checks the status of CAD Connection.
Arguments
Return value
A Boolean value of True if the CAD connection enabled and False if the CAD connection disabled.
Exceptions
This method disables an associative import CAD connection that was enabled.
Required argument
A String specifying the CAD system for which associative import will be disabled. Available options are Pro/ENGINEER, CATIA V5, CATIA V6, NX and SolidWorks.
Optional arguments
Return value
Exceptions
This method enables an associative import CAD connection with parameters for the specified CADName.
Required arguments
A String specifying the CAD system for which parameter update will be enabled. Available option is Pro/ENGINEER.
A String specifying the CAD Version. Allowable options are Wildfire2 and Wildfire3.
Optional argument
An Integer specifying the port number to be used by Abaqus/CAE to communicate with the CAD system. If unspecified, attempts will be made to identify an open port. This port number is not the same as the portNum used by the associative import interface.
Return value
Exceptions
For the given CAD system, this method saves the port number in Abaqus/CAE. This port number is used to send the parameter information to the CAD system.
Required arguments
A String specifying the CAD system for which the port number will be saved. The available options are 'CATIA V5' and 'CATIA V6'.
An integer specifying the port number to be used by Abaqus/CAE to send the modified parameters to the CAD system.
Optional arguments
Return value
Exceptions
This method updates the parameters for the specified model using the specified parameter file.
Required arguments
A String specifying the model name to update.
A String specifying the CAD system for which Abaqus updates the parameters. The available options are 'Pro/ENGINEER', 'CATIA V5' and 'CATIA V6'.
A parameter file containing the parameters that were exposed in the CAD system using the 'ABQ_' prefix.
A file name specifying the CAD part file for which parameter update is triggered.
For CADName='CATIA V5' or 'CATIA V6', you can specify either products or parts using this argument. If you specify a product, Abaqus updates all of the parts associated with that product.
For CADName='Pro/ENGINEER', this argument is optional, and you can specify update for parts only. However, a single file can be associated with multiple parts in the case of family tables. In this case, Abaqus updates all listed parts.
Optional arguments
An String specifying the part name to update. This part name should match the part name in the originating CAD system.
If you specify neither CADPartFile nor CADPartName during an update in which you specified CADName='Pro/ENGINEER', Abaqus updates all of the parts in the specified file.
Return value
Exceptions
This method disables an associative CAD connection using parameters.
Required argument
A String specifying the CAD system for which the parameter update will be disabled. Available option is Pro/ENGINEER.
Optional arguments
Return value
Exceptions
This method prints canvas objects to a file using the attributes stored in the PrintOptions object and the appropriate format options object.
Required argument
A String specifying the file to which the image is to be written. If no file extension is supplied, an extension is added based on the selected image format (.ps, .eps, .png, .tif, .svg, or .svgz ).
Optional arguments
A SymbolicConstant specifying the image format. Possible values arePS, EPS, PNG, TIFF, and SVG. The default value is PS.
A sequence of canvas objects (viewports, text strings, or arrows) to print. The default is to print all canvas objects.
A Boolean specifying the format for an SVG file. It is only valid to use this argument when format is SVG. Possible values are False (Uncompressed) and True (Compressed).
Return value
Exceptions
This method prints canvas objects to a Windows printer or to a PostScript printer. The attributes used for printing to a Windows printer are stored in the PrintOptions object and the PageSetupOptions object; the attributes used for printing to a PostScript printer are stored in the PrintOptions object and the PsOptions object.
Required arguments
Optional arguments
A String specifying the operating system command or printer name to issue for printing to the printer. The default value is “lpr” or the value specified by the printOptions method. If you create a script to print directly to a Windows printer, the printCommand must take the following form:
session.printToPrinter.setValues(printCommand='PRINTER[ number of characters in name ]: printername PROPERTIES[ number of characters in properties ]: document properties ')The PROPERTIES is a list of characters that represents the printing preferences for the selected Windows printer. The properties are not required in a script; the printed output will use the current settings for the selected printer. You can use 'PRINTER[7]: DEFAULT' to specify the default Windows printer.
An Int specifying the number of copies to print. Possible values are 1 numCopies 100. The default value is 1.
A sequence of canvas objects (viewports, text strings, or arrows) to print. The default is to print all canvas objects.
Return value
Exceptions
If printCommand is invalid:
If the print command fails:
If numCopies is out of range:
If compression is specified when format is not SVG :
This method saves your customized display settings.
Required argument
A SymbolicConstant specifying the directory in which Abaqus saves the file that will be used to restore your customized settings (abaqus_2016.gpr). Possible values are HOME and CURRENT.
Optional arguments
Return value
Exceptions
This method exports the current viewport objects to a file.
Required argument
A String specifying the file to which the graphics data is to be written. If no file extension is supplied, an extension is added based on the selected format (.wrl, .wrz).
Optional arguments
A Boolean specifying the format. Possible values are False (Uncompressed) and True (Compressed).
A sequence of canvas objects (viewports, text strings, or arrows) to export.
Return value
Exceptions
This method exports the current viewport objects to a file.
Required argument
A String specifying the file to which the graphics data is to be written. If no file extension is supplied, (.3dxml) will be added.
Optional arguments
A Boolean specifying the format. Possible values are False (Uncompressed) and True (Compressed).
A sequence of canvas objects to export.
Return value
Exceptions
This method exports the current viewport objects to a file.
Required argument
A String specifying the file to which the graphics data is to be written. If no file extension is supplied, (.obj) will be added.
Optional argument
A sequence of canvas objects to export.
Return value
Exceptions
The Session object can have the following members:
A Boolean specifying whether an Abaqus interactive session is running.
A Boolean specifying whether Abaqus is executing a replay file.
A Float specifying the memory usage value for the Abaqus/CAE kernel process in megabytes.
A Float specifying the maximum value for the memory usage for the Abaqus/CAE kernel process in megabytes.
A Float specifying the limit for the memory use for the Abaqus/CAE kernel process in megabytes.
A repository of Color objects.
A JournalOptions object specifying how to record selection of geometry in the journal and replay files.
A MemoryReductionOptions object specifying options for running in reduced memory mode.
A NodeQuery object specifying nodes and their coordinates in a path.
A ConstrainedSketcherOptions object specifying common options for all sketches.
A ViewerOptions object.
An AnimationController object.
An AVIOptions object.
An ImageAnimationOptions object.
An ImageAnimation object.
A QuickTimeOptions object.
A repository of Viewport objects.
A RepositorySupport object.
A FieldReportOptions object.
A FreeBodyReportOptions object.
A FieldReportOptions object.
A FreeBodyReportOptions object.
A repository of Odb objects.
A repository of ScratchOdb objects.
A DefaultOdbDisplay object.
A DefaultPlot object.
A DefaultChartOptions object.
A repository of OdbData objects.
A repository of MdbData objects.
A repository of Path objects.
A repository of FreeBody objects.
A repository of Stream objects.
A repository of Spectrum objects.
A CurrentProbeValues object.
A ProbeOptions object.
A ProbeOptions object.
A ProbeReport object.
A ProbeReport object.
A SelectedProbeValues object.
A PrintOptions object.
An EpsOptions object.
A PageSetupOptions object.
A PngOptions object.
A PsOptions object.
A SvgOptions object.
A TiffOptions object.
An AutoColors object specifying the color palette to be used for color coding.
An AutoColors object specifying the color palette to be used forXYCurve objects.
A repository of XYData objects.
A repository of XYCurve objects.
A repository of XYPlot objects.
A repository of Chart objects.
An XYReportOptions object.
An XYReportOptions object.
A repository of View objects.
A repository of NetworkDatabaseConnector objects.
A repository of DisplayGroup objects.
A GraphicsInfo object.
A GraphicsOptions object.
A GraphicsOptions object.
A ViewportAnnotationOptions object.
A repository of Queue objects.
A String specifying the name of the current viewport.
A Dictionary object specifying the viewports and their associated models. The Dictionary key specifies the viewport name. The Dictionary value is a Dictionary specifying the model name.
A repository of Image objects.
A repository of Movie objects.
A LightOptions object.
A DrawingArea object.
A MesherOptions object specifying how to control default settings in the Mesh module.
A repository of Drawing objects.