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.

Controlling display of Doublelines in 3D

Started by MarkX, October 27, 2011, 01:54:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

Ok, I thought I was making progress with double lines laying out a floor plan. Then I viewed it in 3D. DC makes double lines into really thick, ugly double lines in 3D. Or at least on mine. How do I turn this feature off? I'd rather they just displayed as two regular lines.

Or, I'm wondering if the true secret is that I shouldn't bother with double lines?

Thanks!
Mark

Dr PR

Mark,

Double lines have a lot of associated "features" that can eventually get in the way. I can't recall ever using them myself. You can create parallel lines that will do just about anything you can do with double lines, but they behave "normally" without a bunch of associated side effects. Double lines are really 2D objects, and their behavior in 3D may be unpredictable, as you have learned.

2D and 3D are separate worlds.

In 2D lines have many characteristics like width and patterns (dashed, solid, etc.)

In 3D lines and curves have none of the 2D properties - they are zero width unbroken lines. Lines and curves have one very annoying characteristic in 3D. When a 3D design is shaded (Gouraud or Phong) lines and curves stand out as if highlighted. Since they have no thickness they do not generate shading and shadow effects. They are shown as brightly illuminated thin lines, which can stand out like a sore thumb against objects that are not as bright.

It is very easy to clutter a 3D drawing with lines and curves that later ruin the rendered image. It can be hard to flush all of this detritus out of a 3D drawing. If you turn off the "Wireframe renderable objects" option in the "Wireframe Command" dialog all of the 3D objects will disappear leaving only lines and curves. This will allow you to find any of this garbage that may have accumulated in your drawing.

You should avoid using lines and curves as much as possible in 3D. This doesn't mean you can't use a 2D drawing as a "template" for creating a 3D model, but you should keep the drawing created in 2D on seperate layers from the 3D objects. Lines (V) and curves (C) can be used to construct reference lines in 3D. Then 3D objects are drawn on different layers using these references.

When working in 3D you should draw planes (P) instead of closed polygons made of lines. Planes have 3D properties like color, material, etc., and they shade as surfaces when your render the image. Polygons made of line segments do not produce surfaces.

It is often faster to use the standard 3D solids (box, cylinder, etc.) than to try to build up something from planes. DesignCAD has a "Wall" object in 3D that allows you to assign a thickness, and then you just draw one surface and the program fills in the wall thickness.

For many tasks in 3D you will create a "working" solid - the object that you want to create. You will use various "tool" solids to modify the working solid. It is like working on a milling machine, removing bits and pieces as you go.

To make doors or windows use the "Box" function to create a tool solid the shape of the opening, and then subtract (Solids/Solid Subtract) the opening shape from the wall. Use cylinders to "drill" holes by subtracting the cylinder "tools" from the working solid.

You really have to shift gears in your head when switching between 2D and 3D. In 2D you create flat line drawings. Line thickness and hatching are about the only frills. In 3D you create solids that have material properties that influence how they render when you shade the drawing with lights at various angles to the surfaces, and the shadows the 3D objects generate. 3D really isn't much more complicated than 2D, but it uses an entirely different set of tools and procedures.

Phil
DesignCAD user since 1987

magic

Hi Mark,

The easiest way to handle double lines in 3D is to make them into planes and thus have the basis for the walls you probably want to raise.

There is a command for that: Select your double lines and go Edit > Selection Edit > Convert > Double Line To Plane.

It's a bit out of the way, but it's not something you want to do once a minute anyway, is it?
It's a kind of magic!




MarkX

Quote from: magic on October 27, 2011, 04:10:09 PM
Hi Mark,

The easiest way to handle double lines in 3D is to make them into planes and thus have the basis for the walls you probably want to raise.

There is a command for that: Select your double lines and go Edit > Selection Edit > Convert > Double Line To Plane.

It's a bit out of the way, but it's not something you want to do once a minute anyway, is it?
The problem is that at this point I have a drawing made up of several double lines, some crossing each other and self-healing. But when I convert them to planes, they don't join up to form one plane. So next I need to go around and polygon-add the planes together. But there appears to be a rule that says that planes can't have a genuine hollow inside. So then I need to change where walls meet up so that they just miss joining by a fraction (0.01) with one or the other wall. So technically, an ant might get through the walls. This whole thing takes a bit of time to do, and if I want to change the floorplan, I'll have to repeat it all.  There must be an easier way.

Thanks!
Mark

Dr PR

Mark,

You are correct - polygons cannot have a hole on the inside. A simple way to think of it is that all points on a polygon must be on the outside.

Where you want a hole in a polygon there are three ways to do it:

1. Create the larger outer polygon. Create the smaller inner polygon. Use "Edit/Polygon Edit/Polygon Subtract" to subtract the inner polygon from the outher polygon.

2. In many cases it is just simpler to switch to another layer and draw two new polygons (P) using the originals as templates. Just gravity snap to the points. Make two polygons, one on one side of the center hole and the other on the opposite side. Then use "Edit/Hidden Edge by Section" to hide the common edges between the two polygons.

3. You can create a single polygon that wraps around the hole. draw points clockwise around the outside of the polygon, and when you come all the way around to the first point again, set a second point there and then set a point on the inner "hole." Continue counterclockwise around the hole until you come back to the first point on the hole. Set the final point at this position and end the polygon draw. You can use "Edit/Hidden Edge by Section" to hide the edge between the inner hole and outer periphery of the polygon.

****

Don't forget that even if you have a drawing that is pretty much a mess, but with the correct overall shape, you can start over on another layer and redraw a cleaner version. Gravity snap is your friend!

Phil
DesignCAD user since 1987

Lar

Mark,

When using double lines to create a base plan for 3d rooms here's what I do:

[1] in 2d mode draw the plan using the double lines. It's best to cross lines as much as possible as opposed to using a line per room. If it's not too difficult use 'center alignment' for the dlines and I suggest you use 'none' for caps (you will see why later)...
2] Duplicate these lines to another layer and turn off the first layer (the one you want to keep the real dlines on)...
3] Select all of the dlines and vector convert them (Edit menu> Selection Edit> Convert...> Vector Convert).
4] Here you will encounter a snag, and why I suggested what I did in [1]... if you used beginning and end caps each cap will show up. If you used 'center' alignment they will be easier to see, select and delete. Where a line closed on itself there will be a diagonal cap - delete these also. If you used no caps some beginnings and endings of some lines will have a break in them. You will have to close these gaps. Select all the lines, activate point select mode and gravity-snap the ends together.
5] Once everything is tidy-up (and with all the lines still selected) press B for combine. All the touching lines will be combined into one, creating the insides and outsides of the walls...
6] Switch to 3D mode. The original double lines, on the turned-off layer, will be out of sight. You may have to rotate your walls so they lay flat on the Z plane...
7] With the lines still selected convert them to planes (Edit menu> Selection Edit> Convert...> Make Plane) then extrude them in whatever direction you want (upward {positive Y}, most likely). This will create boxes of the plan lines and they will be Solids...
8] Now here's the final, and trickiest, part: for every complete perimeter (outer) solid select the inner solids (those that represent the holes) and 'Solid Define' them into one solid. Now call up the Solid Subtract command and subtract the 'holes' from the perimeter. In most versions of dcad (earlier that 19, I think) you will have to make the 'hole' solids extend beyond the tops and bottoms of the 'perimeter' solid (use 'resizing handles') since those versions can not perform boole operations where skins touch. It's probably safer to do this regardless of the version since sometimes it does not work even in the later versions.

As always, it is my duty to say that performing these actions will take a fraction of the time taken to explain them, once you get familiar with them.

Good luck,
Lar

MarkX

#6
Hi Lars et al,

I'd like to try your method, but I hit a snag on step one.

Could someone explain to me why when copy a double line object to a layer, the copied entity is INVISIBLE? And how do I make it visible? It is visible in 3D, but not 2D.

By using select all, I can select the invisible object on the layer 3, but can't turn it into lines (I suppose because its invisible?).

Mark

EDIT: If I save the file and reopen, then the layer becomes visible again! So you'll have to try it yourself because I can't attach an example drawing.

DrollTroll

What steps are you using to duplicate the double line object to another layer?
Are you copying it right on top of the original object? If so, snaps will only select the first copy -- you'll have to then use the Enter key to cycle through other entities directly underneath the first.
25 years with DesignCAD

MarkX

Quote from: DrollTroll on October 28, 2011, 11:05:23 AM
What steps are you using to duplicate the double line object to another layer?
Are you copying it right on top of the original object? If so, snaps will only select the first copy -- you'll have to then use the Enter key to cycle through other entities directly underneath the first.
Hi DT,

First I select the original lines Then I use the copy to layer 3. Then I make layer 3 the current layer, and hide the previous layer (1).  Nothing shows up. I refresh, and still nothing shows up. I use Ctrl-A and something invisible is selected. I look in the info box and it shows me that the lines are selected. But I can't see them, or do anything with them. I toggle layer 3 on an off, change current layer, etc., but still the lines duplicated to layer 3 are invisible. I can draw new double lines on layer 3, but the duplicated ones will not show up until I've saved and re-opened the file.

This is highly repeatable on my system.

Mark
v21

DrollTroll

#9
Oh, ok. Now I see what you are talking about. Bug! Sorry.

Workaround: Select the invisible copies (Select All if it's the only layer active), or select the entire layer. Modify the objects in any way, then Undo. Move 'em, scale 'em, rotate 'em -- any change to the shape or location of the objects, followed by Undo, brings 'em back to the land of the visible (also seems to clean up some garbage lines that may appear after the duplication).
25 years with DesignCAD

Dr PR

Mark,

Congratulations! That's another bug on the list to be fixed.

Phil
DesignCAD user since 1987

Lar

Mark, I don't use the duplicate to layer command too much so I was unaware of that bug (and it's so easy to fix I probably just forgot about it).

What to do is, rather than use duplicate to layer just use the normal duplicate command. Just press N then bring the mouse to the big blue handle and right-click to gravity-snap to it. This will leave a duplicate there. Then use the info box to change layers. Since the originals would be selected maybe just change their layer to something else.

Lar

MarkX

Quote from: DrollTroll on October 31, 2011, 09:26:37 AM
Oh, ok. Now I see what you are talking about. Bug! Sorry.

Workaround: Select the invisible copies (Select All if it's the only layer active), or select the entire layer. Modify the objects in any way, then Undo. Move 'em, scale 'em, rotate 'em -- any change to the shape or location of the objects, followed by Undo, brings 'em back to the land of the visible (also seems to clean up some garbage lines that may appear after the duplication).

Hi Dt --

Of course, your post came in just after I had spent too much of a morning spelunking the invisible world my project had become.

I'm glad there's a good workaround.  ::)

Thanks!

MarkX

Quote from: Lar on October 31, 2011, 08:22:34 PM
What to do is, rather than use duplicate to layer just use the normal duplicate command. Just press N then bring the mouse to the big blue handle and right-click to gravity-snap to it. This will leave a duplicate there. Then use the info box to change layers. Since the originals would be selected maybe just change their layer to something else.
Thanks Lar,

I'll have to try this next time. The process of opening the Info box always seems a bit slow to me. Do most people just leave it open?

Thanks again!
Mark

Dr PR

Mark,

The more objects you have selected the slower the Info Box will open. In really large designs (250 Mbytes) if you select everything and open the Info Box it may take 15 to 20 minutes for it to open!

However, even in large designs if you select a single simple object the Info Box opens immediately, at least on my systems.

Are you seeing the box open slowly when you select just one object? How large is the file?

Note: In V15 and earlier the Info Box opened immediately, no matter how many objects were selected, even in large files. The older version Info Box did not list as much information as the newer versions.

Phil
DesignCAD user since 1987