VisualReportManager Class¶
-
class
NXOpen.VisualReporting.VisualReportManager¶ Bases:
objectA manager for load, creation and activation of visual reports.
To obtain an instance of this class, refer to
NXOpen.SessionNew in version NX7.0.0.
Properties¶
| Property | Description |
|---|---|
| Current | Returns or sets the current NXOpen.VisualReporting.VisualReport. |
| VisualReports | Returns the NXOpen.VisualReporting.VisualReportCollection belonging to this visual report manager |
| VisualReportExplorer | Returns the NXOpen.VisualReporting.VisualReportExplorer belonging to this visual report manager |
Methods¶
Property Detail¶
Current¶
-
VisualReportManager.Current¶ Returns or sets the current
NXOpen.VisualReporting.VisualReport.-------------------------------------Getter Method
Signature
CurrentReturns: Return type: NXOpen.VisualReporting.VisualReportNew in version NX7.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CurrentParameters: visualReport ( NXOpen.VisualReporting.VisualReport) –New in version NX7.0.0.
License requirements: None.
VisualReports¶
-
VisualReportManager.VisualReports¶ Returns the
NXOpen.VisualReporting.VisualReportCollectionbelonging to this visual report managerSignature
VisualReportsNew in version NX7.0.0.
Returns: Return type: NXOpen.VisualReporting.VisualReportCollection
VisualReportExplorer¶
-
VisualReportManager.VisualReportExplorer¶ Returns the
NXOpen.VisualReporting.VisualReportExplorerbelonging to this visual report managerSignature
VisualReportExplorerNew in version NX7.5.0.
Returns: Return type: NXOpen.VisualReporting.VisualReportExplorer
Method Detail¶
ActivateCurrentVisualReport¶
-
VisualReportManager.ActivateCurrentVisualReport¶ Activates the
NXOpen.VisualReporting.VisualReportManager.Current()visual report.Signature
ActivateCurrentVisualReport()New in version NX7.0.0.
License requirements: None.
CreateSpecifyDateBuilder¶
-
VisualReportManager.CreateSpecifyDateBuilder¶ Creates a
NXOpen.VisualReporting.SpecifyDateBuilder.Signature
CreateSpecifyDateBuilder()Returns: The created builder Return type: NXOpen.VisualReporting.SpecifyDateBuilderNew in version NX8.0.0.
License requirements: None.
CreateVisualReportBuilder¶
-
VisualReportManager.CreateVisualReportBuilder¶ Creates a
NXOpen.VisualReporting.VisualReportBuilderand starts editing a copy of the givenNXOpen.VisualReporting.VisualReport.Signature
CreateVisualReportBuilder(visualReport)Parameters: visualReport ( NXOpen.VisualReporting.VisualReport) – The VisualReport for which this builder is being created. Can be NoneReturns: The created builder Return type: NXOpen.VisualReporting.VisualReportBuilderNew in version NX7.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
DeactivateCurrentVisualReport¶
-
VisualReportManager.DeactivateCurrentVisualReport¶ Deactivates the
NXOpen.VisualReporting.VisualReportManager.Current()visual report.Signature
DeactivateCurrentVisualReport()New in version NX7.0.0.
License requirements: None.
MergeReports¶
-
VisualReportManager.MergeReports¶ Merges multiple existing
NXOpen.VisualReporting.VisualReportinto oneNXOpen.VisualReporting.VisualReport, but does not set them to be theNXOpen.VisualReporting.VisualReportManager.Current()visual report or activate them, and does not save the mergedNXOpen.VisualReporting.VisualReport.Signature
MergeReports(visualReports, mergedReportName, mergedReportDescription)Parameters: - visualReports (list of
NXOpen.VisualReporting.VisualReport) – array of existing reports - mergedReportName (str) – name of the merged report
- mergedReportDescription (str) – description of the merged report
Returns: merged report
Return type: New in version NX8.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
- visualReports (list of
Open¶
-
VisualReportManager.Open¶ Opens an existing
NXOpen.VisualReporting.VisualReport, but does not set it to be theNXOpen.VisualReporting.VisualReportManager.Current()visual report or activate it.If the visual report file cannot be opened, or if there is a problem parsing the file, then an exception will be raised.
If opening a managed report then it is recommended to use
NXOpen.VisualReporting.VisualReportManager.OpenReports()which can take a container path and list of dataset namesSignature
Open(filename)Parameters: filename (str) – The filename of the visual report to open Returns: Return type: NXOpen.VisualReporting.VisualReportNew in version NX7.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
OpenReports¶
-
VisualReportManager.OpenReports¶ Opens existing
NXOpen.VisualReporting.VisualReport, but does not set them to be theNXOpen.VisualReporting.VisualReportManager.Current()visual report or activate them.If the visual report file cannot be opened, or if there is a problem parsing the file, then an exception will be raised.
This can be used in native mode by sending in a folder path and filenames, or in managed mode using a container path and dataset names.
Signature
OpenReports(folders, names)Parameters: - folders (list of str) – array of folders to be searched
- names (list of str) – array of report names
Returns: array of opened reports
Return type: New in version NX7.5.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
RegisterProperty¶
-
VisualReportManager.RegisterProperty¶ Overloaded method RegisterProperty
RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getStringTypePropertyValue)RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getIntegerTypePropertyValue)RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getRealTypePropertyValue)RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getBooleanTypePropertyValue)RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getDateTypePropertyValue)
-------------------------------------Registers a string type property.
The property key and property name should be unique in current session. Parameters ‘isValidInNative’ and ‘isValidInTeamcenter’ shouldn’t be ‘false’ at the same time.
Signature
RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getStringTypePropertyValue)Parameters: - propertyKey (str) – property key
- propertyName (str) – property name
- scopeType (
NXOpen.VisualReporting.VisualReportScopeTypeOption) – property scope type - objectTypes (list of
NXOpen.VisualReporting.VisualReportObjectTypeOption) – object types - dataType (
NXOpen.VisualReporting.PropertyDatatypeOption) – property data type - isValidInNative (bool) – is property valid in native mode
- isValidInTeamcenter (bool) – is property valid in Teamcenter mode
- getStringTypePropertyValue (CallableObject) – callback function that returns a string type property value
New in version NX12.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
-------------------------------------Registers an integer type property.
The property key and property name should be unique in current session. Parameters ‘isValidInNative’ and ‘isValidInTeamcenter’ shouldn’t be ‘false’ at the same time.
Signature
RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getIntegerTypePropertyValue)Parameters: - propertyKey (str) – property key
- propertyName (str) – property name
- scopeType (
NXOpen.VisualReporting.VisualReportScopeTypeOption) – property scope type - objectTypes (list of
NXOpen.VisualReporting.VisualReportObjectTypeOption) – object types - dataType (
NXOpen.VisualReporting.PropertyDatatypeOption) – property data type - isValidInNative (bool) – is property valid in native mode
- isValidInTeamcenter (bool) – is property valid in Teamcenter mode
- getIntegerTypePropertyValue (CallableObject) – callback function that returns a integer type property value
New in version NX12.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
-------------------------------------Registers a double type property.
The property key and property name should be unique in current session. Parameters ‘isValidInNative’ and ‘isValidInTeamcenter’ shouldn’t be ‘false’ at the same time.
Signature
RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getRealTypePropertyValue)Parameters: - propertyKey (str) – property key
- propertyName (str) – property name
- scopeType (
NXOpen.VisualReporting.VisualReportScopeTypeOption) – property scope type - objectTypes (list of
NXOpen.VisualReporting.VisualReportObjectTypeOption) – object types - dataType (
NXOpen.VisualReporting.PropertyDatatypeOption) – property data type - isValidInNative (bool) – is property valid in native mode
- isValidInTeamcenter (bool) – is property valid in Teamcenter mode
- getRealTypePropertyValue (CallableObject) – callback function that returns a double type property value
New in version NX12.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
-------------------------------------Registers a boolean type property.
The property key and property name should be unique in current session. Parameters ‘isValidInNative’ and ‘isValidInTeamcenter’ shouldn’t be ‘false’ at the same time.
Signature
RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getBooleanTypePropertyValue)Parameters: - propertyKey (str) – property key
- propertyName (str) – property name
- scopeType (
NXOpen.VisualReporting.VisualReportScopeTypeOption) – property scope type - objectTypes (list of
NXOpen.VisualReporting.VisualReportObjectTypeOption) – object types - dataType (
NXOpen.VisualReporting.PropertyDatatypeOption) – property data type - isValidInNative (bool) – is property valid in native mode
- isValidInTeamcenter (bool) – is property valid in Teamcenter mode
- getBooleanTypePropertyValue (CallableObject) – callback function that returns a bool property value
New in version NX12.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
-------------------------------------Registers a
NXOpen.NXObjectComputationalTimetype property.The property key and property name should be unique in current session. Parameters ‘isValidInNative’ and ‘isValidInTeamcenter’ shouldn’t be ‘false’ at the same time.
Signature
RegisterProperty(propertyKey, propertyName, scopeType, objectTypes, dataType, isValidInNative, isValidInTeamcenter, getDateTypePropertyValue)Parameters: - propertyKey (str) – property key
- propertyName (str) – property name
- scopeType (
NXOpen.VisualReporting.VisualReportScopeTypeOption) – property scope type - objectTypes (list of
NXOpen.VisualReporting.VisualReportObjectTypeOption) – object types - dataType (
NXOpen.VisualReporting.PropertyDatatypeOption) – property data type - isValidInNative (bool) – is property valid in native mode
- isValidInTeamcenter (bool) – is property valid in Teamcenter mode
- getDateTypePropertyValue (CallableObject) – callback function that returns a
NXOpen.NXObjectComputationalTimetype property value
New in version NX12.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
-------------------------------------
Unload¶
-
VisualReportManager.Unload¶ Unloads an opened
NXOpen.VisualReporting.VisualReport.Signature
Unload(visualReport)Parameters: visualReport ( NXOpen.VisualReporting.VisualReport) –New in version NX8.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)
UnregisterProperty¶
-
VisualReportManager.UnregisterProperty¶ Unregisters a property.
When the library which the property resides in is unloaded from NX session, this method should be called to unregister the property.
Signature
UnregisterProperty(propertyKey)Parameters: propertyKey (str) – property key New in version NX12.0.0.
License requirements: nx_visual_reporting (“Visual Reporting”)