You can specify string and arithmetic functions to be used to configure the values returned by the input formula.
To access the functions:
Click next to Input Formula.
<term2> - Second term
Returns 5
<term2> - Second term (amount to be subtracted)
Returns 1
<term2> - Second term (amount to multiply by)
Returns 6
<term2> - Second term (amount to divide by)
Returns 3
<number> - The number of characters to be returned
Returns "Project"
Returns "AA"
<startpos> - The number of the starting position. The first character is position 0.
Returns "oj"
This feature is useful in combination with controls connected to alias lists.
$Token(<string>|<string>|<string>|<string>,<index>,|)
<string> - List of strings to choose from.
<index> - Index of string to use. This could be a variable linked to an alias list.
| - The character used to separate the <string> values.
$Token(Metal|Plastic|Metal|Organic|Plastic,,|
Returns 9
<substring> - The character substring for which to search
Returns "mlohkcots"
Function
Reverse Find
Description
Searches a specified string for the last match of a character. Returns the position where the last occurrence of the character or substring is found.
Syntax
Find(<string>,<substring>)
Arguments
<string> - The character string
Example
ReverseFind(abcabc,b)
Returns 4
Examples
=$Time()
Returns 488a=2010-08-13
Provide feedback on this topic
SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.
* Required
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
Print Topic
Select the scope of content to print:
We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.
Web Help Content Version: SOLIDWORKS PDM 2016 SP05 To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help. To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.