& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Hello to all!
I want to extract a profile curve using a circle or a rectangle profile. However if there is over-lapse in vertices or in a line, the sweep surfaces do not work.
For example in the following path (coordinates) this will not work:
0,0,0
0,0,1
0,1,1
0,1,0
0,0,0
0,0,1
1,0,1
Do you know any possible solution, or an alternative way to extrude such a path?
Thanks in advance!
Lefteris.
Solved! Go to Solution.
Not possible.
You must create at least 2 separate sweepings (and if you need union this solids to one solid).
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0,0,0
0,0,1
0,1,1
0,0,1 should be 0,1,0????
0,0,0
0,0,1
1,0,1
make two objects. a line and a rectangle. SWEEP the circle profile and UNNION the solids
0,0,0
1,0,1
0,0,0
0,0,1
0,1,1
0,1,0
0,0,0
>>Here<< still another way, it is closer to your description. But both variants IMHO don't create a meaningful result. (I don't know what you want to get).
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
A for me meaningful result can be done >>this way<<.
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Thanks for the responses! Indeed it is "0,1,0" I corrected that to the original post.
The problem is that the original path that I want to extrude is very complex (thousands of lines generated through scr file, with a lot of over lapsing vertices and lines). So this cannot be done manually.
Is there any other way to do this task?
Thanks,
Lefteris.
@lkontopodisERZ4H wrote:
the link do not work
Which? I posted three videos ...
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Sorry, now works, but still this I cannot do this manually to thousand of pieces (as I described in message #6).
@lkontopodisERZ4H wrote:
thousand of pieces
That I didn't know at the beginning.
Perhaps you can get what you want this way:
- First you must avoid (delete) overlapping path segments. You can do this with the overkill command.
- After overkill you will get a bunch of separate path's.
- Now you can run a small lisp to sweep the circle (or what you want to sweep) along each of the path's.
(defun c:test ()
(setq obj (entsel "\nobject to sweep: ")) ; Object to sweep
(setq ss (ssget)) ; path objects
(setq number (sslength ss))
(repeat number
(setq number (1- number))
(setq path (ssname ss number))
(command "sweep" obj "" path)
)
)
A simple example is shown >>here<<.
The LISP is a very rough draft. Not yet included in the LISP:
- You should set DELOBJ to 0
- You must run the overkill command manually before starting the LISP.
- If necessary you can explode the resulting Polylines to Lines.
- error handling
- ...
At the end you can union all resulting sweep solids.
Only a first rough idea ...
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
I tried the above-mentioned method. The overkill is changing the structure of the design, so I managed to remove the duplicates using the explode command, and after that using your lisp file I reached almost the desired outcome.
The wrong with that method is that it does not fixes the corners as desired, for example one result is this:
while I would like to perfectly close the edges like this:
Furthermore, even if I am using a rectangle to sweep the path, the is a small tilt among the edges, obvious in the next figure:
Is there any option to fix these problems?
Thanks,
Lefteris,
If you sweep a circle you can add small spheres (same radius as the circle) at the endpoints. I'm not sure which result you expect to achieve. That also can be done in the LISP.
To find what is going on with your rectangle sweeping we should see your .dwg file - please post it.
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Sorry for the inconvenience. I attach you the dwg file.
The main question is how will I achieve the corners not to have a missing cube.
So I want to replace this result:
with this:
Moreover, I am noticing that even if the initial path is aligned, the resulted sweep is not perfectly aligned:
Maybe this is due to the very low dimensions of the drawing? Otherwise how can I overcome this effect?
Thanks.
are all the solids the same dimension? i.e. 1x1x10 units? would it be easier to make one and place the block by a reference point and direction?
block 1 i.e center end on 0,0,0 end would have -.5,.5-0 .5,.5,0 .5,-.5,0 -.5,-.5,0 as four corners of the base and the centr of the upper end would be extruded to 0,0,10
0,0,0 is the base point
the same block laid on the x axis has a base point of -.5,0-.5 and direction parallel to x axis
top end of vertical -9.5,0,.5 parallel to x axis
perfect fit on the corners, no sweeping. extrustions. fewer chances for errors?
code could be written to put the blocks where they belong oriented correctly?
@lkontopodisERZ4H wrote:
Furthermore, even if I am using a rectangle to sweep the path, the is a small tilt among the edges,
In the meantime I found out that the sweep command does not position the profile to be swept exactly in the center of gravity of the profile on the path. Only circles are positioned exactly. (Until now I was not aware of that, this knowledge is new for me 😞 ). Regardless of the other unsolved problems (filling corners), for that reason alone my above suggestion never can work for rectangles. Sorry for the confusion.
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name