Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Formulas for UDP's

Formulas for UDP's

Why not to create formulas for UDP's? Even very-very simple just for text processing and calculation on-request.

 

Guys, Vault's running on SQL - como Dios manda...

5 Comments
ihayesjr
Community Manager
Status changed to: Accepted
MiWaNiZa, Can you provide some examples of formulas you would need and what you would use them for?
MiWaNiZa
Advocate

It's nested to create formulas that can operate with strings, logical conditions/statements, get properties of specific objects, make requests to search last.

Some examples: 

 

' ====For whole Vault====
= Iif(This.CategoryName!="Drawing"; True; False) ' Set value, depending on object property
= This.ParentFolder.GetProperty("Constructor") ' Set value for file in folder, not using "AutoProperties" extension from apps.exchange.autodesk.com

' ====For specific object====
= GetProperty("$/Designs/AA-1180", CustomProperty("Project Name")) ' Get UDP "Project Name" from folder "$/Designs/AA-1180"
= GetProperty("$/Designs/AA-1122", CustomProperty("Project Start Date")) + Date.Days(183) ' Set deadline
= Math.Average(This.Children.Property("% ready") ' Calculate ready state, based on children state
= This.ParentFolder.Name + ".000.iam" ' Append text to string
= CustomObject("Designer").Item(This.CustomProperty("Responsible")).GetProperty("Phone") ' Get UDP "Phone" from custom object "Designer". Name recieved from object's property "Responsible"
= This.Parent.Name + ".000 " + Vault.This.LookupTable("Responsible").Item(1) ' Append text and value from lookup table

 

 

Ideally it's looks similar to Expression builder in MS Access, or others builders.

MS Access 2010 Expression Builder

tmoney2007
Collaborator

It could be as simple as <Property6>="<Property1>, <Property2>,<Property3>,<Property4>,<Property5>"

MiWaNiZa
Advocate

Right.

Or like a 


<Property6>="<Property1> <Property2> diameter <Property3>, standard # <Property4> mfg. by <Property5>"

 

ihayesjr
Community Manager
Status changed to: Future Consideration
 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report