Sets document default user preference values. This method is intended for user preferences that can be toggled.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function SetUserPreferenceToggle( _
ByVal UserPref As System.Integer, _
ByVal UserPrefOption As System.Integer, _
ByVal Value As System.Boolean _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim UserPref As System.Integer
Dim UserPrefOption As System.Integer
Dim Value As System.Boolean
Dim value As System.Boolean
value = instance.SetUserPreferenceToggle(UserPref, UserPrefOption, Value) |
Parameters
- UserPref
User preference as defined in swUserPreferenceToggle_e
- UserPrefOption
User-preference option for customizing annotation and dimension drafting standards and as defined in swUserPreferenceOption_e; if not needed, then specify swDetailingNoOptionSpecified
- Value
0 to toggle UserPref on, 1 to toggle UserPref off
Return Value
True if UserPref is toggled on, false if not
Example
Remarks
See Also
Availability
SolidWorks 2009 FCS, Revision Number 17.0