Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
How can i 'union' a helix and a cylinder, so that they both disappear when hidden from view?
dave_cowden
Member, Developers Posts: 475 ✭✭✭
Suppose that I create a cylinder, and then create a helix on it. something like this:
In the OS viewer, I see "Part1", and all is well. But when I hide Part1 from display, the helix still appears.
I tried unioning the two, but that gives invalid Input from opBoolean:
var cylinderId= id + "cylinder";
fCylinder(context, cylinderId... );
var helixId = id + "helix";
opHelix(context, helixId , { ... } )
In the OS viewer, I see "Part1", and all is well. But when I hide Part1 from display, the helix still appears.
I tried unioning the two, but that gives invalid Input from opBoolean:
opBoolean ( context, myId +"joined", {How i achieve the desired result, that the helix I've created in the second operation is hidden when the part it was attached to is hidden?
"operationType" : BooleanOperationType.UNION
"tools" qUnion( qCreatedBy(helixId), qCreatedBy(cylinderId ) )
});
0
Best Answer
-
ilya_baran Onshape Employees, Developers, HDM Posts: 1,211Something like that, or maybe a shader. We don't have a concrete plan for it yet.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
I don't believe that is currently possible and I am not sure it will be in the future. As far as unions go, the cylinder is a solid and the helix is a curve ("wire") and two things of different dimensionality cannot be unioned in a manifold modeler. As far as controlling visibility, if the feature creates two separate bodies, I would argue that the feature's user should be able to control their visibility separately.
All of that said, with the update that is coming Real Soon Now (tm) it will be possible to show/hide all of the sketches, planes, and curves constructed by a feature at once (but not parts) because the feature will have an eye icon next to it. Perhaps the same should apply for parts, but I would like that type of thing uniform across features, rather than every feature having to think about this...
When you hide the part, the helix stays.
I could actually cut the tap, but then performance is an issue with lots of fasteners...