Application class is used to operate the JMAG-Designer application.
Each class object is called from Application class.
.
More...
Inherits ApplicationBase.
Public Member Functions | |
| void | AppendScriptXML (String &xml) |
| Since this is an internal function, it is not officially supported. More... | |
| void | ApplyAnalysisTemplate (AnalysisTemplateParameter *parameter) |
| Specifies the analysis template of the tool box and associates the template with the CAD model. More... | |
| void | AttachMotorTemplate (long pid) |
| Since this is an internal function, it is not officially supported. More... | |
| void | CancelProcess () |
| Cancels a job generating mesh or running a calculation. | |
| bool | CanRedo () |
| Returns whether it is possible to redo or not. More... | |
| bool | CanUndo () |
| Returns whether it is possible to undo or not. More... | |
| void | CheckFolderResults (String &folder) |
| Imports result files (*.jplot) in a specified folder. More... | |
| void | CheckForNewResults () |
| Loads results that have not been imported for all studies included in a project. | |
| void | ClearError () |
| Clears errors. | |
| void | ClearUndoStack () |
| Clears the undo stack. | |
| void | ClearWarning () |
| Clears warnings. | |
| void | CopyToClipboard (Variant &data) |
| Copies the specified character string to the clipboard. More... | |
| AnalysisGroup * | CreateAnalysisGroup (String &typeName, String &name=String("untitled")) |
| Creates AnalysisGroup object. More... | |
| AnalysisTemplateParameter * | CreateAnalysisTemplateParameter () |
| Returns the AnalysisTemplateParameter object. More... | |
| CircuitConditionConnector * | CreateCircuitConditionConnector (Study *study) |
| Creates a CircuitConditionConnector object. More... | |
| Model * | CreateCircuitModel (String &name=String("untitled")) |
| Creates a Model object for integration study. More... | |
| Cylinder * | CreateCylinder () |
| Creates a Cylinder object. More... | |
| DataSetParameter * | CreateDataSetParameter (String &name) |
| Returns a DataSetParameter object. More... | |
| SimpleDialogBox * | CreateDialogBox () |
| Creates a SimpleDialogBox object. More... | |
| DriveCycleResponseDataParameter * | CreateDriveCycleResponseDataParameter (String &name) |
| Creates a DriveCycleResponseDataParameter object. More... | |
| EfficiencyMapResponseDataParameter * | CreateEfficiencyMapResponseDataParameter (String &name) |
| Creates a EfficiencyMapResponseDataParameter object. More... | |
| ExtractFrequencyParameter * | CreateExtractFrequencyParameter (String &name) |
| Returns the ExtractFrequencyParameter object. More... | |
| FFTParameter * | CreateFFTParameter (String &name) |
| Returns a FFTParameter object. More... | |
| IDispatch * | CreateGeometryEditor (bool askForSave=true) |
| Starts Geometry Editor, and either creates new geometry or edits the geometry. More... | |
| TRemoteObjectProxy * | CreateGeometryEditorInternal (bool askForSave=true) |
| Since this is an internal function, it is not officially supported. More... | |
| GraphIntegralParameter * | CreateGraphIntegralParameter (String &name) |
| Returns the GraphIntegralParameter object. More... | |
| Job * | CreateJob (String array &studies) |
| Creates a Job object to perform batch execution of the all models. A “Job” is a command to run an analysis that is exchanged between machines. More... | |
| Material * | CreateMaterial (String &name) |
| Returns a Material object by specifying a name. More... | |
| IDispatch * | CreateMotorTemplate () |
| Creates an instance with JMAG-Express. More... | |
| TRemoteObjectProxy * | CreateMotorTemplateInternal () |
| Since this is an internal function, it is not officially supported. More... | |
| ParallelGroupConditionCreator * | CreateParallelConditionCreator (Study *study) |
| Creates a ParallelGroupConditionCreator object. More... | |
| Point * | CreatePoint (Variant &x, Variant &y, Variant &z) |
| Returns a Point object by specifying the coordinates (x, y, z). More... | |
| ProjectExportParameter * | CreateProjectExportParameter () |
| Creates a ProjectExportParameter object. More... | |
| ResponseDataParameter * | CreateResponseDataParameter (String &name) |
| Creates a ResponseDataParameter object. More... | |
| RotateGroupConditionCreator * | CreateRotateConditionCreator (Study *study) |
| Creates a RotateGroupConditionCreator object. More... | |
| RttFileParameter * | CreateRttFileParameter () |
| Returns a RttFileParameter object. More... | |
| IDispatch * | CreateTransformerEditor () |
| Creates an instance with the Transformer Modeling tool. | |
| TRemoteObjectProxy * | CreateTransformerEditorInternal () |
| Since this is an internal function, it is not officially supported. More... | |
| void | DeleteAnalysisGroup (Variant &val) |
| Deletes an analysis group by specifying a name or index. More... | |
| void | DeleteModel (Variant &val) |
| Deletes a model by specifying a name or index. More... | |
| void | DetachMotorTemplate () |
| Since this is an internal function, it is not officially supported. More... | |
| void | EndCommandGroup () |
| Stops grouping commands together. | |
| void | ExportAnalysisParameters (String &filename, bool exportCADParameter) |
| Exports Analysis Parameter items to designated file. More... | |
| void | ExportHoopsFile (String &filename) |
| Exports hoops file to the specified file name. More... | |
| void | ExportImage (String &filename) |
| Exports the model displayed in the graphics window as an image. More... | |
| void | ExportImageWithSize (String &filename, int width, int height) |
| Exports the model displayed in the graphics window as an image with the specified size. More... | |
| void | ExportProject (String &filename, ProjectExportParameter *parameter) |
| Exports the study set to the ProjectExportParameter object to the project file. More... | |
| void | FinishBatchMaterialUpdate () |
| Ends batch Material object update. | |
| FunctionObjectFactory * | FunctionFactory () |
| Returns the FunctionObjectFactory object. More... | |
| ResultViewItemList * | GetAllCasesResultViewItemList () |
| Returns result view list for all cases. More... | |
| Variant | GetAllMessages () |
| Returns a list of all messages. More... | |
| AnalysisGroup * | GetAnalysisGroup (Variant &val) |
| Returns an analysis group by specifying a name or index. More... | |
| String | GetAppDir () |
| Returns the installation folder of JMAG-Designer. More... | |
| String | GetCreatorName () |
| Returns the name of the creator of the project specified in the project properties. More... | |
| AnalysisGroup * | GetCurrentAnalysisGroup () |
| Returns the analysis group containing the active study. | |
| Model * | GetCurrentModel () |
| Returns an active model. More... | |
| CurrentResult * | GetCurrentResult () |
| Returns the CurrentResult object. More... | |
| Study * | GetCurrentStudy () |
| Returns the active Study object. More... | |
| DataManager * | GetDataManager () |
| Returns the DataManager object. More... | |
| String | GetDefaultModelFolderPath () |
| Since this is an internal function, it is not officially supported. More... | |
| String | GetDescription () |
| Returns the description in the project properties. More... | |
| String | GetLastMessage () |
| Returns the latest error message as a string. More... | |
| MaterialLibrary * | GetMaterialLibrary () |
| Returns the MaterialLibrary object. More... | |
| Model * | GetModel (Variant &val) |
| Returns the Model object by specifying a name or index. More... | |
| String | GetModelNameInProjectFromFilePath (String &filename) |
| Returns the project file name by specifying the file path. More... | |
| String | GetOpenFile (String &filter=String()) |
| Opens the file select dialog and opens the selected file. More... | |
| ParameterSettingStatus * | GetParameterSettingStatus () |
| Returns a ParameterSettingStatus object to specify the display status of the analysis parameter list. More... | |
| Variant | GetPreference (String &propName) |
| Returns the current settings for language or encoding. More... | |
| String | GetProjectFolderPath () |
| Returns the path for the folder (*.jfiles) as a string. More... | |
| String | GetProjectKey () |
| Returns the project key. More... | |
| String | GetProjectName () |
| Returns the name of a project as a string. More... | |
| String | GetProjectPath () |
| Returns path for project file (*.jproj) as a string. More... | |
| ResultViewItemList * | GetResultViewItemList () |
| Returns result view list. More... | |
| String | GetSaveFile (String &filter=String()) |
| Opens the save file dialog and returns the specified file name. More... | |
| Study * | GetStudy (Variant &val) |
| Returns a Study object by specifying a name or index. More... | |
| CurrentResult * | GetStudyResult (String &studyIdentifier, int caseIndex) |
| Since this is an internal function, it is not officially supported. More... | |
| UserComponentList * | GetUserComponentList () |
| Returns the UserComponentList object. More... | |
| String | GetUuid () |
| Returns the project UUID number. More... | |
| bool | HasAlreadyLoadModelInProject (String &filename) |
| Returns whether or not a specified model is loaded to the project. More... | |
| bool | HasError () |
| Returns True as a return value when errors occur. More... | |
| bool | HasRunningProcess () |
| Returns True as the return value when a job is generating mesh or running a calculation. More... | |
| bool | HasWarning () |
| Returns True as a return value when warnings occur. More... | |
| void | Hide () |
| Hides the main window. | |
| void | Import2DDataFromMotorTemplate (bool isPartial) |
| Imports the model created with JMAG-Express into JMAG-Designer as a 2D model. More... | |
| void | Import2DDataFromMotorTemplateIndex (int index, bool isPartial) |
| Imports the model created by specifying the JMAG-Express into JMAG-Designer as a 2D model. More... | |
| void | Import3DDataFromMotorTemplate (bool isPartial, bool createCoilEnd) |
| Imports the model created with JMAG-Express into JMAG-Designer after being converted to a 3D model. More... | |
| void | Import3DDataFromMotorTemplateIndex (int index, bool isPartial, bool createCoilEnd) |
| Imports the model created by specifying the JMAG-Express into JMAG-Designer after being converted to a 3D model. More... | |
| void | ImportAnalysisTemplate (AnalysisTemplateParameter *parameter) |
| Imports an analysis template (*. jtmpl) and links the template to a CAD model. More... | |
| void | ImportDataFromGeometryEditor () |
| Imports a model created with Geometry Editor into JMAG-Designer. | |
| void | ImportDataFromGeometryEditorIndex (int index) |
| Imports a model created by specifying the Geometry Editor into JMAG-Designer. More... | |
| void | ImportDataFromMotorTemplate () |
| Imports a model created with JMAG-Express into JMAG-Designer. | |
| void | ImportDataFromTransformerEditor () |
| Imports a model created with the Transformer Modeling tool into JMAG-Designer. | |
| void | ImportDataFromTransformerEditorIndex (int index) |
| Imports a model created by specifying the Transformer Modeling tool into JMAG-Designer. More... | |
| void | ImportModel (String &statorKey, String &rotorKey) |
| Imports stator and rotor models at the same time. More... | |
| bool | IsExpressMode () |
| Returns True as a return value when running in Express mode. More... | |
| bool | IsIdRecordingMode () |
| Since this is an internal function, it is not officially supported. More... | |
| bool | IsStartRecording () |
| Since this is an internal function, it is not officially supported. More... | |
| bool | IsValid () |
| Returns True as the return value if an object is valid. More... | |
| void | LaunchGeometryEditor () |
| Starts Geometry Editor, and creates new geometry or edits the geometry. | |
| void | LaunchMotorTemplate () |
| Starts JMAG-Express. | |
| void | LaunchTransformerEditor () |
| Starts the Transformer Modeling tool. | |
| void | Load (String &filename) |
| Imports data from the specified file. More... | |
| void | Load2DSAT (String &filename) |
| Imports a 2D SAT file. More... | |
| Model * | LoadCadData (String &filename, String &name) |
| Returns a Model object with the specified name by importing a CAD file. More... | |
| Model * | LoadCadDataWithOption (String &filename, String &name, bool useHealing, bool removeSheet, String &unitName="") |
| Returns the Model object with the specified name by importing a CAD file. Functions such as healing and removing sheet parts and specify unit of length can be selected as options. More... | |
| Model * | LoadCATIAV5CadData (String &filename, String &name, bool onlyVisibleSolid, bool useHealing, bool removeSheet, String &unitName="") |
| Returns the Model object with the specified name by importing a CATPart or CATProduct file. Functions such as only import visible solid, healing and removing sheet parts and specify unit of length can be selected as options. More... | |
| Model * | LoadCreoCadData (String &filename, String &name, bool onlyVisibleSolid, bool useHealing, bool removeSheet, String &unitName="") |
| Returns the Model object with the specified name by importing an asm or prt file. Functions such as only import visible solid, healing and removing sheet parts and specify unit of length can be selected as options. More... | |
| void | LoadMesh (String &filename) |
| Imports data from the specified file (mesh data). More... | |
| void | LoadNewCaseData (String &xmldata) |
| Since this is an internal function, it is not officially supported. More... | |
| void | LoadNewCaseFile (String &filename) |
| Since this is an internal function, it is not officially supported. More... | |
| Model * | LoadNXCadData (String &filename, String &name, bool onlyVisibleSolid, bool useHealing, bool removeSheet, String &unitName="") |
| Returns the Model object with the specified name by importing a CAD file. Functions such as only import visible solid, healing and removing sheet parts and specify unit of length can be selected as options. More... | |
| void | LoadRTTP (String &filename, String &password) |
| Imports data from the specified file and set password. More... | |
| String | MainWindowTitle () |
| Returns the character string displayed in the title bar of the main window. More... | |
| int | MajorVersion () |
| Returns the major version number. More... | |
| int | MinorVersion () |
| Returns a minor version number. More... | |
| void | NewProject (String &name) |
| Creates a project with the given name. More... | |
| int | NumAnalysisGroups () |
| Returns the number of analysis groups. More... | |
| int | NumModels () |
| Returns the number of models. More... | |
| int | NumStudies () |
| Returns the number of studies. More... | |
| void | OnHiddenMotorTemplate (qint64 pid) |
| Since this is an internal function, it is not officially supported. More... | |
| void | OutputLogDebugInfo (String &info) |
| Since this is an internal function, it is not officially supported. More... | |
| void | OutputLogInfo (String &info) |
| Since this is an internal function, it is not officially supported. More... | |
| void | PopUndoStack () |
| Undoes the last action and disable redo. | |
| void | Quit () |
| Exits the application. | |
| void | Raise () |
| Brings the JMAG-Designer window to the front. | |
| void | Redo () |
| Redoes the last action. | |
| void | RunScriptFile (String &filename, String &type="") |
| Runs a script file (*.vbs). More... | |
| void | Save () |
| Saves data in the user folder. | |
| void | SaveAs (String &filename) |
| Saves data to a specified path. More... | |
| void | SetCloseWithoutTermination (bool flag) |
| Since this is an internal function, it is not officially supported. More... | |
| void | SetCreatorName (String &name) |
| Specifies the name of the project creator. More... | |
| void | SetCurrentModel (Variant &val) |
| Switches an active model by specifying a name or index. More... | |
| void | SetCurrentStudy (Variant &val) |
| Switches an active study by specifying a name or index. More... | |
| void | SetDescription (String &description) |
| Specifies the description of the project. More... | |
| void | SetGeometry (int x, int y, int w, int h) |
| Determines the position and size of the window. More... | |
| void | SetMessageVisible (bool on) |
| Since this is an internal function, it is not officially supported. More... | |
| void | SetModelAsCurrent (Model *model) |
| Activates the specified Model object. More... | |
| void | SetModelOrder (Variant &val, int position) |
| Changes the order of the studies. More... | |
| void | SetPosition (int x, int y) |
| Determines the position of the window. More... | |
| void | SetPreference (String &propName, Variant &val) |
| Edits the current setting for language or encoding. More... | |
| void | SetProjectName (String &name) |
| Specifies the name of a project. More... | |
| void | SetShowProgressDialog (bool show) |
| Since this is an internal function, it is not officially supported. More... | |
| void | SetSize (int w, int h) |
| Determines the size of the window. More... | |
| void | SetStudyAsCurrent (Study *study) |
| Activates the specified Study object. More... | |
| void | SetupUserProgress (String &label) |
| This function needs to be called before starting the progress display in the progress dialog. More... | |
| void | SetUseExceptions (bool useExceptions) |
| Specifies the flag to convert errors to Python exceptions. More... | |
| void | SetUserProgressMaxSteps (int steps) |
| Specifies a progress interval on the dialog using the specified number of steps. More... | |
| void | SetUserProgressMessage (String &label) |
| Specifies a message on the progress dialog. More... | |
| void | SetUserProgressUseCancel (bool useCancel) |
| Specifies whether to use the Cancel button in the progress dialog. More... | |
| void | SetVisible (bool visible) |
| Switches between displaying and hiding the main window of the application. More... | |
| void | Show () |
| Shows the main window of the application. | |
| void | ShowCircuitGrid (bool show) |
| Switches between showing and hiding the grid of circuit editor. More... | |
| void | Sleep (int milliSeconds) |
| Specifies JMAG-Designer in sleep mode to a specified period of time. More... | |
| void | StartBatchMaterialUpdate () |
| Starts batch Material object update. More... | |
| void | StartCommandGroup (String &description) |
| Starts grouping multiple commands together as one action. More... | |
| void | SubmitAllModelsLocal () |
| Submits all studies of a project to queue on a local machine. | |
| void | SubmitAllModelsRemote (String &machine, String &cpu, Variant &keepremote) |
| Submits all studies of a project to queue on a specified machine. More... | |
| void | SubmitLocalFromJproj (String array &studies, int numOfJobs) |
| Submits selected studies to queue on a local machine. More... | |
| void | SubmitRemoteFromJproj (String array &studies, int numOfJobs, String &machine, String &cpu, Variant &keepremote) |
| Submits selected studies to queue on a specified machine. More... | |
| int | SubVersion () |
| Returns the subversion number. More... | |
| void | SwitchLicense () |
| Switches to JMAG-Designer license. | |
| String | Translate (String &value, String &context) |
| Translates a string. More... | |
| void | Undo () |
| Undoes the last action. | |
| void | UserProgressFinish () |
| Finishes displaying the progress dialog. | |
| void | UserProgressStart () |
| Starts displaying the progress dialog. | |
| void | UserProgressStep () |
| Progresses 1 step on the progress dialog. | |
| bool | UserProgressWasCanceled () |
| Returns True as a return value if the progress dialog is canceled. More... | |
| String | VersionString (bool includeSub) |
| Returns the version number as a string. More... | |
| ViewController * | View () |
| Returns a ViewController object. More... | |
| bool | visible () |
| Returns True as the return value if the main window of application is displayed. More... | |
Application class is used to operate the JMAG-Designer application.
Each class object is called from Application class.
.
Use application name "designer" to obtain an Application class object.
| void Application::AppendScriptXML | ( | String & | xml | ) |
Since this is an internal function, it is not officially supported.
| void Application::ApplyAnalysisTemplate | ( | AnalysisTemplateParameter * | parameter | ) |
Specifies the analysis template of the tool box and associates the template with the CAD model.
| AnalysisTemplateParameter | object |
| void Application::AttachMotorTemplate | ( | long | pid | ) |
Since this is an internal function, it is not officially supported.
| bool Application::CanRedo | ( | ) |
Returns whether it is possible to redo or not.
| bool Application::CanUndo | ( | ) |
Returns whether it is possible to undo or not.
| void Application::CheckFolderResults | ( | String & | folder | ) |
Imports result files (*.jplot) in a specified folder.
| folder | Folder path |
| void Application::CopyToClipboard | ( | Variant & | data | ) |
Copies the specified character string to the clipboard.
| data | Data to be copied |
| AnalysisGroup * Application::CreateAnalysisGroup | ( | String & | typeName, |
| String & | name = String("untitled") |
||
| ) |
Creates AnalysisGroup object.
| typeName | Calculation type name
"sequential"=Selected study is calculated sequentially
"coupled"=Direct coupled analysis is run from the selected study
|
| name | Analysis group name |
| AnalysisTemplateParameter * Application::CreateAnalysisTemplateParameter | ( | ) |
Returns the AnalysisTemplateParameter object.
| CircuitConditionConnector * Application::CreateCircuitConditionConnector | ( | Study * | study | ) |
Creates a CircuitConditionConnector object.
| study | Study object |
| Model * Application::CreateCircuitModel | ( | String & | name = String("untitled") | ) |
| DataSetParameter * Application::CreateDataSetParameter | ( | String & | name | ) |
Returns a DataSetParameter object.
| name | Title of dataset to be created |
| SimpleDialogBox * Application::CreateDialogBox | ( | ) |
Creates a SimpleDialogBox object.
| DriveCycleResponseDataParameter * Application::CreateDriveCycleResponseDataParameter | ( | String & | name | ) |
Creates a DriveCycleResponseDataParameter object.
| name | Name of the response value |
| EfficiencyMapResponseDataParameter * Application::CreateEfficiencyMapResponseDataParameter | ( | String & | name | ) |
Creates a EfficiencyMapResponseDataParameter object.
| name | Name of the response value |
| ExtractFrequencyParameter * Application::CreateExtractFrequencyParameter | ( | String & | name | ) |
Returns the ExtractFrequencyParameter object.
| name | Dataset title to be created |
| FFTParameter * Application::CreateFFTParameter | ( | String & | name | ) |
Returns a FFTParameter object.
| name | Title of dataset to be created |
| IDispatch * Application::CreateGeometryEditor | ( | bool | askForSave = true | ) |
Starts Geometry Editor, and either creates new geometry or edits the geometry.
For more information about GeomApplication class command, see Geometry Editor Script Help "GeomApplication."
| TRemoteObjectProxy * Application::CreateGeometryEditorInternal | ( | bool | askForSave = true | ) |
Since this is an internal function, it is not officially supported.
| GraphIntegralParameter * Application::CreateGraphIntegralParameter | ( | String & | name | ) |
Returns the GraphIntegralParameter object.
| name | Dataset title to be created |
| Job * Application::CreateJob | ( | String array & | studies | ) |
| Material * Application::CreateMaterial | ( | String & | name | ) |
Returns a Material object by specifying a name.
| name | Material name |
Create a material using the command of the MaterialLibrary class when using JMAG-Designer 10.0 or later.
An object needs to be created and assigned to a part when specifying a material that exists in the material list to a part with a script.
The CreateMaterial() command is used to obtain the object for the material in the material list. The command is not used to define a new material.
| IDispatch * Application::CreateMotorTemplate | ( | ) |
Creates an instance with JMAG-Express.
| TRemoteObjectProxy * Application::CreateMotorTemplateInternal | ( | ) |
Since this is an internal function, it is not officially supported.
| ParallelGroupConditionCreator * Application::CreateParallelConditionCreator | ( | Study * | study | ) |
Creates a ParallelGroupConditionCreator object.
| study | Study object |
| Point * Application::CreatePoint | ( | Variant & | x, |
| Variant & | y, | ||
| Variant & | z | ||
| ) |
| ProjectExportParameter * Application::CreateProjectExportParameter | ( | ) |
Creates a ProjectExportParameter object.
| ResponseDataParameter * Application::CreateResponseDataParameter | ( | String & | name | ) |
Creates a ResponseDataParameter object.
| name | Name of the response value |
| RotateGroupConditionCreator * Application::CreateRotateConditionCreator | ( | Study * | study | ) |
Creates a RotateGroupConditionCreator object.
| study | Study object |
| RttFileParameter * Application::CreateRttFileParameter | ( | ) |
Returns a RttFileParameter object.
| TRemoteObjectProxy * Application::CreateTransformerEditorInternal | ( | ) |
Since this is an internal function, it is not officially supported.
| void Application::DeleteAnalysisGroup | ( | Variant & | val | ) |
Deletes an analysis group by specifying a name or index.
| val | Name or index |
| void Application::DeleteModel | ( | Variant & | val | ) |
Deletes a model by specifying a name or index.
| val | Model name or index |
| void Application::DetachMotorTemplate | ( | ) |
Since this is an internal function, it is not officially supported.
| void Application::ExportAnalysisParameters | ( | String & | filename, |
| bool | exportCADParameter | ||
| ) |
Exports Analysis Parameter items to designated file.
| filename | Export file name |
| exportCADParameter | Whether to output CAD parameters |
| void Application::ExportHoopsFile | ( | String & | filename | ) |
Exports hoops file to the specified file name.
| filename | Full path name of the Hoops file to export |
| void Application::ExportImage | ( | String & | filename | ) |
Exports the model displayed in the graphics window as an image.
| filename | File path |
| void Application::ExportImageWithSize | ( | String & | filename, |
| int | width, | ||
| int | height | ||
| ) |
Exports the model displayed in the graphics window as an image with the specified size.
| filename | Full path name of the image file to export |
| width | Width |
| height | Height |
| void Application::ExportProject | ( | String & | filename, |
| ProjectExportParameter * | parameter | ||
| ) |
Exports the study set to the ProjectExportParameter object to the project file.
| filename | Project file name |
| parameter | ProjectExportParameter object |
| FunctionObjectFactory * Application::FunctionFactory | ( | ) |
Returns the FunctionObjectFactory object.
| ResultViewItemList * Application::GetAllCasesResultViewItemList | ( | ) |
Returns result view list for all cases.
| Variant Application::GetAllMessages | ( | ) |
Returns a list of all messages.
| AnalysisGroup * Application::GetAnalysisGroup | ( | Variant & | val | ) |
Returns an analysis group by specifying a name or index.
| val | Name or index |
| String Application::GetAppDir | ( | ) |
Returns the installation folder of JMAG-Designer.
| String Application::GetCreatorName | ( | ) |
Returns the name of the creator of the project specified in the project properties.
| CurrentResult * Application::GetCurrentResult | ( | ) |
Returns the CurrentResult object.
| DataManager * Application::GetDataManager | ( | ) |
Returns the DataManager object.
| String Application::GetDefaultModelFolderPath | ( | ) |
Since this is an internal function, it is not officially supported.
| String Application::GetDescription | ( | ) |
Returns the description in the project properties.
| String Application::GetLastMessage | ( | ) |
Returns the latest error message as a string.
| MaterialLibrary * Application::GetMaterialLibrary | ( | ) |
Returns the MaterialLibrary object.
| Model * Application::GetModel | ( | Variant & | val | ) |
| String Application::GetModelNameInProjectFromFilePath | ( | String & | filename | ) |
Returns the project file name by specifying the file path.
| filename | File path |
| String Application::GetOpenFile | ( | String & | filter = String() | ) |
Opens the file select dialog and opens the selected file.
| filter | Filter when a file is selected |
| ParameterSettingStatus * Application::GetParameterSettingStatus | ( | ) |
Returns a ParameterSettingStatus object to specify the display status of the analysis parameter list.
| Variant Application::GetPreference | ( | String & | propName | ) |
Returns the current settings for language or encoding.
| propName | Type of properties to obtain Language:Language Encoding:Encoding |
| String Application::GetProjectFolderPath | ( | ) |
Returns the path for the folder (*.jfiles) as a string.
| String Application::GetProjectKey | ( | ) |
Returns the project key.
Returns the Project Key for the project. This is used for the Power Simulation License.
| String Application::GetProjectName | ( | ) |
Returns the name of a project as a string.
| String Application::GetProjectPath | ( | ) |
Returns path for project file (*.jproj) as a string.
| ResultViewItemList * Application::GetResultViewItemList | ( | ) |
Returns result view list.
| String Application::GetSaveFile | ( | String & | filter = String() | ) |
Opens the save file dialog and returns the specified file name.
The file does not need to exist.
| filter | Filter when a file is selected |
| Study * Application::GetStudy | ( | Variant & | val | ) |
| CurrentResult * Application::GetStudyResult | ( | String & | studyIdentifier, |
| int | caseIndex | ||
| ) |
Since this is an internal function, it is not officially supported.
| UserComponentList * Application::GetUserComponentList | ( | ) |
Returns the UserComponentList object.
| String Application::GetUuid | ( | ) |
Returns the project UUID number.
Returns an unique ID for the project.
| bool Application::HasAlreadyLoadModelInProject | ( | String & | filename | ) |
Returns whether or not a specified model is loaded to the project.
| filename | Model file name |
| bool Application::HasError | ( | ) |
Returns True as a return value when errors occur.
| bool Application::HasRunningProcess | ( | ) |
Returns True as the return value when a job is generating mesh or running a calculation.
| bool Application::HasWarning | ( | ) |
Returns True as a return value when warnings occur.
| void Application::Import2DDataFromMotorTemplate | ( | bool | isPartial | ) |
Imports the model created with JMAG-Express into JMAG-Designer as a 2D model.
| isPartial | True=1 : Import as a partial model
False=0 : Import as a full model
|
| void Application::Import2DDataFromMotorTemplateIndex | ( | int | index, |
| bool | isPartial | ||
| ) |
Imports the model created by specifying the JMAG-Express into JMAG-Designer as a 2D model.
| index | Number of JMAG-Express |
| isPartial | True=1 : Import as a partial model
False=0 : Import as a full model
|
| void Application::Import3DDataFromMotorTemplate | ( | bool | isPartial, |
| bool | createCoilEnd | ||
| ) |
Imports the model created with JMAG-Express into JMAG-Designer after being converted to a 3D model.
| isPartial | True=1 : Imports as a partial model
False=0 : Imports as a full model
|
| createCoilEnd | True=1 : Create coil ends
False=0 : Do not create coil ends
|
| void Application::Import3DDataFromMotorTemplateIndex | ( | int | index, |
| bool | isPartial, | ||
| bool | createCoilEnd | ||
| ) |
Imports the model created by specifying the JMAG-Express into JMAG-Designer after being converted to a 3D model.
| index | Number of JMAG-Express |
| isPartial | True=1 : Import as a partial model
False=0 : Import as a full model
|
| createCoilEnd | True=1 : Create coil ends
False=0 : Do not create coil ends
|
| void Application::ImportAnalysisTemplate | ( | AnalysisTemplateParameter * | parameter | ) |
Imports an analysis template (*. jtmpl) and links the template to a CAD model.
| AnalysisTemplateParameter | object |
| void Application::ImportDataFromGeometryEditorIndex | ( | int | index | ) |
Imports a model created by specifying the Geometry Editor into JMAG-Designer.
| index | Number of Geometry Editor |
| void Application::ImportDataFromTransformerEditorIndex | ( | int | index | ) |
Imports a model created by specifying the Transformer Modeling tool into JMAG-Designer.
| index | Number of Transformer Modeling tool |
| void Application::ImportModel | ( | String & | statorKey, |
| String & | rotorKey | ||
| ) |
Imports stator and rotor models at the same time.
| statorKey | Stator model key |
| rotorKey | Rotor model key |
| bool Application::IsExpressMode | ( | ) |
Returns True as a return value when running in Express mode.
| bool Application::IsIdRecordingMode | ( | ) |
Since this is an internal function, it is not officially supported.
| bool Application::IsStartRecording | ( | ) |
Since this is an internal function, it is not officially supported.
| bool Application::IsValid | ( | ) |
Returns True as the return value if an object is valid.
| void Application::Load | ( | String & | filename | ) |
Imports data from the specified file.
| filename | File path |
| void Application::Load2DSAT | ( | String & | filename | ) |
Imports a 2D SAT file.
| filename | File path |
| Model * Application::LoadCadData | ( | String & | filename, |
| String & | name | ||
| ) |
| Model * Application::LoadCadDataWithOption | ( | String & | filename, |
| String & | name, | ||
| bool | useHealing, | ||
| bool | removeSheet, | ||
| String & | unitName = "" |
||
| ) |
Returns the Model object with the specified name by importing a CAD file. Functions such as healing and removing sheet parts and specify unit of length can be selected as options.
| filename | Path to the CAD file |
| name | Specified name |
| useHealing | True=1 : Use healing
False=0 : Do not use healing
|
| removeSheet | True=1 : Remove sheet parts
False=0 : Do not remove sheet parts
|
| unitName | Specified unit of length |
| Model * Application::LoadCATIAV5CadData | ( | String & | filename, |
| String & | name, | ||
| bool | onlyVisibleSolid, | ||
| bool | useHealing, | ||
| bool | removeSheet, | ||
| String & | unitName = "" |
||
| ) |
Returns the Model object with the specified name by importing a CATPart or CATProduct file. Functions such as only import visible solid, healing and removing sheet parts and specify unit of length can be selected as options.
| filename | Path to the CATPart or CATProduct file |
| name | Specified name |
| onlyVisibleSolid | True=1 : Import only visible solids
False=0 : Import all solids
|
| useHealing | True=1 : Use healing
False=0 : Do not use healing
|
| removeSheet | True=1 : Remove sheet parts
False=0 : Do not remove sheet parts
|
| unitName | Specified unit of length |
| Model * Application::LoadCreoCadData | ( | String & | filename, |
| String & | name, | ||
| bool | onlyVisibleSolid, | ||
| bool | useHealing, | ||
| bool | removeSheet, | ||
| String & | unitName = "" |
||
| ) |
Returns the Model object with the specified name by importing an asm or prt file. Functions such as only import visible solid, healing and removing sheet parts and specify unit of length can be selected as options.
| filename | Path to the asm or prt file |
| name | Specified name |
| onlyVisibleSolid | True=1 : Import only visible solids
False=0 : Import all solids
|
| useHealing | True=1 : Use healing
False=0 : Do not use healing
|
| removeSheet | True=1 : Remove sheet parts
False=0 : Do not remove sheet parts
|
| unitName | Specified unit of length |
| void Application::LoadMesh | ( | String & | filename | ) |
Imports data from the specified file (mesh data).
| filename | File path |
| void Application::LoadNewCaseData | ( | String & | xmldata | ) |
Since this is an internal function, it is not officially supported.
| void Application::LoadNewCaseFile | ( | String & | filename | ) |
Since this is an internal function, it is not officially supported.
| Model * Application::LoadNXCadData | ( | String & | filename, |
| String & | name, | ||
| bool | onlyVisibleSolid, | ||
| bool | useHealing, | ||
| bool | removeSheet, | ||
| String & | unitName = "" |
||
| ) |
Returns the Model object with the specified name by importing a CAD file. Functions such as only import visible solid, healing and removing sheet parts and specify unit of length can be selected as options.
| filename | Path to the CAD file |
| name | Specified name |
| onlyVisibleSolid | True=1 : Import only visible solids
False=0 : Import all solids
|
| useHealing | True=1 : Use healing
False=0 : Do not use healing
|
| removeSheet | True=1 : Remove sheet parts
False=0 : Do not remove sheet parts
|
| unitName | Specified unit of length |
| void Application::LoadRTTP | ( | String & | filename, |
| String & | password | ||
| ) |
Imports data from the specified file and set password.
| filename | File path |
| password | Password |
| String Application::MainWindowTitle | ( | ) |
Returns the character string displayed in the title bar of the main window.
| int Application::MajorVersion | ( | ) |
Returns the major version number.
If the version number is "1.2.5", "1" is returned.
| int Application::MinorVersion | ( | ) |
Returns a minor version number.
If the version number is "1.2.5", "2" is returned.
| void Application::NewProject | ( | String & | name | ) |
Creates a project with the given name.
| name | Project name |
| int Application::NumAnalysisGroups | ( | ) |
Returns the number of analysis groups.
| int Application::NumModels | ( | ) |
Returns the number of models.
| int Application::NumStudies | ( | ) |
Returns the number of studies.
| void Application::OnHiddenMotorTemplate | ( | qint64 | pid | ) |
Since this is an internal function, it is not officially supported.
| void Application::OutputLogDebugInfo | ( | String & | info | ) |
Since this is an internal function, it is not officially supported.
| void Application::OutputLogInfo | ( | String & | info | ) |
Since this is an internal function, it is not officially supported.
| void Application::RunScriptFile | ( | String & | filename, |
| String & | type = "" |
||
| ) |
Runs a script file (*.vbs).
| filename | File path |
| type | User : User folder
System : Installation folder
|
| void Application::SaveAs | ( | String & | filename | ) |
Saves data to a specified path.
| filename | File path |
| void Application::SetCloseWithoutTermination | ( | bool | flag | ) |
Since this is an internal function, it is not officially supported.
| void Application::SetCreatorName | ( | String & | name | ) |
Specifies the name of the project creator.
| name | Name of the project creator |
| void Application::SetCurrentModel | ( | Variant & | val | ) |
Switches an active model by specifying a name or index.
| val | Model name or index |
| void Application::SetCurrentStudy | ( | Variant & | val | ) |
Switches an active study by specifying a name or index.
| val | Study name or index |
| void Application::SetDescription | ( | String & | description | ) |
Specifies the description of the project.
| description | Description for the project |
| void Application::SetGeometry | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
Determines the position and size of the window.
| x | The horizontal position of the top left-hand corner of the window (pixel) |
| y | The vertical position of the top left-hand corner of the window (pixel) |
| w | Width of the window (pixel) |
| h | Height of the window (pixel) |
A value smaller than the minimum size of the window cannot be applied even if such a value is specified.
| void Application::SetMessageVisible | ( | bool | on | ) |
Since this is an internal function, it is not officially supported.
| void Application::SetModelAsCurrent | ( | Model * | model | ) |
| void Application::SetModelOrder | ( | Variant & | val, |
| int | position | ||
| ) |
Changes the order of the studies.
| val | Model name or model ID |
| position | Model position |
| void Application::SetPosition | ( | int | x, |
| int | y | ||
| ) |
Determines the position of the window.
| x | The horizontal position of the top left-hand corner of the window (pixel) |
| y | The vertical position of the top left-hand corner of the window (pixel) |
| void Application::SetPreference | ( | String & | propName, |
| Variant & | val | ||
| ) |
Edits the current setting for language or encoding.
| propName | Property name |
| val | Property value For more information about the condition type name that can be specified as propName , see Preferences . |
| void Application::SetProjectName | ( | String & | name | ) |
Specifies the name of a project.
| name | Project name |
| void Application::SetShowProgressDialog | ( | bool | show | ) |
Since this is an internal function, it is not officially supported.
| void Application::SetSize | ( | int | w, |
| int | h | ||
| ) |
Determines the size of the window.
| w | Width of the window (pixel) |
| h | Height of the window (pixel) |
A value smaller than the minimum size of the window cannot be applied even if such a value is specified.
| void Application::SetStudyAsCurrent | ( | Study * | study | ) |
| void Application::SetupUserProgress | ( | String & | label | ) |
This function needs to be called before starting the progress display in the progress dialog.
| label | Message displayed on the dialog |
| void Application::SetUseExceptions | ( | bool | value | ) |
Specifies the flag to convert errors to Python exceptions.
| value | True=1 : Use exceptions
False=0 : Do not use exceptions
|
| void Application::SetUserProgressMaxSteps | ( | int | steps | ) |
Specifies a progress interval on the dialog using the specified number of steps.
| steps | Number of steps |
| void Application::SetUserProgressMessage | ( | String & | label | ) |
Specifies a message on the progress dialog.
| label | Message displayed on the dialog |
| void Application::SetUserProgressUseCancel | ( | bool | useCancel | ) |
Specifies whether to use the Cancel button in the progress dialog.
| useCancel | Number of steps True=1 : Use
False=0 : Do not use
|
| void Application::SetVisible | ( | bool | visible | ) |
Switches between displaying and hiding the main window of the application.
| visible | True=1 : Displays
False=0 : Hides
|
| void Application::ShowCircuitGrid | ( | bool | show | ) |
Switches between showing and hiding the grid of circuit editor.
| show | True=1 : Shows
False=0 : Hides
|
| void Application::Sleep | ( | int | milliSeconds | ) |
Specifies JMAG-Designer in sleep mode to a specified period of time.
| milliSeconds | Sleep mode |
| void Application::StartBatchMaterialUpdate | ( | ) |
Starts batch Material object update.
This is used to prevent the display from being updated after every material update.
| void Application::StartCommandGroup | ( | String & | description | ) |
Starts grouping multiple commands together as one action.
| description | Action description |
| void Application::SubmitAllModelsRemote | ( | String & | machine, |
| String & | cpu, | ||
| Variant & | keepremote | ||
| ) |
Submits all studies of a project to queue on a specified machine.
| machine | Control server name of the remote system |
| cpu | CPU group to use for calculation |
| keepremote | Saves / doed not save results in the control server
On : Leaves results on remote machine
Off : Moves results to local machine
Both : Copies to local and deletes on server
|
| void Application::SubmitLocalFromJproj | ( | String array & | studies, |
| int | numOfJobs | ||
| ) |
Submits selected studies to queue on a local machine.
| studies | Study index |
| numOfJobs | Number of jobs |
| void Application::SubmitRemoteFromJproj | ( | String array & | studies, |
| int | numOfJobs, | ||
| String & | machine, | ||
| String & | cpu, | ||
| Variant & | keepremote | ||
| ) |
Submits selected studies to queue on a specified machine.
| studies | Study index |
| numOfJobs | Number of jobs |
| machine | Control server name of a remote system |
| cpu | CPU group to use for calculation |
| keepremote | Saves / does not save results to a control server
On : Leaves results on remote machine
Off : Moves results to local machine
Both : Copies to local and deletes on server
|
| int Application::SubVersion | ( | ) |
Returns the subversion number.
If the version number is "1.2.5", "5" is returned.
| String Application::Translate | ( | String & | value, |
| String & | context | ||
| ) |
Translates a string.
| value | String to be translated |
| context | Category |
| bool Application::UserProgressWasCanceled | ( | ) |
Returns True as a return value if the progress dialog is canceled.
| String Application::VersionString | ( | bool | includeSub | ) |
Returns the version number as a string.
| includeSub | True=1 : Include subversion
False=0 : Exclude subversion
|
| ViewController * Application::View | ( | ) |
Returns a ViewController object.
| bool Application::visible | ( | ) |
Returns True as the return value if the main window of application is displayed.