Back to zzTakeoff Community Channel LogoQ & A
Miguel
2d 10h

Prevent Variables from deleting if not used in Formula

I use multiple variables not related to the quantity of the item. Need to stop the automatic deletion of my custom variables if it is not used in the main formula.


0
Miguel 2d 10h

These variables are item specific

Luke Olson 2d 5h

If I understand your question correctly, custom variables at the moment will disappear if you delete the tag from the formula box.

The only workaround at the moment is to create custom properties or finding a way to keep it in the formula by finding a way to cancel it out (calculate the custom property so that it doesn't effect the result.) use the latter at your own risk haha


I agree that it would be very helpful to have a way to add custom variables on the fly but not be forced to use it in the formula to keep it useful for the item you're working on.

This has come up before, there's a few feature requests pertaining to custom variables. Off the top of my head i think it would be best to either slightly change the way custom variables are added. or create a secondary way


example: a custom variable section within item properties where you can list the custom variables you want to adopt.

Kory Podgaysky 2d 4h

I just add lines in my calculation that say

+([unused variable]x0)

Stephen Daves zzTakeoff2h 22m

Your formula isn't doing anything with the values (add, multiply, etc, nothing is happening). If you choose to add or subtract a variable, you can use a 0 value for the variable and it will bypass. If you choose yo multiply or divide use a value of 1 to bypass the value.

Kory Podgaysky 2h 15m

I used the multiply by zero because I have a parent item that contains all the variables for an assembly, but I don't want that parent item to output anything. All the variables have non zero values that get fed down to child items that actually use the variables.

You must be logged in to post replies. If you don't have an account you can signup here.