Jump to content

Math operations in Export Formula


Go to solution Solved by Juan,

Recommended Posts

Are you able to use math formulas in exporters? I'm working on a Cabinet vision exporter and I have a product of a specific size that has a "customization" variable. I want the nominal size to stay the same, but the width and height in the export formula to change. 

 

I tried this but it doesn't like it. I added brackets, still doesn't run. Any thoughts?

 

[Cabinets]
{{line_num}}{{group_id}},"{{cv_name}} {{size_width_x_height_.Width}}x{{size_width_x_height_.Height}}",{{size_width_x_height_.Width}}-{{Width_Adjust}},"{{size_width_x_height_.Height}}-{{Height_Adjust}}",0.75,"L","N",{{quantity}},"{{cab_number}}||SKU:{{size_width_x_height_.Size_SKU}}{{door_style_ikan.Style_Sku}}{{door_colour_ikan.Colour_SKU}}"

Link to comment
Share on other sites

  • Solution

To use a result of a formula in an export formula, you will need to create a Part Attribute on the respective Export Part and write your formula there. Doing so will create a "this_part" variable that can now be used in the export formula. For example, if I needed the panel width in the export formula I would create a part attribute call "Panel Width" and write a formula like (door_width - (stile_width*2)+inset_add). That will create a variable named "this_part.panel_width" that can be used in the export formula section of the part.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms and conditions of this site