function
Discussion List
-
How to use function autocomplete?
I am trying to write my own functions with feature script. I want to use autocomplete the way the standard onshape functions do. The problem is I can't get it to work. I've been copying what I see in the standard library with no luck: Here's a dummy function with what I'm trying export function dummyFunction(id is Id)…
-
@evDistance, what @ means ?
Hello When I look at the evDistance function définition in evaluate.fs, there is a callback to @evDistance... What does that means? Is the source code available ? export function evDistance(context is Context, arg is map) returns DistanceResult { var result = @evDistance(context, arg); ...
-
Instantiation within a function?
I'm modifying a custom feature. Instead of having the feature pattern a part, I would like it to create instantiations of a part. The feature uses a pattern operation inside a function. I replaced the pattern operation with an instantiator, but I get an error saying the instantiator transform needs to be a function.…
-
Pre selection logic?
I'm having trouble understanding how to export a function. Can someone give me some pointers? Here is what I'm trying to do: If you have pre selected a plane and a vertex, then click the feature, the feature will detect that you are wanting to use the "Up to vertex" method. I'm trying export these definitions so that the…