-
Can't figure out CANNOT_RESOLVE_ENTITIES from opBoolean
I've been going through the FeatureScript Fundamentals course in the learning system, and I'm on the final exercise. I'm getting a CANNOT_RESOLVE_ENTITIES from a opBoolean call, and I can't figure out what going wrong. I've more than triple checked my code against what's provided in the instructions, and I've added debug…
-
opBoolean() with BooleanOperationType.INTERSECTION fails with @opBoolean: BOOLEAN_BAD_INPUT
Hello Helpful Onshapers! I want to use opBoolean() to "take a bite" out of a solid model. I imagine that this should be done in two steps: 1. Use BooleanOperationType.INTERSECTION to create a "mouthful" of the target 2. Use BooleanOperationType.SUBTRACTION to remove that mouthful I then plan to put the body created in step…
-
opBoolean UNIONs
For anyone having difficulties with opBoolean unions, I discovered that adding "targetsAndToolsNeedGrouping" : true to the parameters list caused the operation to be performed successfully. opBoolean(context, getUID(id, "boolean", 2), { "tools" : qCreatedBy(getUID(id, "extrude", 2), EntityType.BODY), "targets" :…
-
How Can I Arbitrarily Union All Parts?
Hello. I have a part pattern that has an instance count that is dependent of a configuration variable. After the pattern, I want to do a union of all the parts in the part studio. Is there a way I can easily union all parts, similar to "Merge with all." Thanks!
-
How do I query an object after a boolean union?
I'm creating a feature that allows me to extend multiple walls up to a target height. * Select the top face of a wall element. * opExtrude a calculated distance to create a new wall element. * opBoolean union to join the two parts * I need to select the part created with the opBoolean to modify its attributes. I see the…
-
opBoolean on Surface Bodies
I'm playing around with a new FS for generating reference points from various inputs. One the potential inputs is 3 surfaces or planes. The first step to getting the point intersection between 3 bodies is to generate a robust curve intersection between 2 bodies. This seems to work well enough for simple cases where 2…
-
What are the hidden arguments for opBoolean.
opBoolean only shows the few arguments in the documentation and in the FS source code, however, I know there are more than that hidden. eraseImprintedEdges for example. I need to merge 2 surfaces at specific edges. however, they do have other edges that are extremely close and they get merged also. I have attempted to…
-
Query the target of an opBoolean subtract operation
Hi, I have the following code in my FS: opBoolean(context, id + "booleanInset", { "tools" : qCreatedBy(id + "extrudeInset", EntityType.BODY), "targets" : mortiseBody, "operationType" : BooleanOperationType.SUBTRACTION, "targetsAndToolsNeedGrouping": true, "keepTools" : false }); Obviously the mortiseBody variable contains…
-
opBoolean.SUBTRACTION not working?
Hello! I am trying to create a quick feature script to engrave a text onto an existing object. This is the code I am using: annotation { "Feature Type Name" : "Tag" }export const Tag = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Location and Orientation",…
-
Boolean- Intersect operation with "Select all bodies" option
Hello, We are trying to find a way to automatically select all the bodies in a part studio for an intersect boolean operation. We are far from getting a satisfactory result but learning FeatureScript has been fun, does anybody have an idea or recommendation for this task?
-
opBoolean FS Question
Can I do opBoolean without user selecting the "targets"?
-
@opBoolean: BOOLEAN_SAME_INPUT error message
I am trying to create 2 holes in the same body using an adaption of the featurescript from "Dowel and Minifix", I can create and subtract the first hole and create the cylinder for the second hole but when I try to subtract that I get the error "@opBoolean: BOOLEAN_SAME_INPUT". My code is as follows: <div> // Create Hole…