Properties
Regarding property specifications,several options are available, but some may be grayed out depending on the selected type.
If the "Required " option is checked, SmartProperties cannot be validated if a value is not entered. An asterisk will appear next to any property that is required.
When validating, if any of these properties have not been filled in, a message appears and the properties in question are highlighted in red in the interface.
|
|
|
SmartProperties cannot be validated if the property value does not include at least 5 characters.
Example the user will not be able to enter more than 15 characters.
If the " Lock Field " option is checked, the field will be locked if the property already exists in the SOLIDWORKS file. The first time the field is used, the user can enter a value for the property; once confirmed, the user will no longer be able to modify it.
Among these options is " Lock a field based on another property ":
In the example above, the field is disabled if the "Height" property is not equal to " 100" .
In the example above, the field is disabled if the " Height " property is equal to " 40."
In the example above, the field is disabled if the " Height" property exists.
If the " Always lock the field" option is checked, the field will always be locked.
If the "Hide" option is checked, the field will not be displayed in the SmartProperties input form. This can be used to create properties that do not need to be visible.
Examples: SOLIDWORKS variables, properties that do not require user input, etc.
The " List of allowed variables " option is a good way to require that a property be filled in with specific words or character strings. To do this, simply create a text file containing the list of allowed words. SmartProperties cannot be validated if the value entered by the user for the property is not listed in the referenced text file.
Until the user enters the correct string, they will not be able to submit the SmartProperties utility. A message will appear.
If the " Allow only letters " option is checked, the field will accept only letters.
If the " Allow only numbers " option is checked, the field will accept only numbers.
It is possible to block or prevent the entry of certain characters.

