oppattern
Discussion List
-
Changing feature parameters when onshape won't load because regen time
I'm running into a problem on a custom feature I'm developing. Part of the feature is calculation intense, and uses a pattern operation to generate many copies of a body. The number is settable through a parameter, which means it is possible to enter a value that makes the regen time be unreasonably long. I imagine this…
-
@OPPATTERN: INVALID_INPUT
FeatureScript 2345; import(path : "onshape/std/common.fs", version : "2345.0"); annotation { "Feature Type Name" : "Pattern Line"} export const patternLine = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Select Line:", "Filter" : EntityType.EDGE,…
-
@opPattern: INVALID_INPUT
Trying to duplicate a user-selected line. No idea why these two Featurescripts attached below aren't working. Out of ideas. @NeilCooke HELP! Also, side questions:1) What's the best way to have the pattern be perpendicular to the line? Currently they're in the same direction. I was hoping to be able to go…
-
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.…
-
Pattern point to point help?
I'm trying to transform copy a selected face from one point, to another so that I can use it in multiple places. I keep getting stuck on opPattern or transform. Can someone help me understand how to do this? Here is what I have so far. The opPattern is where it breaks. var count = -1; for (var edges in pathFaces) { count =…