목차 숨기기

Input Formula Functions

You can specify string and arithmetic functions to be used to configure the values returned by the input formula.

To access the functions:

Click right arrow next to Input Formula.

Arithmetic Functions

Function Add Numbers
Description Returns the sum of the two specified numbers.
Syntax Add(<term1>,<term2>)
Arguments <term1> - First term

<term2> - Second term

Example Add(2,3)

Returns 5

Function Subtract Numbers
Description Returns the difference between the two specified numbers.
Syntax Sub(<term1>,<term2>)
Arguments <term1> - First term

<term2> - Second term (amount to be subtracted)

Example Sub(3,2)

Returns 1

Function Multiply Numbers
Description Returns the result of multiplying the two specified numbers.
Syntax Multiply(<term1>,<term2>)
Arguments <term1> - First term

<term2> - Second term (amount to multiply by)

Example Multiply(3,2)

Returns 6

Function Divide Numbers
Description Returns the result of dividing a number by a second number.
Syntax Divide(<term1>,<term2>)
Arguments <term1> - First term

<term2> - Second term (amount to divide by)

Example Divide(6,2)

Returns 3

String Functions

Function Left Substring
Description Returns the leftmost specified number of characters from a specified string.
Syntax Left(<string>,<number>)
Arguments <string> - The character string

<number> - The number of characters to be returned

Example Left(ProjectAA,7)

Returns "Project"

Function Right Substring
Description Returns the rightmost specified number of characters from a specified string.
Syntax Right(<string>,<number>)
Arguments <string> - The character string

<number> - The number of characters to be returned

Example Right(ProjectAA,2)

Returns "AA"

Function Middle Substring
Description Returns a substring from a specified string (starting at a specified position).
Syntax Mid(<string>,<startpos>,<number>)
Arguments <string> - The character string

<startpos> - The number of the starting position. The first character is position 0.

<number> - The number of characters to be returned

Example Mid(ProjectAA,2,2)

Returns "oj"

Function String X from List
Description Returns the element number X from an ordered list where the elements are delimited with a certain character.

This feature is useful in combination with controls connected to alias lists.

Syntax

$Token(<string>|<string>|<string>|<string>,<index>,|)

Arguments

<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.

Example

$Token(Metal|Plastic|Metal|Organic|Plastic,,|

Where the Material variable is connected to an alias list with the following values:
Displayed Value Alias
Steel 1
Polyester 2
Gold 3
Wood 4
PVC 5
The formula string becomes Metal if the user selects Steel or Gold as the material. It becomes Plastic if the user selects Polyester or PVC.
Function String Length
Description Returns the length of a specified string.
Syntax Length(<string>)
Arguments <string> - The character string
Example Length(ProjectAA)

Returns 9

Function Find Substring
Description Searches a specified string for the first match of a character or substring. Returns the position where the character or substring is found.
The first position in the character string is 0.
Syntax Find(<string>,<substring>)
Arguments <string> - The character string

<substring> - The character substring for which to search

Example Find(abc,b)

Returns 1

Function Reversed Find Substring
Description Returns the reverse of a specified string.
Syntax Reverse(<string>)
Arguments <string> - The character string
Example Reverse(stockholm)

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.

The first position in the character string is 0.

Syntax

Find(<string>,<substring>)

Arguments

<string> - The character string

<substring> - The character substring for which to search

Example

ReverseFind(abcabc,b)

Returns 4

Function Today's Date
Description Returns the current date in the format selected when the vault was created.
Syntax $Time()
Arguments

Examples

=$Time()

Returns 488a=2010-08-13



이 도움말에 대한 피드백 제공

SOLIDWORKS는 도움말 정보의 개선을 위한 고객님의 제안 사항과 의견을 환영합니다. 제안하고자 하는 의견을 아래 양식에 작성하여 도움말 문서 팀에 직접 전달할 수 있습니다. 문서 팀은 제품에 관한 기술적인 지원은 하지 않습니다. 기술 지원에 관한 정보는 여기를 클릭하십시오.

* 필수 입력

 
*전자 메일:  
제목:   도움말에 대한 피드백
페이지:   Input Formula Functions
*사용자 의견:  
*   개인정보 보호정책을 읽었으며 본 정책에 따라 Dassault Systèmes에서 내 개인 정보를 사용하는 것에

인쇄 항목

인쇄할 콘텐츠 범위 선택:

x

Internet Explorer 7 이전 버전을 사용하고 있습니다. 페이지를 최적화하려면 사용 브라우저를 Internet Explorer 7 이상으로 업그레이드합니다.

 이 메시지를 다시 표시하지 않음
x

웹 도움말 콘텐츠 버전: SOLIDWORKS PDM 2014 SP05

SOLIDWORKS에서 웹 도움말 기능을 비활성화하고 로컬 도움말을 사용하려면, 도움말 > SOLIDWORKS 웹 도움말 사용을 클릭합니다.

웹 도움말 인터페이스나 검색 기능에서 발생한 오류 사항을 보고하려면, 로컬 지원 서비스 담당자에게 문의하십시오. 개별 도움말 항목에 대한 피드백을 제공하려면, 각 도움말 페이지의 "이 단원에 대한 피드백 제공" 링크를 사용하십시오.