I’ve tried drawing this, but I can’t make sense of the dimensions.
I THINK you mean that the camera hollow is a 38mm square, with circular segments cut out of the edge at about 22m Radius (44mm diam), which makes sense.
But what is the outside diameter of the round parts of your left hand picture?
If I draw a tapered cone, starting OD 40mm, ending OD 44mm, I can’t get the hollow shape to fit inside it.
This is what it looks like with the outside cone far too big.
To make the shape, draw a circle at the origin of the OD of the pipe (I worked scaled up 1000x to avoid small segment problems which you may otherwise face) using metres for mm. PushPull the circle up to the height of the cap. R-click on the perimeter of the upper end of the cylinder, select Entity Info (if that window isn’t open already) and change its radius to a bigger one to make the taper.
Draw a circle on the top 44m diam (22m R). Draw a square with the polygon tool (set 4 sides) pressing Ctrl (Option on Mac) to get it to make it circumscribed round a 19m circle.
Orient it along the red axis.
Remove arc segments inside the square. Push pull down 40m. That gets you your hollowed out shape where I assume a small camera goes.
But as I said, I can’t make sense of your dimensions for the hollowed out section in relation to the OD of the part it fits in. What size is that?