I have a cylinder. I want to make a smaller, bent cylinder come out of the top and bottom (which will represent a wire).
I cannot extrude a boss from it my cylinder to make it work, because I cannot extrude another boss from the end of the first boss (which would be a smaller cylinder.)
I cannot seem to draw a line in the axis that would extrude from the end/top of my cylinder, even though i have a plane that bisects the cylinder long-ways.
I cannot draw a line in any one direction and then move it to where I want it to be (the middle of the top face of my cylinder).
I cannot select the midpoint of the circle that makes the top of my cylinder when I attempt to draw a line within the plane that already bisects my cylinder.
In fact, I cannot select any point other than the origin when trying to draw a line from one point to another.
I cannot draw a line from the origin through the entire cylinder, then move the point that is "anchored" to the origin, even when I un-anchor it, because the program says that I will overdefine the line.
I cannot "underdefine" the line even when I take away all relations manually.
So what CAN I do to get a simple bent wire coming out of my cylinder?
SolidworksParts And Features
Not sure why you had this under API until you looking to do via a macro.
OK moving ahead, all the nos/cannot in your post are the limitations or you're unable to do them.
I do not know what api is.
Anyway, if any of the above strategies are possible, I don't know how to pull it off.
Then why you've it under API. Use the move option under Actions on right side of this post to move it to Parts and Features
Getting back to your original question, then you can simply use a sweep (with 2d or 3d sketch as the path) depending on your final needs. I've attached examples made in SW2012.
A sweep is how I was trying to do it. But I need the line to start in the middle of the circle which makes up one of the cylinder's faces. I can't start a line that will "snap" to the center point. I also cannot make it travel in the correct direction (in this case, parallel to the z-axis).
Upload your files here (what ever you've made) and then I can suggest what to do.
Hi Chev,
Is something like this what you are after?
See attached Word doc with screen shot.
Thanks
Mark (SolidWorks 2012 sp4)
If you're doing this sort of thing a lot. Look into weldments, make yourself some custom profiles.
That is exactly what I'm trying to do
Did you had a chance to look at the sample files I've added??
It says it cannot open them, "future version."
I'm running SW2012.
..?
My mistake it's 2011
But those are SW2012 files only made in SP 4.
I've attached a quick video to show in 2d sketch.
I don't understand what you're getting at
Open the attached video and check if that helps.
How did you get the line you were drawing to stay in the Front Plane?
Whenever I do it, now that I select the correct plane (in my case, the Right Plane), I can select the centerpoint of the circle that I have drawn on the face of the cylinder... But the line floats freely in 3D space.
Make sure you're using a 2d sketch on the right plane. Can you attach your file to check what exactly you have got there.
How do I ensure that it is a 2D sketch?
You need to make a sweep path. Here is another video for you to look at. Try replicating the steps.
On a side note, don't upload files zipped with WinRar as everyone might not have RAR extrator. Prefer winzip or compressed folder option by Windows itself.
Now that is exactly what I was trying to do!
Thank you Deepak, you have saved me from insanity.
With the side note- I rarely use WinRar, but I thought it zipped things normally... Oh well.
Yes it do but all zip extractors can't unzip RAR files.
Here is another challenge-
I am trying to set the dimension from the "bottom" of the cylinder (the long enge) to the bottom of my "extruded"/"swept" wire in order to change the length of the second piece of the sweep. It will only "smart dimension" as some kind of angled dimension from the center point of the circle-face to the bottom of the wire.
I need to adjust the length of the second part of the sweep (after the bend) relative to the "bottom" of the cylinder. How can I do this?
And by the way- how did you get your planes to be drawn so closely around the part? Mine are always huge in comparison due to the dimensions of what I'm making, and it makes things a little more difficult to visualize.
Right click on the plane and select AutoSize.
Make sure you're selecting the edge and not the origin or a point on cylinder. You can also set the the sketch used for the long cylinder set to on, set you view orientation to "Normal to" and now select the edge or sketch line.
I am selecting the edge, but it draws it from the bottom of my extruded/swept wire to the center of the cylinder's face (the circle), regardless. I also have nowhere that I can select "normal to" to make it normal to anything. It will also not let me add any relations to the dimension when I try that.
I have also tried creating a second plane parallel to the Top Plane (which bisetcs the cylinder long ways AND bisects the first part of the sweep- before the bend- long ways), that runs along the "bottom" of the cylinder. (That is, the plane is located .050 beneath the Top Plane, which bisects the cylinder, which has a radius of .050). I wanted to draw a line from circle/face to circle/face within that plane, which would consequently run along the edge of the cylinder. But when I select that plane that I created and try to draw a line within it, I cannot snap to the circles.
EDIT: I selected "sketch" first, then selected my new plane, then it let me draw the line I wanted to. So nevermind about that part. It will now let me dimension from the line that I sketched to the bottom face of the bent portion of the wire.
Now the question becomes: How do I make this dimension a driving dimension?
Can you add a screen shot which explains what you looking to do and then I can try to make another video for you.
It's actually pretty simple now- I want to take the .180 dimension and make it a driving dimension so that I can change it to whatever I want and thus change the length of the bent wire.
EDIT: Nevermind
OK, here is the video for you to look at. The pointer was not captured properly, so here are the steps.
I just realized how to do this- I have to edit the sketch within the sweep (in the design tree) and the sweep will then be changed.
For future reference- can I do this in assembly mode as well?
You can edit the sketch in assembly mode too.
Well thank you much, Deepak, you're my hero.
Big surprise- new problem...
I want to mirror the sweep I just made. So far as I can tell from a google search, mirroring sweeps, or any 3D objects, isn't possible. So I try to mirror the sketch from which I made my sweep. Thing is, I can't mirror it about anything. I drew a center line that cuts the cylinder in half diameter-wise, but when I try to edit my sketch of what I made the sweep out of, I can't select the new line to mirror it about. I tried moving the new line up in the design tree, but still nothing. I think maybe the problem is that the sweep's line and the new line are not in the same plane? I don't know, but here I am, stuck again.
Additionally, I would like it if when I edited one side, the mirrored side, should I ever be able to make it, would automatically change to reflect the origina, and vice versa. Will this happen, or is it possible?
Do you have a plane to mirror?? In not make one and then use the mirror command, select the sweep feature and you should be good to do that.
Well, I'd need a plane parallel to the front plane, that also bisects the cylinder. I can select "parallel" under "first reference," when creating my plane, but second reference won't do anything when I click on it, nor will anything else do anything at all, so I can't place it where I want it.
I should add that the quick snaps all give me error messages or will not select anything useful (like a line I have drawn down the length of the cylinder).
You can do either of the following:
There can be more methods too.
For the sake of learning, I would like to be able to create a new plane by simply referencing something else, like half the length of the cylinder, without needing numbers.
Can you attach the latest file to make the video on.
Of course...
Attached is a file with two video on creating mid plane. One is via surface (mid-surface) and other is ketch.
Okay, I got it with that second video. This software is very particular, isn't it?
Thanks again.