create_item#

Service.create_item(obj_name: str | None = 'default', source: str | None = 'ADR') Item#

Create an item that gets automatically pushed into the database.

Parameters:
obj_namestr, optional

Name of the item. The default is "default".

sourcestr, optional

Name of the source to generate the item from. The default is "ADR", which is Ansys Dynamic Reporting.

Returns:
Object

Item object.

Examples

import ansys.dynamicreporting.core as adr
adr_service = adr.Service(ansys_installation = r'C:\Program Files\ANSYS Inc\v232')
ret = adr_service.connect()
my_img = adr_service.create_item()