Program to generate Hardware
I'm working on a program to automagically generate capscrews for use with AD. The ones from the library are fine but it takes forever to go get them.
I am working on two solutions at this time.
The first one involves modeling a 'generic' capscrew and writing a program to open it, change parameter values to produce the desired screw, then saving the result under a new filename.
The second approach is to have the program model the screw from scratch. This is the one I have spent the most time on so far.
I am using Visual Studio(Basic) .NET 2003. I'll try to post a zip file of my source files in the binaries section. I'll warn you ahead of time that I'm not a "real" programmer. I have a knack for beating on things 'til they do what I want though. The code is ugly nasty at this stage but there are comments in it. I've stolen bits of it from the API Help file and from this forum.
Tid-Bits:
The scales are all wrong...The resulting capscrew is supposed to be M8x1.25x30. There's some kind of cm-inch scale thing going on that I haven't explored yet.
It only generates 3 features so far...hex head, washer face, & body.
I have a spreadsheet full of capscrew data that I plan to use as source data for the program...it isn't linked in yet. The variable values for an M8x1.25x30 screw are coded in near the top of the source. The values came from the Machinery's Handbook 27th edition page 1541.
To run it...open AD and don't have any sessions going...push the "Generate Part" button.
I'm working on a program to automagically generate capscrews for use with AD. The ones from the library are fine but it takes forever to go get them.
I am working on two solutions at this time.
The first one involves modeling a 'generic' capscrew and writing a program to open it, change parameter values to produce the desired screw, then saving the result under a new filename.
The second approach is to have the program model the screw from scratch. This is the one I have spent the most time on so far.
I am using Visual Studio(Basic) .NET 2003. I'll try to post a zip file of my source files in the binaries section. I'll warn you ahead of time that I'm not a "real" programmer. I have a knack for beating on things 'til they do what I want though. The code is ugly nasty at this stage but there are comments in it. I've stolen bits of it from the API Help file and from this forum.
Tid-Bits:
The scales are all wrong...The resulting capscrew is supposed to be M8x1.25x30. There's some kind of cm-inch scale thing going on that I haven't explored yet.
It only generates 3 features so far...hex head, washer face, & body.
I have a spreadsheet full of capscrew data that I plan to use as source data for the program...it isn't linked in yet. The variable values for an M8x1.25x30 screw are coded in near the top of the source. The values came from the Machinery's Handbook 27th edition page 1541.
To run it...open AD and don't have any sessions going...push the "Generate Part" button.