Glyph Version 7.22.2 Mode Types - - ProjectLoader |
pw:: ProjectLoaderThe project loader mode type Derives FromNotesTo create a mode of this type, use the pw::Application.begin command with the mode ProjectLoader specified, like this: set loader [pw::Application begin ProjectLoader] Summary
AppendMode
This attribute controls whether the data being loaded is treated as an append or a replace. TypeThis attribute is a boolean, with true meaning that the load is an append. DefaultThe default value for this attribute is true. InformationGrid and database data existing prior to this load will not be changed. The AppendMode only controls how the data being loaded is treated. If you want the existing grid data to be cleared, you must call first pw::Application.reset. If set to true, the current CAE solver is not changed. If the solver in the file is different from the current solver, all BCs and VCs loaded from the file will have their physical types set to Unspecified. The BCs and VCs that existed prior to the load, will retain their physical types. If set to false, the current CAE solver is changed to the one specified in the file being loaded. If the solver in the file is different from the current solver, all existing BCs and VCs will have their physical types set to Unspecified. The BCs and VCs loaded from the file will retain their physical types. See alsopw::Application load -ignoreCAESolver ExampleCode # Clear out all existing data EnvironmentMode
This attribute controls whether the load is environment only. TypeThis attribute is a boolean, with true meaning that the load is environment only. DefaultThe default value for this attribute is false. InformationNone RepairMode
This attribute controls how connectors with grid points that are out of sync with their distribution functions are loaded. TypeThis attribute is a string, with valid values being < KeepGridPoints | KeepDistributions | Defer >. DefaultThe default value for this attribute is KeepGridPoints. InformationIf set to Defer, then after the load action completes, the getRepairConnectors action can be called to get the connectors that need to be repaired and the repair action can be called to repair the connectors. RulesOption
This attribute controls how rules are processed by load. TypeThis attribute is a string, that is one of <KeepOld|KeepNew|KeepBoth>. DefaultThe default value for this attribute is KeepOld. InformationIf option is KeepOld, the rules in the file are discarded. If option is KeepNew, the rules in the file replace the existing rules. If option is KeepBoth, both sets of rules are merged which may lead to conflicting or duplicate rules that will have to be sorted out manually. If there are no rules in the current project, then the KeepNew option is used regardless of the specified option. getFileInformation
This action initializes returns information about the file after the mode has been initialized with the file name. Parameters
ReturnsThis action returns a different value based on the option parameter:
NotesNone. checkForMissingReferences
This action checks to see if the file has any missing references. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true if there are no missing references and false if there are. NoteThis action must be called after initialize, but before load. checkForDuplicateEntities
This action checks for duplicate entities. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true there are duplicate entities. NoteThis action must be called after initialize, but before load. checkForDuplicateRules
This action checks for duplicate rules. ParametersThis action has no parameters. ReturnsThis action returns a boolean of true there are duplicate rules. NoteThis action must be called after initialize, but before load. checkCAEUnsupportedEntities
This action checks for the number of unsupported entities that will be ignored or deleted if the file is loaded. ParametersThis action has no parameters. ReturnsThis action returns the number of unsupported entities. NoteThis action must be called after initialize, but before load. getError
This action reports the last I/O error detected when processing the file. If no errors were detected, an empty string is returned. ParametersThis action has no parameters. ReturnsThis action returns a string with the last io error. getRepairConnectors
This action returns the connectors that have grid points that are out of sync with their distribution functions when the RepairMode attribute is set to Defer. Note that when reading in a file with frameworks, the connectors may be from differing frameworks. Parameters
ReturnsThis action returns a list of pw::Connector objects. InformationAn empty list will be returned if this action is called prior to calling the load command. repair
This action will repair the distributions of the out of sync connectors when the RepairMode attribute is set to Defer. Parameters
ReturnsThis action returns nothing. |
This attribute controls whether the data being loaded is treated as an append or a replace.
$loader get/setAppendMode append
This attribute controls whether the load is environment only.
$loader get/setEnvironmentMode environment
This attribute controls how connectors with grid points that are out of sync with their distribution functions are loaded.
$loader get/setRepairMode mode
This attribute controls how rules are processed by load.
$loader get/setRulesOption option
This action initializes the mode with the file name.
$loader initialize filename
This action initializes returns information about the file after the mode has been initialized with the file name.
$loader getFileInformation option
This action checks to see if the file has any missing references.
$loader checkForMissingReferences
This action checks for duplicate entities.
$loader checkForDuplicateEntities
This action checks for duplicate rules.
$loader checkForDuplicateRules
This action checks for the number of unsupported entities that will be ignored or deleted if the file is loaded.
$loader checkCAEUnsupportedEntities
This action loads the entities and settings from the native file.
$loader load
This action reports the last I/O error detected when processing the file.
$loader getError
This action returns the connectors that have grid points that are out of sync with their distribution functions when the RepairMode attribute is set to Defer.
$loader getRepairConnectors ?-averageChange avgVar? ?-maximumChange maxVar?
This action will repair the distributions of the out of sync connectors when the RepairMode attribute is set to Defer.
$loader repair mode ?connectors?
This action begins a mode in the application.
pw::Application begin ?-mode_specific_flags? mode ?entities?
Reset the settings of the application
pw::Application reset ?-keep keep_list? ?reset_list?