padv.Preferences
(To be removed) Specify settings for build system
Description
There are several settings that you can use to customize the behavior of the build
system. These behaviors impact how the Process Advisor app and
runprocess function run tasks. For example, you can use settings to use
incremental builds, enable model caching, and customize other behaviors. The build system
saves these settings in padv.Preferences. You can use the preferences,
padv.Preferences, to specify settings for the Process Advisor app and
settings for how the runprocess function runs builds.
Note
The padv.Preferences class will be removed in a future release. Use the
new classes padv.ProjectSettings and padv.UserSettings
instead. The new classes allow you to programmatically control the settings for incremental
builds, build system logging, and other behaviors, without needing to create a project
startup script to persist run-time settings.
For information, see the Version History for
padv.Preferences.
Creation
Syntax
Description
gets the handle to
the global preferences object, P = padv.Preferences()P. There is only one set of preference
properties.
The padv.Preferences class is a handle
class.
Properties
Object Functions
addFilteredDigitalThreadMessages(obj, IssueId)adds the message, specified by the issue IDIssueId, to the list of filtered messages in the propertyFilteredDigitalThreadMessages.To get a list of issue messages and issue IDs, use the function
getArtifactIssues:metric_engine = metric.Engine(); issues = getArtifactIssues(metric_engine) issuesMessages = issues.IssueMessage issueIDs = issues.IssueId
Suppose that you want to filter out the issue message associated with the issue ID
"alm:artifact_service:CannotResolveElement". You can use the functionaddFilteredDigitalThreadMessagesto add the issue message to the list of filtered messages:p = padv.Preferences; addFilteredDigitalThreadMessages(p,... "alm:artifact_service:CannotResolveElement")
removeFilteredDigitalThreadMessages(obj, IssueId)removes the message, specified bymessageID, to the list of filtered messages in the propertyFilteredDigitalThreadMessages.For example:
p = padv.Preferences; removeFilteredDigitalThreadMessages(p,... "alm:simulink_handlers:ModelCallbacksDeactivated")
resetFilteredDigitalThreadMessages(obj)resets the list of filtered messages in the propertyFilteredDigitalThreadMessages.For example:
p = padv.Preferences; resetFilteredDigitalThreadMessages(p)
Examples
Alternative Functionality
App
In Process Advisor, in the toolstrip, click Settings to access and change the settings for the build system.
