DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Cross section line won't go away

Started by BN45, June 13, 2013, 01:59:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BN45

I drew a cylinder with a number of holes drilled through it.  I was trying to get various cross sections through the cylinder and now I have some lines on the outside surface of the cylinder that won't go away.  I'm assuming they got there from the cross sectioning.  Anyone have an idea how I might edit these unwanted lines out of the drawing?

Also, when I attempt to create a cross section, it does not go all the way through the cylinder.

Thanks.

MarkX

Quote from: BN45 on June 13, 2013, 01:59:28 PM
I drew a cylinder with a number of holes drilled through it.  I was trying to get various cross sections through the cylinder and now I have some lines on the outside surface of the cylinder that won't go away.  I'm assuming they got there from the cross sectioning.  Anyone have an idea how I might edit these unwanted lines out of the drawing?

Also, when I attempt to create a cross section, it does not go all the way through the cylinder.

Thanks.
You might check and make sure that all layers are visible -- DC sometimes drops stuff on your zero layer if it doesn't know what to do with it.

I've had a lot of complaints about the cross-section tool. Its really not fair for it to be on the DC feature list when it breaks as often as it works.

Sometimes moving the cross-section plane just a little will improve results.

There is also a contour tool (somewhere under Drawing I think) that frequently works better than the official cross-section tool.

Good luck!
Mark


BN45

Thanks for your reply.  I'm glad I'm not the only one having problems with this function.

I tried the contour line, but didn't have much luck.  However, making a copy of the solid and then just slicing did give me what I was looking for.

Thanks again.

samdavo

#3
BN Could it be that , when you say that the section doesn't go all the way through, that there are a number of small parts of the cross-sectional plane that don't connect, and you are just looking at half the full section (or less)?
For instance I notice these "halves of sections" are not automatically grouped. ( 2 cents) 

I post a drwg of a sphere with a couple of holes, and a cross section at each of the lines of latitude ( of which there are 11 because the sphere has 12 facets).  And you'll see that some sections have two halves ( or more).
Incidentally, just paying around with this ok,  but I also used Dempsey's pushapart macro to separate these sections ( 200% vertical expansion)  (2 cents)
 
(PS There's a problem with that solid section in the middle there, 5th from the bottom - not sure why it is solid, probably I made a mistake of some sort, but then again, the sphere is strangely reluctant to be sectioned at this line of latitude (?)  (edit) Whilst these comments were true, when redrawn carefully (eg reply #6) these problems "go away".

samdavo

#4
Quote from: samdavo on June 14, 2013, 08:25:30 AM
(PS There's a (couple of) problems
1. with that solid section in the middle there, 5th from the bottom - not sure why it is solid, probably I made a mistake of some sort, but then again,
2. the sphere is strangely reluctant to be sectioned at this line of latitude (?)
Firstly I'll admit that I'm learning about cross-sections in DCAD as I write these words (but I like what I see in general)

OK, back to that dcd drawing I posted above, I still have a problem.   
1. Not the first point , i.e. the solid section I mention up there ( 5th from the bottom).  I probably sectioned it at some earlier stage of the drawing, 
2. But it's about the fact that for some reason I am unable to section it at 15deg South Latitude. ( although I can section it at the Equator, and also at 15deg North Latitude).  Actually 15degS should be symmetrically similar to 15degN. (?)


samdavo

ok - further research ...
All cross-sections in the last couple of posts have the internal holes/shapes meeting the side of the cross-sectional shape.

Here's an example of a section where there is an internal shape totally within an external shape (making two lines and no lines joining). 

Stage 1. (see attachment)
I just tried from scratch again, similar sphere, single inclined cylindrical hole - both solids, the latter solid-subtracted from the former, and this time it seems to work for all three sections - maybe it's the luck of the draw, that "15deg South Lat" problem.  We move on.

Stage 2.
You can look down the hole of the 3D sphere , and it goes all the way through the sphere. (see attachment).
However, although the three sections (15degS, Equator, and 15degN) all cross that inclined circular hole, the hole does not leave a hole in the sectional plane.  They DO however leave a line (strictly an elliptical plane) on the plane, so it's not the end of the world - I'm just doing some thinking and experimentation aloud ok.

Stage 3.
The three plates shown in stage 3 have been modified to have a hole - as follows (dead simple). 
I find that that cross-section is a circular plane (bounded by the line of latitude) with an elliptical plane (the hole) within it.  I simply convert each to a solid, and solid-subtract the smaller from the larger.  (all times 3 for 3 plates). 

I find that there is another way under "Edit \Cut plane" which eventually subtracts a line - after "vector-converting" the elliptical plane -  from a (circular) plane - but being a curved line, it seems to be pretty inefficient, and introduces a hinge in the plane for some reason. Feel free to correct me if I'm wrong there.
(I find that the line can be projected if necessary, i.e. the line need not be in the plane - which is handy to know for reference).


There is one more small error when you subtract solid elliptical shape (hole) from solid 12 sided polygon ("circle") -  and that is that some lines around the latitude disappear when you do the solid-subtract.  Strange, because the result is called a plane, - and is correct in every other way, including the hole in the plane - but one line in the perimeter of each of the 12 sided polygons is missing. Still,  trivial and easily corrected.

Summary.  The first jpeg attachment shows 3 (strictly 4)  parts. 
1. The first is the 3D sphere with the diagonal hole solid-subtracted  (and view down this hole).
2. the second shows the three cross-sections at those three latitudes ( 15S, 0, and 15N) - solid , no holes. 
3. the third after solid defining the various ellipses and subtracting them from the circles to get holes.
4. shows the alternative of using "VC" vector converting the elliptical planes, and "Edit\CutPlane" three times - note the hingeline in the centre of each section.

As I say, just thinking aloud. cheers sam

samdavo

Just to summarise
I enclose dcd and jpeg for :-
A.  sphere plus 2 holes, with 11 cross-sections, including the three crosssections at 15S, 0, and 15N latitudes  behaving after being redrawn;  and
B. sphere plus 1 hole, again with 11 sections - and demonstrating the "solid outlines of the elliptical holes"  (see stage 2a),  and also the lines missing after those elliptical holes are subtracted (stage 3a).

All good.
cheers
sam

samdavo

#7
QuoteI find that there is another way under "Edit \Cut plane" which eventually subtracts a line - after "vector-converting" the elliptical plane -  from a (circular) plane - but being a curved line, it seems to be pretty inefficient, and introduces a hinge in the plane for some reason. Feel free to correct me if I'm wrong there.

oops
I'll correct that mention of hingeline myself...

I find that "Edit\Hidden Edge"  can be used to remove that thing I called a hinge line.
(edit: late extra: But I then find that Hidden Edge is somewhat unreliable - it seems to only TEMPORARILY stop lines being shown - but they stay there in the background!  Maybe better to stick with Step 3 rather than steps 4 and 5 after all)

Hence, to remove the elliptical holes, it is probably better to use:-

Step 1. Draw solids and subtract
Step 2. do the Xsections which include "solid hole-shapes" inside the Xsections
Skip Step 3.
Step 4. vc vector convert the elliptical plane, and cut the circular plane using Edit\CutPlane
Step 5. remove the unnecessary "hinge lines" with Edit \Hidden Edge (leaving neat holes in those sections);

than to
use :-
Step 3. define elliptical and circular planes as solids, and Solid Subtract one from the other to get the hole.

(but still much of a muchness).

Anyway, back to your original post, BN,   - maybe these extra lines were part of the problem?  (unlikely, I concede - because these "hidden lines" tend to be on flat surfaces as I understand it - having just read about them - on F1 Help - for the first time lol).

Can they be removed by "Hidden Edge (removal)"?

Quote from: BN45 on June 13, 2013, 01:59:28 PM
I drew a cylinder with a number of holes drilled through it.  I was trying to get various cross sections through the cylinder and now I have some lines on the outside surface of the cylinder that won't go away.  I'm assuming they got there from the cross sectioning.  Anyone have an idea how I might edit these unwanted lines out of the drawing?
Also, when I attempt to create a cross section, it does not go all the way through the cylinder.
Thanks.

samdavo

#8
TO demonstrate why I find "Hidden Edge (Removal" unreliable, I enclose a dcd.  It was made by "Cut Plane" with the shape of a star on a circular plane.  (all times 2 , i.e. two such circular planes with a star cut in each)

This is apparently typical of how these unwanted lines form.  And sure enough I got them.
They are temporarily removed using (Hidden Edge Removal).  You are left with two semicircles - so you make a Group of those lines ( circle + star) .

So then I extruded that shape, and end up with the supposedly hidden line(s) being extruded.  They are back again.
So I try to remove it/them - and the original lines return (i.e. on the planes) !?
In fact they seem to toggle on and off like Xmas lights.

In summary, I don't think you get them with steps 1+2+3,  and I know you get them with steps 1+2+4+5 -   so I'm gonna stick with the former method. (for now at least).

PS. Step 3 seems to subtract a line here and there (around perimeter);  Step 4 seems to add a hinge line here and there;  and it's arguably easier to correct Step 3 by patching that perimeter, than it is to correct Step 4 by removing those lines. - on this occasion anyway. 

Dr PR

Do it right by creating a 3D cylinder, then creating the 2D star plane and extruding it, and then subtracting the 3D extruded star from the cylinder - and you won't get the unwanted lines. In 3D drawings, work in 3D.

Most 3D problems I have seen posted on this forum from new users arise from trying to create a 2D drawing and then extrude it into 3D. If you insist upon doing this, quit griping about the problems you create for yourselves.

Phil
DesignCAD user since 1987

samdavo

#10
Phil,
Couple of responses in my defence :-
1. Most of my posts above involve getting (or trying to avoid) unwanted lines when trying to do a crosssection of a 3D object.   Sure the cross-section is 2D, but it's not a case of 2D morphing into 3D - it's the opposite.
2. My post about the stars and the extrusion thereof was just playing around, and yes, as you say, probably a distraction.   I won't repeat it here (although it shows instability of the "Cut Plane + Hidden Edge Removal" combination).

What I would say/speculate however, and where I suspect you would agree - is that
3. there is a certain clumsiness about "holes" made with "Cut Plane".
4. anything that requires "Hidden Edge (Removal)" is probably going to cause troubles later

Also 5.  unless someone else can tell me, I can't see how you truly join two half-planes that "Cut Plane" leaves you with - other than maybe to Group them.

I would agree with you if you are saying that, in general,  using Solid Subtract with a cylinder cutting another solid is better than using "Cut Plane".   (And indeed I clearly did a Solid Subtract to get the hole through the sphere in the first place = Step 1).

HOWEVER, please remember this case involves holes in a cross-sectional plane (cuts made as Step 2), so we are forced to deal with 2D. 

But here I believe I end up reinforcing your comment, i.e. in summary - I end up recommending dealing with Solids rather than Planes - even if they are 2D solids.   i.e. I convert the planes to solids, and the holes are made with a FURTHER Solid Subtract. (see details below).   As for Cut Plane, stable or not, I would (also) claim that that command is pretty clumsy (see the attachment, near "4a" , where there are 4 parts to the plane resulting from it.   

In detail...
I enclose the two cross-sections at the Equator, and at 15S.  Including the elliptical "hole" that has to be reworked to get the manhole cover off.  I believe the only options for that process are :-

System 3a, (maintain the above nomenclature). 
Convert the elliptical cover (= plane) to solid using Ctrl+D ; 
ditto the circular plane of the Xsection;
then Ctrl+U to subtract former from latter.  Done.
   
System 4a. 
VC = vector convert the ellipse (plane becomes vector); 
then Cut Plane using this line to cut the circular plane of the Xsection;
this will cut the circle in two by an imaginary hinge, including cutting the manhole cover into two ( = 4 bits total) ; 
then delete the two halves of the manhole cover (which look like a shoe-print);
then try to get rid of the hingelines using Edit\Hidden Line (Removal).

As I concluded above, I reckon the first system is better.

Incidentally, this is what HELP says about Hidden Edge :-
Menu: Edit / Hidden Edge
Erases cut-plane lines which are sometimes a result of the Cut Plane, Polygon Subtract, and Solid Subtract commands.

After executing a Cut Plane, Polygon Subtract, or Solid Subtract command, select the Hidden Edge command. Set a point on one of the cut-plane lines so that it will be hidden from the view or from a printout of the drawing.

... Choose the Hidden Edge command and set a point on one of the cut-plane lines. The cut-plane line will be removed from the view and will not be printed in subsequent printouts. Repeat the Hidden Edge command as many times as desired. "


i.e. it says that the line can occur with either
Solid Subtract ( = System 3a above), or
Cut Plane ( = System 4a above).
 
Now I find no evidence of this happening with the Solid Subtract option. (2 cents). 

PS As a complete aside,  that hole through the Earth is approximately the tunnel that would join the Antipodean pairing of Whangerei (NZ) and Gibraltar.  I understand it was the alternative WWII plan to attack the guns of Navarone - from underneath :)
Cheers

PS That final attachment demonstrates
A.  A classical Z-fighting problem that follows the cross-sectioning of that sphere (see the combined yellow and red "rising sun" flag in step 2, = either 2a or 2b).
B. I have separated the bottom Xsection at its hinge line (in 4a) to demonstrate it too is two parts.  None of these problems if you use step 3a = solid subtract.

samdavo

#11
BT
You mentioned cross sections and unwanted lines.  But since you didn't include your dcd, we really don't know what your problem was in detail. 

I believe MarkX speculated it involved a bug called "Layer 0".   You'll find several threads around here that deal with that - basically it's a bug, and some around here don't like it - I find it tolerable.  IF that's the problem, you can simply select it and change it to layer "n" ( something other than 0).  Or delete it.

But you said you couldn't delete it ?  Hence my guess is that you have a "Hidden Edge" - and these are tricky to remove (imo anyway)
That's my guess - If I'm right, you owe me a beer - and a toast to "the blind leading the blind" :)
cheers
sam

PS of course, when you section a cylinder or sphere of whatever, there will be a plane in there somewhere where the section occurred.  Including a witness mark on the surface of the cylinder.  If you drag the plane out of the cylinder, the "witness line" should go away. (2 cents)

samdavo

#12
Phil
I've tidied up that star thingo, - my further experimentation with "Cut Plane and Hidden Edge" - without extruding the 2D plane ok?

SUMMARY.  Again, I end up (now) agreeing with you that simple subtraction of a (solid) extrusion from a solid is better than some of these fancy options (such as Cut Plane)

DETAIL
Again, here was my mission and path to trying what I enclose ...
a. I recalled you saying you drew stars on a "flat" flag.
b. (and prl recently posted a star-draw macro).
c. I read Help about "(Using a Line to) Cut Planes" - including where is said the line needn't be in the plane, i.e. it could be the projection of the line (star) on the plane.
d. I figured I'd see if that was an acceptable option to SOLID SUBTRACT of an extruded starshape from a (solidified) plane. (answer = no, but I didn't know that then).
e. I used a star positioned some 150mm above a 600mm circle, and used "Cut Plane" to cut the plane with the projection of this star.  I did the same with a plane of the circle rotated 30 degrees to the plane of the star.
f. At this point I was pretty impressed with it.  Then I found I had cut the circle into two, and indeed the "projection of the star" was cut in two as well.
g. Using Hidden Edge was sorta helpful, but unreliable getting rid of those hinge lines.  At this point I concluded it was better to use the SOLID SUBTRACT.

I enclose a dcd and jpeg.  The red and the green "anice-vegetable" shapes are just added for explanation / demonstration ( just as the splitting of one of the circles is done for demonstration) ...
1. the green anice is just an extrusion of the star added after the hole in the parallel circle was completed;  and
2. the red anice is a solid made using "Surface Connect", because the ends taper by 30 degrees.

Note the selection (purple) in the bottom attachment, showing that the circle is in fact two semicircles.  Some of the Hidden Edges have been removed ( all except one).   And making the full circle a Group is arguably temporary - because if you do anything with that plane, the lines return. (2 cents).

IN short - I'd prefer to do as you say, and solid subtract ( Ctrl+U) [a longer version of] the extruded anice than to use "Cut Plane and Hidden Edges Removal"
cheers         

samdavo

#13
Getting off topic,  but ...
Correction of my last post ...
One application I can see where a projection of a vector on a plane (using Cut Plane) might be handy is eg where a star has a shadow on a plane - ( eg when the sun gets behind it :) )

I enclose steps 11, 12, 13, and 14 which achieve this - but note that anything created with Cut Plane is NOT corrected with Hidden Edge (Removal) -  it is instead simply copied around the edge, and the split parts are deleted.
(2 cents)
cheers