
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all, I am an Autocad user with a basic understanding and knowledge of CAD and its tools, and i need some help creating a custom command prompt.
As a little background, I inspect the hulls and interiors of ships. Part of that inspection is taking measurements of the thicknesses of plate, and comparing those measurements to the original thickness of plate the ship was designed to have. Steel tends to rust and degrade over time, and it is my job to assess the condition of the vessel, and report any areas of concern so they may be repaired. I use AutoCad to make drawings of the ship structures that I inspect, and I am looking to have a command created that would increase the efficiency of reporting the measurements taken. What I am looking for is a command that I can input a number representing the design thickness of plate, then input my measurement taken, and the command would take those two numbers and give me an expression like the following:
For this example, I have a measurement of .440” on a plate that is originally .50”. The expression is two lines of text, justified Middle Center. The top line represents my measurement of the plate, .440”. The bottom line is the percentage of material difference of my reading from the original design thickness, within parenthesis. I currently have to edit two lines of text for each measurement I take, which takes all of fifteen seconds, but if I had a command that would do all the work, thousands of readings would be input much quicker, saving me time and my sanity.
The command prompt should be similar to the following. Note that text inside of hyphens are the command prompt given by AutoCad, text inside of parenthesis are my response to the prompt.
- -Enter original thickness of material- (.50)
- -Enter thickness measurement taken- (.440)
- -Select base point-
The top line of the expression would come from step 2 along with a ( “ ) suffix, and the bottom line would come from a calculation of steps 1 and 2, and have a ( % ) suffix, as well as rounding the decimal up or down. The calculation should look something like:
(.50 - .44) / .50, or [(1)-(2)] / (1)
This is all a general idea, of course. There may be an easier way to do it, or the way that I have imagined it would be accomplished is completely incorrect. I have tried creating the command myself, but so far my attempts have proved futile.
The last step is to create four versions of this prompt, two versions being .05 and .07 font size in a standard measurement ("), and two versions being .05 and .07 font size metric measurement (mm).
- .07” font size w/inches suffix ( “ )
- .05” font size w/inches suffix ( “ )
- .07” font size w/metric suffix (mm)
- .05” font size w/metric suffix (mm)
Does anyone have a good idea of how to accomplish this, or guide me in the right direction? Thanks!
Keaton
Solved! Go to Solution.