I have a problem with my simple assembly. It consists of an extruded square with a hole in the center and a cylinder. The hole and the cylinder have the same diameter because it is nested in it. So, a square with a hole in which the cylinder is nested. The thickness of the extrusion is the same as the size of the cylinder inside the square. I would like to know how to make it so that when I increase the diameter of the cylinder, the hole also follows and conversely when I reduce the size of the cylinder the hole shrinks and thus there is no more vacuum that forms. I would therefore like to check the dimension representing the diameter of the cylinder as well as that of the hole by changing a single dimension. I added a global variable "d" corresponding to the diameter of the hole and the cylinder but I don't know how to link them together and if it is in the assembly that it should be done, how will I be able to do it please? I'm looking into it with DriveWorksExpress as well but I doubt I can play on both sides of the 2 different parts at the same time but it must be doable.
Does anyone know or have an idea of how to proceed to control or set up this very simple system please?
There are several solutions depending on whether you want the cube to drive the cylinder, the cylinder to drive the cube or both...
You can edit the sketch of your cylinder in the assembly and define your diameter by that of the hole (equal relationship, coradial sketch, convert entities...). This corresponds to the first 2 cases depending on whether you edit the sketch of the diameter or the one of the hole.
You can create a pilot sketch in your assembly and put a relationship between this sketch and your two diameters in your parts.
There are certainly other ways of doing it. These are just the ones I am used to using.
I tried but can't do it. So I tried to go into the sketch of the cylinder (which controls) and I did add relation (I have the English version of Solidworks 2019) but I don't know exactly what to select. Logically I wanted to take the outline of the cylinder and that of the hole (made with just a removal of material) but it doesn't work. I also have a conincidence constraint between the contour of the cylinder and the hole so that the cylinder can fit together and it shouldn't have a problem for that I think. I also tried converting the entities but the coincidence was a problem. (because the constraint fixes the cylinder in the hole).
I'm going to add my assembly, if you have a few minutes of course, can you take a look please?
If I understand correctly you want to link two pieces, to do so you just have to double click on the circular part in the assembly so that the dimensions appear and double click on the dimension of the diameter to edit it and put an equal then click on the square part with the hole and then you click on the dimension of the diameter so they will be linked together. If you change the dimension of the square coin diameter, the other will follow.
Can you explain to me in more detail please? On your captures, when you edit the 2nd part (cylinder), we don't see the cylinder and when you say we create the cylinder using the drilling stop, does it mean that the assembly was only composed of the square and that we use the hole stop to create the cylinder?
Why do we see the cylinder in the tree when you edit it?
In summary, can I modify from my 2 parts in the assembly where I would have to create the square with the hole and then start from this square and create the cylinder?
Thank you for sending me your way . The cylinder is the base cylinder I had in the assembly or did you create it from the sketch of the hole stop? I say this because I don't see the cylinder in your 2nd photo.
The parts are drawn separately in files individually and then assembled. Then the sketch of the cylinder is referenced by the edge.
FYI this creation mode gives 3 files: "C1.sldprt" the square, "cylinder.sldprt" the cylidra and "ass1.sldasm". as you did not put the C1 and cylinder parts they could not be loaded.
once the parts are drawn You have to "edit the sketch" of the cylinder with a right click.
then the sketch must be erased, the cylinder stopped and the entities converted. It is possible to play (preferably) with the feature offset entities.
Posibility 2 (my prefer) to do all in one assembly I'll try to answer with a TUTORIAL