This document provides examples of formulas that can be used in Planswift including formulas to return date, time, job name, parent item properties, random colors, mathematical functions like minimum, maximum, square root and rounding functions. It also shows how to create nested formulas and conditional formulas using IF/THEN statements to return different values based on other item properties.
Download as XLSX, PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
1K views
PlanSwif Formulas
This document provides examples of formulas that can be used in Planswift including formulas to return date, time, job name, parent item properties, random colors, mathematical functions like minimum, maximum, square root and rounding functions. It also shows how to create nested formulas and conditional formulas using IF/THEN statements to return different values based on other item properties.
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3
amples Of Some Formulas
Intro This will give you some examples of formulas that can be used. Steps Have a "Job" openGo into "Advanced Properties" on a item you want the formula on
Will create the current date when the item
[!Date] wascreated. Will create the current time when the item [!Time] wascreated [\Job\Name] Will give youthe Job's Name Will get the parent items property [..\PropertyName] name.Example: [..\Qty] will give you the parent item's[Qty] property Will give you the [Name] property of the parent [..\..\Name] ofthe parentitem. Will get the parent's property with the [..] sameproperty name. Works as well if you needthe grandparent's [..\..] same propertyname.
Gives you the parent items Takeoff
propertyUnits. So you can specify the parent item !Units of ('PropertyName') Example [..\! Units('Takeoff')] will give you SQ FT if the parent [..\!Units('Takeoff')] item is a Area. If the parent item is aLinear then theresult would be FT.For Labels must be [..\..\! Units('Takeoff')] . They are childrens of sections, which do not have Units('Takeoff') specified
Gives you the path to the folder theitem
[!FolderLocation] islocated in.
[!ExePath] Gives you the path of the planswift.exe file.
[\Settings\User] Gives you the Planswift User
Gives you a sum of all sub item or children
itemsunder that parent item like [!sum(Price Name[!Sum(PropertyName)] Total)] willgive you the sum of all sub items under that item.Good for Assemblies to have sum of thatproperty in () on all sub parts Will pick a random color each time you create a [!RandomColor] new item.
Returns a value of 3.1415926535897932385
Pi Example:Pi*Sqr([Diameter]/2)This example could be used to find the area of acircle.
Will return the Hypotenuse of a right
angle.Sqr(Number) or X^2Returns a number Hypot(Number1, Number2) squared. This numeric valueto be squared.Example:Sqr(2) will return 4Sqr(4) will return 16Sqr(5) will return 25
Returns the square root of a number. This is
anumeric value to find square root value Sqrt(Number) of.Example:Sqrt(25) will return 5Sqrt(64) will return 8Sqrt(144) will return 12
Returns e (the base of natural logarithms)
raisedto a power. This is a numeric value to be Exp(Number) raisedto e.Example:Exp(1) will return 2.72Exp(2) will return 7.39Exp(3) will return 20.09
Returns a number of the value rounded to
thenearest whole number. If X is exactly halfwaybetween two whole numbers (X.5), the result isalways the even number. This method Round(Expression) of rounding is often called "Bankers Rounding". (Expression) This is a value to be rounded.Example:0.5 will round to 00.75 will round to 11.5 will round to 2
Will round to the nearest
Round(([Property]*2) +0.5)/2 half.Example:Round(([Takeoff]*2) +0.5)/2If [Takeoff] was 1.3result would be 1.5
Returns a number of the value rounded up to
thenearest whole number. This method of roundingis called "Round Up"(Expression) This Ceil(Expression) is a value to round up to thenearest whole number.Example:Ceil(1.3) will round to 2Ceil(1.5) will round to 2Ceil(2.1) will round to 3 Returns a number of the value rounded down tothe nearest whole number. This method of Floor(Expression) rounding is called "Round Down"(Expression) This is a value to round down to thenearest whole number.Example:Ceil(1.3) will round to 1Ceil(1.5) will round to 1Ceil(2.1) will round to 2
Returns the lesser of two numeric
values.Expression1 This is a value to be used in theevaluation of finding which value is Min(Expression1, Expression2) smaller.Expression2 This is a value to be used in theevaluation of finding which value is smaller.Example:Min(2, 4) will return 2 Min(10, 5) will return 5
If ('[Stud Length]' = '8') then result:= '8
eturns a value based off what another foot stud 26PC' ElseIf ('[Stud Lenght]' = propertyis set to. Then at the end If no value is '10') thenresult := '10 foot stud 2610' set in[Stud Length] it will result in a 0 ElseResult := 0
If ('[PropertyName]'<= '8') thenresult :=
Is a "If Expression" using < Greater or less then 8 ElseIf ('[PropertyName]'>= '10') >signs.Example:if # is 9 if expression will thenresult := 10 ElseResult := 0 return 10if # is 6 if expression will return 8
Nested formula. see theHow To - Create
[Property1Name[Property2Name]] ANested Formulas<--- click to go to the page
(Ebook) Gaṇita-Yukti-Bhāṣā (Rationales in Mathematical Astronomy) of Jyeṣṭhadeva: Volume I - Mathematics by K. V. Sarma, K. Ramasubramanian, M. D. Srinivas, M. S. Sriram ISBN 9788185931838, 9789386279361, 8185931836, 9386279363 - The ebook is available for quick download, easy access to content