User defined functions?

User defined functions?

Tick_Tock
Contributor Contributor
532 Views
1 Reply
Message 1 of 2

User defined functions?

Tick_Tock
Contributor
Contributor

Is there was a way for me to define a function so I can use it instead of repeating the entire expression every time I want to use it?

 

The function I have in mind is basically a snap function:

zsnap(x)=layer_height*round(x/layer_height)

It would be very useful if I could define this so when entering a value for a extrusion, etc. I could type zsnap(10+param1-param2... etc) to snap the value as desired

 

533 Views
1 Reply
Reply (1)
Message 2 of 2

jeff_strater
Community Manager
Community Manager

unfortunately, there is no way to do this today.  However, this seems useful to me, so I'll create an enhancement request for it.  No promises, also unfortunately...


Jeff Strater
Engineering Director