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.

Creating a chain linked fence.

Started by Don A, September 16, 2012, 11:02:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

Quote from: prl on September 18, 2012, 05:18:56 AM
Quote from: MarkX on September 17, 2012, 04:28:02 PM
But my rendering still looks poor. The wires look semi-transparent. I'm using the same settings as you show in screen shot.

Graphics card issue?  Maybe your system doesn't like some of the tricks in the qs2.d3m macro.  Open up the macro and edit it:  Add the lines in blue, see if it makes a difference.

...
If not that, try dialing down your graphics card Hardware acceleration setting from Full one notch at a time.  (I'm talking about the Display Properties>Settings>Advanced>Troubleshoot or the equivalent in later windows versions. I use XP).
The macro tweak didn't help. The acceleration setting has 6 levels. I had to dial it down to level 2 to get your results. Then, I tried a Phong render experimentally, and DC ran out of memory. Guess you have to pick how you're going to be working.

So, yeah, it would be nice if DC had a mode so you could get SU type results automatically.

Thanks!
Mark

prl

#16
Quote from: MarkX on September 18, 2012, 10:59:05 AM
The macro tweak didn't help. The acceleration setting has 6 levels. I had to dial it down to level 2 to get your results. Then, I tried a Phong render experimentally, and DC ran out of memory.

You're running Windows 7?  Anyone else here try the qs2.d3m macro and the chain link drawing running Windows 7? How does Windows 7 deal with 32 bit applications?  Is it like the old days when you had to set session configurations for memory allocation, graphics, etc.?

Just asking since someday in the future I may have to deal with a new computer.


MarkX

Quote from: prl on September 18, 2012, 12:51:48 PM
Quote from: MarkX on September 18, 2012, 10:59:05 AM
The macro tweak didn't help. The acceleration setting has 6 levels. I had to dial it down to level 2 to get your results. Then, I tried a Phong render experimentally, and DC ran out of memory.

You're running Windows 7?  Anyone else here try the qs2.d3m macro and the chain link drawing running Windows 7? How does Windows 7 deal with 32 bit applications?  Is it like the old days when you had to set session configurations for memory allocation, graphics, etc.?

Just asking since I someday in the future I may have to deal with a new computer.
I'm running on XP also. It was shutting down the acceleration that caused the need for more memory.

Most Windows 7 come as 64-bit installations. In some cases you need the Windows 7 Pro version in order to download and run an emulator that will allow you to run your old 32-bit programs. The Windows 7 Pro version is a $89 upgrade. This seems to be a way for Microsoft to squeeze more money out of ordinary users.I don't know if you needed the Pro version for DesignCAD... I'm sure someone here knows.

Mark

Lar

#18
Quote from: Don A on September 17, 2012, 07:34:33 PM
I'm having alot of trouble getting the vertical weave. For some reason I can't seem to get my angles correct. I'll keep trying and let you know how I'm doing.

<<Note: the instructions and attachments were amended so re-download if necessary>>
In 3D mode and Point select mode...
1] Draw a 2" x 2" box in the X-Y plane...
2] Select the box and rotate the box 45 deg in the Z axis (so it looks like a diamond)...
3] Ctrl+click at the top of the diamond to split it into 2. Delete the right half then split the left into 2 at the corner ...
4] Select the bottom half, set a handle at its top, press the apostrophe key for Point Relative, enter 0.125" in the DZ field and press enter. This will move 1/8" away in the +Z direction...
5] Go to Edit menu> Line Edit> Line Connect and click at the 2 ends of the 2 lines. The lines will be connected and joined into 1 line...
6] Draw another 1/8" line by snapping onto the ends of the bridged segment, select this and move it to the top of the combined line. Select both lines and press B to combine them into one.

7] You now have the pattern that you can array and combine to form one vertical wire.  Use this (as the 'curve') with your 'wire cross section' profile using the 'extrude along a curve' command to give the wire a thickness. Duplicate the extrude, and rotate the duplicate 180 deg in the Y axis for the opposite shape and arrange to form the vertical 'diamonds'. Duplicate these for the complete fence.

If you are comfortable with Blocks you can define the first vertical wire as a block, mirror the block to form the first vertical diamonds then duplicate both blocks and arrange into the complete fencing. This will keep the file size down. If mirroring the block does not work properly then define the two opposite vertical wires as a block and duplicate these.

Lar



prl

Quote from: Lar on September 18, 2012, 03:30:05 PM
If you are comfortable with Blocks  . . .  This will keep the file size down.

This is definitely one of those things that can take advantage of blocks.  For that matter, create a block for a pair of vertical wires, block them, then copy them for a section of fence, say 4', and block the blocks.  Then build your fence 4' at a time.  File size will be tiny (but screen redraw time will still be an issue).

prl

Quote from: Lar on September 18, 2012, 03:30:05 PM
<<Note: the instructions and attachments were amended so re-download if necessary>>


Lar, just saw the updated illustrated step by step graphic.  Nice job and great tutorial.  Copy that post and put a copy in the Tip and tricks section. You know how we are, we'll forget where we discussed this and in five years from now . . . .


Lar

Good idea, Prl. To complete it I will add the extrude part to the graphic...

Lar

Don A

Quote from: Lar on September 18, 2012, 03:30:05 PM
Quote from: Don A on September 17, 2012, 07:34:33 PM
I'm having alot of trouble getting the vertical weave. For some reason I can't seem to get my angles correct. I'll keep trying and let you know how I'm doing.

<<Note: the instructions and attachments were amended so re-download if necessary>>
In 3D mode and Point select mode...
1] Draw a 2" x 2" box in the X-Y plane...
2] Select the box and rotate the box 45 deg in the Z axis (so it looks like a diamond)...
3] Ctrl+click at the top of the diamond to split it into 2. Delete the right half then split the left into 2 at the corner ...
4] Select the bottom half, set a handle at its top, press the apostrophe key for Point Relative, enter 0.125" in the DZ field and press enter. This will move 1/8" away in the +Z direction...
5] Go to Edit menu> Line Edit> Line Connect and click at the 2 ends of the 2 lines. The lines will be connected and joined into 1 line...
6] Draw another 1/8" line by snapping onto the ends of the bridged segment, select this and move it to the top of the combined line. Select both lines and press B to combine them into one.

7] You now have the pattern that you can array and combine to form one vertical wire.  Use this (as the 'curve') with your 'wire cross section' profile using the 'extrude along a curve' command to give the wire a thickness. Duplicate the extrude, and rotate the duplicate 180 deg in the Y axis for the opposite shape and arrange to form the vertical 'diamonds'. Duplicate these for the complete fence.

If you are comfortable with Blocks you can define the first vertical wire as a block, mirror the block to form the first vertical diamonds then duplicate both blocks and arrange into the complete fencing. This will keep the file size down. If mirroring the block does not work properly then define the two opposite vertical wires as a block and duplicate these.

Lar
Okay thank you for leading me in the right direction, got it,  but now I have another question. How did he get one link on top of the other an yet another link below. I've tried display order and
object alignment only after doing the extrude along a curb command but nothing seems to work. What am I doing wrong here?

Lar

Look at Prl's first bitmap to see how each wire is positioned relative to its neighbors. I think any of the attached dcd files would have this already (if you downloaded my file when I first posted it download it again because I made some revisions).

Once you give the wires a thickness by 'extruding along curve' and shade or hide-view everything should display properly (like in prl's first image). Sometimes 3d programs shade and you can see through solids, especially when surfaces are very thin but printing or saving an image should correct this.

If you don't extrude and just use the vectors then entity display order (of the wires relative to each other) shouldn't be a problem, unless the wires are different colors.

...Maybe you should post an image of what you're seeing so we can better help...

Lar

Don A

Quote from: Lar on September 20, 2012, 08:01:57 PM
Look at Prl's first bitmap to see how each wire is positioned relative to its neighbors. I think any of the attached dcd files would have this already (if you downloaded my file when I first posted it download it again because I made some revisions).

Once you give the wires a thickness by 'extruding along curve' and shade or hide-view everything should display properly (like in prl's first image). Sometimes 3d programs shade and you can see through solids, especially when surfaces are very thin but printing or saving an image should correct this.

If you don't extrude and just use the vectors then entity display order (of the wires relative to each other) shouldn't be a problem, unless the wires are different colors.

...Maybe you should post an image of what you're seeing so we can better help...

Lar

Here it is.

prl

#25
Quote from: Don A on September 21, 2012, 08:28:08 PM
Here it is.

Good progress.  The convention on your second wire weave is backwards.  The wires collide (looks neat though).







I know you are probably using Lar's method but I worked this out using a square method approach (the weave is at 45 degrees).  Look at the graphic above.  The solid blue vertical line and the solid red vertical line are in the same XY plane. I know it doesn't look that way, but they are.  Similarly the solid blue horizontal line and the solid red horizontal line are in the same XY plane.  The vertical lines and the horizontal lines are in different XY planes (the 1/8" offset by the wire bend).




This graphic is a front elevation (XY plane).  Here is how you need to offset the red and blue in the +x and +y direction.

Edit:  Technically the red has a +1/8 offset in the X direction relative to the blue line, and the blue a +y relative offset to the red.   Do one then the other.

Lar

Quote from: Lar on September 18, 2012, 03:30:05 PM
7] You now have the pattern that you can array and combine to form one vertical wire.  Use this (as the 'curve') with your 'wire cross section' profile using the 'extrude along a curve' command to give the wire a thickness. Duplicate the extrude, and rotate the duplicate 180 deg in the Y axis for the opposite shape and arrange to form the vertical 'diamonds'. Duplicate these for the complete fence.
Don, it looks like you mirrored the first wire to get the 2nd. It has to be duplicated and the duplicate has to be rotated. I made that same mistake when I was doing it the first time.

You can mid-point snap on the top 1/8" segment of the left wire, call up the rotate command, choose Y axis, set 'angle' to 180, activate 'make a copy' and press enter. This would rotate and duplicate the same time (problem with this is you would have to remember to deactivate 'make a copy' the next time you rotate... best to call up rotate again, deactivate it then cancel the rotate (press 'esc')). Move the duplicate and snap it onto the right wire then delete the old right wire.

Also, the radius of the circle you used for the extrude has to be at least half the size of the gap where the wires wrap. Half the size would cause the extruded wires to touch. I don't know how close you would be viewing the wires but I would not use a circle with so many points as you have. Dcad defaults a circle-plane to 120 segments but you can change this. I would use no more than 32 (my circle-planes always have points in increments of 8 so they land on the 'points of the compass').

Lar

Dr PR

Don,

I don't want to confuse the issue, but there is another way to skin this cat.

If you look at a chain link fence you will see that the pattern is more or less a twisted, stretched "C" repeated on all four sides of a diamond opening. Therefore you need to create only one of these. This can be done with a simple cylinder for the straight section, and a swept polygon for the end curves. Use "Solid Add" to make a single solid.

Then you can rotate and mirror to create a "<" pattern. This can then be replicated any number of times to create a single wire for the fence. Then replicate this wire to make the fence.

This avoids the problems often found with the extrude along a curve, and allows you precise control of the number of facets. This is extremely important - DO NOT USE ANY DESIGNCAD DEFAULT VALUES!

CAUTION: Use no more than 12 facets for the wire cross section. Use only three sections for each sweep. This will give you

12 + 2(3(12)) = 84

Facets for each side of a diamond or 168 facets for each "<".

Each vertical zig-zag wire in an 8' fence will have something like 10,000 facets. A 10' section of fence will have something like 850,000 facets. This will be a very large drawing, for just a very short section of fence.

DesignCAD is probably incapable of handling a file large enough to hold a 50' fence. The largest file size I have been able to work with is about 275 Mbytes, and it had only about a million facets in it.

Phil
DesignCAD user since 1987

Don A

Lar, I think I've finally got it, maybe. Have a look. The array command is another one of my weakness's but, we'll get that down.
Dr PR, you did take me on a curve, but I gave the solid cylinder a shot too.
Next, the line post, gate, rail end, eye top, post hinge, clips ect...

Lar

Congrats, Don. When you're completely done I'll need about 2,000 feet of that to put around my yard.

Lar