Thursday, April 2, 2009

Not really Autocad...but where to put it?

One of my hobbies is to play around with a bit of programming.

I have looked at Basic, C, Autolisp, VB6, VBA and now I have downloaded
the freebie from Microsoft, VB 2008 Express Edition.

I can say that this represents an improvement of VB6, at least as far as the
small amount of things I have asked of it so far. I downloaded it to make a
small program, which, hopefully, will be needed where I work....

This post is essentially a repeat of my site at http://bilroCAD.com/Risk Analysis.html


This is the new program as it runs: it consists of two dialog boxes,and amounts to pressing buttons and selecting from lists. Once the program is run, it creates a text file-see listing below for that one.





This is the contents of a typical text file the program produces:

Task Analysis

Date Created:2009-04-02

The Task: Remove Beams

The Plant:Porana Rd

Permits: glass permit

Personal Protection: safety goggles

Equipment: gas sets

Step No: 1

The Action: Remove old conveyor
Hazard: gas

Type of Control: Eliminate

Means of Control: ,chemical isolations,standby personnel

You can see that this is site specific and could not be used on other plants. Why am I posting this here? To see if anyone is interested in such a program.You can email me at bill@bilrocad.com
A more general program would be identical, except the Plant and the Location boxes would extract their items from 2 separate text files, created by the user. I would imagine a fair price for the program might be US$20.
Another option might be a customised one that can only be used by your firm-the logo shown (mine) can easily be replaced by one that your firm uses.

Limitations are:

1. You have to make a directory c:\Task Analysis

2. The output is to a text file, which if you wanted to alter fonts and so on, then you would need to open the file in MS Word instead of Notepad.

3. At the moment the file output name is the same as the date. This means that if you do more than one on the same day, it just appends it to the file created before on that day.

4. It does not allow for multipages-for instance you might have Step No: 7 at the bottom of a page, then The Action on the next page.

5. It does not have "the smarts": for instance, if you chose say "welding"the program should suggest "welding helmet" and so on. It does not do this. Some might say the idea of this program is not the spitting out of a form, more the engagement of the person about to perform the task thinking about what he is doing.

All of the above limitations might be got around, but no gaurantees!

Wednesday, April 1, 2009

Everybody draws Handrails...don't they?

Handrails....A necessary evil, as the fun of drawing them soon diminishes.
Unless you are the type of draftsman that finds them relaxing,because it is the ultimate in blame free drafting: How can you possibly get them wrong?
Over the years I have come across many different styles of handrails. Once I created a very badly written lisp to automatethe process. It only drew the railings as a 50 x 50 square, to save on computing horsepower- it was in 3D.

With me getting Autocad Architecture, I was in hog heaven, because it had a very smart
system for drawing handrailing. You just decided on a style, and picked a few points and there it was.
Unfortunately, I am back in the mechanical world of vanilla Autocad,and there don't appear to be any such items on it's horizon any time soon. Not that I draw handrails very often, so when I do it is not a big deal.

My original plan was to get all the ducks in a row on this one, and present about 4 different types of handrails as "ways" of doing them.

So far I have only got this drawing:


Please excuse the image quality-I originally posted this as a jpg, but when saving it back I noticed that the text was unreadable. Hence the png file above, which might work better.

If not, I'll post it on my site: http://bilrocad.com/ ....eventually!
It is for a food factory, so it is made from stainless steel. The good things about it are the lack of welding required and the ease of construction.The rails are just straight cut, and there is the theory that any sweeping to be done would just brushout through the 10mm gap in the kickplate.

The plan is you start sweeping at the top level and work your way down.
The bad thing is the little vee on the top of the stanchion, as this would snag sleeves and hands. It could be improved a lot by making the top rail continuous and not having the vee. This would mean that semicircular cuts would have to be made in the top of the stanchion, but with proper tooling, this might be a good thing.

I have a suspicion that this design has not been "engineered", so should not be trusted to conform to any standards.
This lack of "engineering" just highlights to me how bad a world standard is needed: We, as draftsmen or engineers, should never be choosing our own designs for such a mundane thing as a handrail. We could have a choice of very well engineered and thought out designs to choose from. For an engineer to be designing a handrail represents a waste of resources.
I hope to post further on this topic, with more designs and eventually putting on my website a series of drawings that could be used as a "semi-standard". I'm not an engineer, so these " semi-standards" would only be that.



Unless someone knows of a site that does?

Wednesday, March 18, 2009

Specs for a CAD computer

I'm just trying to sort out a spec for a CAD computer.

At the moment I have an Intel Duo, about 18 months old, running Vista 32 bit, with 2 Gb of Ram and a Quadro FX1500 graphics card. I have a 20" main monitor and a 17" second monitor,both Philips. This setup seems to go well, I have the occassional crash, but who doesn't?

For normal computer users, a certain standard of computer is fine-all you need is about $NZ850, plus say $NZ200 for a monitor and you are done.

Just to add to the fun, the NZ dollar has depreciated against the US and Euro (it is about
NZ$1=US$0.53 at the moment.

I have priced up HP workstations-they seem to have quite a large range, it really comes down to how much money you are happy to pay in these recessionary times!

What I'd really like would be an Intel Xeon Quad core with a 24" main monitor/20"second monitor, high end graphics card, 64bit 6GB ram and so on. Hmm...just dreaming really....

Sunday, March 8, 2009

Drawing a house automatically

Drawing of a house using 3D solids in Autocad.


For draftspersons receiving a hand-drawn item from an architect,it could be a quick way of getting this into Autocad.

Users should be aware that there are "better" ways of drawing a house.These ways are Autocad Architecture, or Autodesk Revit.

Unfortunately these cost money, and you may have only a copy of plain vanilla Autocad. If you have better than Autocad 2007, you will be able to make use of the section command to produce plan views of your 3D model.

The idea is that all houses can be represented by data, and that we can describe a house by how long each wall is, how many windows in that wall, and what sort.

It is in a trial state at the moment. The program works,but the quantity and quality of the windows available are low.You can check out what is available in the zip file, the contents of which should be placed in a directory called c:\bilro\house.
If enough people try it out and want it to come up to the next level,then I will produce some windows (for a small fee of course!).

The procedure is as follows:
1. Run the program, House.exe. It was made in Visual Basic 6.0, so does not need to be installed. All this does is ask a series of questions, then creates a text file based on the answers. It puts this text file in c:\bilro\House. So if this directory does not exist, you would need to create it. You have to start at the bottom left hand corner of the house and go anti-clockwise about it.




2. Open up the file using Notepad. It should look like this:
WALL
0
5000
90
2455
OUTERCORNER
1
W2 600 x 1200
600
1200
500
2000
WALL
0
6000
90
2455
OUTERCORNER
1
W2 600 x 1200
600
1200
1000
2000
ENDWALLS
Now the same thing but comments just for this instruction only-
WALL-so we know it is a wall
0-this is the orientation-ie 0= horizontal, 90=vertical etc
5000 -this is the length of the wall
90 -this is the thickness
2455 -this is the height
OUTERCORNER-this is how the end of the wall is
1 -number of openings
W2 600 x 1200-name of the block in the first opening
600 -window height
1200 -window width
500 -length from the start end
2000 -head height of the window
WALL-this is the next wall
and so on.....
6000 90 2455 OUTERCORNER 1 W2 600 x 1200 600 1200 1000 2000
ENDWALLS-just to let the program know its at the end!

3. Add c:\bilro\house to your autocad path (go Tools/options/files)

4. Rename the file to houseinfo.txt. Then load Ho.lsp into Autocad, type HO and then enter.
These instructions are included in the download zip file as a text file called How to Manual.txt
Please only use the available window blocks, otherwise autocad goes looking for things that are not there. If you open Drawing16, you will see an example of what is produced.

Monday, February 16, 2009

Efficiency and quality



I was given a short job to do the other day. Just a flow diagram. I looked at it and said to myself that this should take 15 minutes. It took 45 minutes. I can only say in my defence there is a lot of typing in this drawing, and maybe I am a slower typist than I think.


Have a look, and if you feel keen, see if you can break the 45 minutes. I am sure some will do it in 15 minutes.


Which got me thinking: should I have used dtext instead of mtext? Is there a lisp routine around that draws boxes around text? Bet there is...


On another job, I received back from an outside firm some of my drawings, with corrections. It was a bit embarassing as they found all sorts of minor things like missing section titles and so on.

So all this comes down to:"How am I doing, quality-wise?" Answer: Could be better!


With 3D, it is all to easy to have dimensions/text in paper space that become unhinged when you are correcting the model. Maybe there could be a correction detector that operates within Autocad and points out the little disparities. At the moment, you might get on the command line a comment like "dimension disassociated".

Sunday, February 8, 2009

Drawing a proposed cycle-way






Here is my proposal for a bike cycle-way design.
On my various rides I have thought about various features a good design might have:

1. It must be as flat as possible, or going slightly down-hill if at all possible.

2. It must keep off the rain and sun, yet still offer the riders a view of some sort,as well as ventilation.

3. The route should be as direct as possible.

4. There should be enough width for 3 cyclists coming and 3 going. The reasoning behind this is that if you are cycling with a friend, you will need 2 spaces, and that leaves one space for quicker passing cyclists.

5. There should be a barrier, about 800mm high between the opposing flows of traffic.
6. If possible, it should look modern and elegant.

The upshot of all of the above, is a cycle-way that is about 6.3m wide, if weallow for 3m each side and say 100mm for walls and barrier.
One thing is that these would be made in a factory and it is probable the length would be limited to how much length the roads can take.I have guessed at 32m.

Other aspects of my design could be criticised:
1. 6.3m wide is quite wide: could this be cut back by having the other opposing traffic in its own span?

2. There is a privacy issue for people living beneath one of these things-It is possible there could be screens over the window openings.

3. Every 32m there would have to be a very solid tower to hold it all up. This tower would have to be capable of having a truck run into it, if it is anywhere near a road...which is likely.

All we need now is a concrete designer to work out the loadings!
Re Autocad R2010:after my last post, I checked out RobiNZ cad blog (see the link in the links part) and had a look at the official web launch demo. I think the 3D free form modelling seems to have a lot of good things going for it, and the demo shows off the parametrics quite well.

Friday, February 6, 2009

Autocad R2010.

You can go to other places to find out which commands have been added and indepth analysis of all that is new with this. Here, you will only find my short take on what has been added.

Firstly, nothing dramatically new as far as I am concerned, because I am a 3D user. The only things I can think of as far as 3D is concerned, is that there has been a heavy effort on the part of the programmers to tighten up the display - ie when using 3d shading. The shading in previous versions has sometimes not looked the greatest, (it seems to vary from drawing to drawing), so this is most welcome, and is the part I look forward to most in the new release.

It seems a far more responsive program than before, but this is hard to judge as I've only tried it on an old Athlon 3500 with a cheap video card, on Windows XP. I'm curious as to how it goes on Vista.

For 2D users and new users the picture is different: A rearranged ribbon for commands, and for the first time, parametrics and constraints. Not to be left out, dynamic blocks have been revamped to make them easier to use.

Because the parametrics are only usable in 2d, I don't plan on using them. My work is so varied that dynamic blocks are not much use to me either.

Some 2D draftees will no doubt get excited by the parametrics. When I say 2d, this is not strictly true, as one enterprising person made two 3D blocks that each contained lines in them, and did a stunning animation of a rack and pinion.

There is a new file format, R2010.

Just in case you don't know what parametrics are, all it means is say you draw a rectangle and tell it that the two horizontal lines are always to be parallel (ie constrained) and the same for the two vertical ones, then if you stick one of the new special dimensions on the rectangle, then this gives you the ability to click on the constraint dimension and change it. This will cause the geometry to change. Quite a leap for Autocad, shame it is not available in 3D!

There is now the ability to bring a pdf file into your drawing. I have just tried this out and it is quite impressive for two reasons:
1. In a multipage file you are given the option of picking which one you need.
2. You can draw lines etc over the top of the pdf and it will snap to sensible parts of the pdf!

There are other items, such as measuring that have had an extreme makeover and I look forward to having these tools available. For instance there is now an area tool that highlights it's boundary so you can tell what is being measured. A small thing, to be sure, but if you add up all these small things, they start to add up to a compelling release.

Remember the fun of hatching using Autocad? There is now a new helper in your war: little red circles showing where the problem is. Again a small thing....but.

Express Tools now come ready installed on the menu bar, which by default is turned off!
If you want it back, there is a little down arrow next to the printer button.....this is the only thing you need to remember!