SDT-base         Contents     Functions         Previous Next     PDF Index

sdtdef

Purpose

Internal function used to handle default definitions.

Syntax

sdtdef('info')
[i1,r1]=sdtdef('in','Pref')
sdtdef('Pref')
sdtdef('Group.Pref')
sdtdef('Pref',Value)
sdtdef('Pref-safe',Value)
sdtdef('Pref-SetPref',Value)

Description

Allows to handle preferences of SDT, FEMLink and OpenFEM.

This function was initially developed to limit the risks of corruption of the MATLAB preference file, which can occur if multiple instances of MATLAB try to access this file at the same time with standard commands getpref/setpref.

To handle preferences of SDT, FEMLink and OpenFEM, the recommended use is to

To reset values to factory defaults use sdtdef('factory').

info

The command sdtdef('info') provides the full list of preferences of SDT.

The command sdtdef('info','OpenFEM') provides the full list of preferences of OpenFEM.

The command sdtdef('info','FEMLink') provides the full list of preferences of FEMLink.

The command sdtdef('info','SDTools') provides the full list of preferences of SDTools.

in

To check if a preference already exists in order to create it with setpref if not, use [i1,r1]=sdtdef('in','[,OpenFEM.,FEMLink.]Pref'). It tells if 'Group','Pref' exists in i1 as bool, and provides value r1 if true, empty if false.

With an empty Pref, the full list of preferences in the Group is forwarded in r1 if the group exists.

SDT preferences

Preferences of SDT are accessed directly by the call sdtdef('Pref') (replaced by the standard call getpref('SDT','value'). It returns an error if the preference does not exist.

Here is a partial list of SDT preferences :

Preferences of SDT are accessed directly by the call sdtdef('FEMLink.Pref') (replaced by the standard call getpref('FEMLink','value'). It returns an error if the preference does not exist.

Here is a partial list of FEMLink preferences :

OpenFEM preferences

Preferences of SDT are accessed directly by the call sdtdef('OpenFEM.Pref') (replaced by the standard call getpref('OpenFEM','value'). It returns an error if the preference does not exist.

Here is a partial list of OpenFEM preferences :


©1991-2024 by SDTools
Previous Up Next