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.

scale conversion

Started by raptor44, October 31, 2007, 10:13:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raptor44

I'm new to designcad,so i haven't had the oppotunity to work with it, if this is a dumb question I apologize..

I'd like to find out,if the following can be done.I have numerous copied aircraft drawings,3view/plan/elevation,8.5x11, orginally drawn at 1/8 scale. All dimenions are in MM, a centimeter scale bar is shown,but it's not true scale.i'd like to scan a drawing into designcad,and be able to resize it in designcad, to the original 1/8 scale drawing. Also, the measurements are in MM, will designcad give me a drawing at the 1/8 scale, and allow two measurements in MM and inches,at each dimension line.

Rob S


The process of converting a scanned drawing into a CAD drawing is an often explored subject, and not always easy.

There are such things as raster to vector conversion, but the results are mediocre at best.  You can scan the image, and then draw over it, which produces better results, as you can use straight lines consisting of two points, where the raster to vector conversion may give you hundreds of points.

Once you have the thing as a CAD drawing to any scale, it is very easy to reset the scale to anything you want.  It is normal to draw full size, and then print to scale.  In DCAD you just use the "units' command, and tell the program the actual distance between any two known points. 

Then you can re-adjust the units of the dimensions to suit.
User since forever

Dr PR

I have scanned a lot of drawings into DesignCAD V15.3 and V17.2, and then traced them. You can do it, but the process is not perfect. You can scale the drawings but you cannot dimension in metric and English scales simultaneously (this is a feature I have requested, but it has not been implemented yet). Here are some tips:

1. DesignCAD has an odd feature that it places pixel images into the file at a screen-pixel-relative scale. This is weird, and can screw up your work if you don't understand, so I will try to explain. Suppose you draw a horizontal line. This is a vector, and is dimensioned in "drawing units" that are independent of the number of pixels on the screen. Zoom in or out and it is still the same number of drawing units long, but the number of pixels necessary to display it on the screen changes. If the displayed image is full screen width it takes the number of pixels equal to the width of your screen to display it. Zoom out so the line is half the width of the screen and half as many pixels are needed to display it. This is so obvious that we don't even think about it.

When a bitmap image is placed into your drawing each pixel in the image is placed at a pixel on the screen. If the image is larger than the screen it is still placed into the drawing at the screen pixel density RELATIVE TO EVERYTHING ELSE IN THE DRAWING. Lets say your bitmapped image is exactly the same pixel size as the screen. Every time you place it in a DesignCAD drawing it will fill the screen exactly.

Now, consider the "obvious" example of the line mentioned above. If you zoom out so the line is screen width and then import the bitmap into your drawing, the imported image will be the same width as the length of the line. If you first zoom out so the line is half the width of the screen and then import the bitmap, the image will be twice as wide as the line length. The line length has not changed, but the pixels/unit measure are different.

THERE IS NO DIRECT WAY IN DESIGNCAD TO SPECIFY THE PIXELS/UNIT MEASURE WHEN IMPORTING BITMAPPED IMAGES.

You MUST consider this before starting your drawing. This is especially true if you want to import multiple bitmap images into your drawing at the same pixel/unit measure. The pixel density is different for every zoom increment.

I first draw a line in drawing units (inches, millimeters, furlongs, parsecs) that is my size reference for bitmap imports. Before importing images I make the layer with this reference line the current layer, disable all other layers and then Zoom to Fit Window. This places me at a repeatable pixels/unit measure starting point. Then I import the bitmap and move it to a desired layer. I repeat the process to import other bitmaps,and they all come in at the same pixel/unit measure scale.

2. Tracing a bitmap is also complicated by the way pixels and vectors are rendered on the screen. A zero width vector line is always drawn at the same pixel width on the screen, no matter what the zoom factor. Bitmap "pixels" (the square collections of screen pixels that represents a single pixel in the original bitmap file) are scaled as you zoom in/out, so a single "pixel" could fill the entire screen at high zoom. How do you determine the exact center of the bitmap "pixel" when tracing? It is zoom dependent. Zoom out and it appears as a point, zoom in and it is a square. Consequently, best results are obtained if you always trace at the same zoom factor.

However, sometimes you need to zoom in to trace details, but when you do the bitmap "pixel" width changes. Firthermore, the bitmap image is always rendered in screen pixels relative to a "handle" on the image, and as you change zoom factors the number of screen pixels needed to display a single image "pixel" changes. At different zoom scales the ratio of screen pixels (a constant size) and image "pixels" can be anything, including irrational numbers, but DesignCAD has to round off odd and irrational numbers to real display pixel counts. Consequently the relative position of the bitmap image and vector drawing image can change at different zoom scales. This "jitter" causes the displayed position of the bitmap image to change relative to the vector drawing.

This is extraordinarily frustrating, because how can you trace over a "moving" bitmap image? You must always work at known scales, with predictable ways to switch between them. DesignCAD does not allow you to specify a numerical zoom factor relative to drawing units. There are an infinite number of zoom levels. Again, the original reference line is the only way to get back to a known starting zoom factor. You can repeatedly control zoom in/out levels if you only use the Zoom + and Zoom - functions, and you can define the zoom increment for these functions.

3. After I trace the bitmap image on one layer I always "regenerate" the drawing on another layer. First I select some feature of the drawing that is a known length. If the bitmap image had a reference scale, I trace over it and then use the Units function to define the drawing distance (inches, mm, furlongs, parsecs). Any error you make in tracing the scale or reference length feature will appear in all of the drawing, so trace this carefully! Note: at this point you can set the drawing scale to anything you want. For example, if the bitmap scale is in feet you can use the Units function to set the drawing units scale to an equivalent metric value, or scale to 1/8 or whatever.

After the drawing scale is defined I compare the dimensions of the traced drawing to dimensions shown in the original bitmap image (if there are any) and redraw the features to the correct lengths. Likewise, I redraw horizontal and vertical elements to true horizontal and vertical (traced lines rarely are true). This regenerated image is then copied to a new file, leaving behind the bitmap and traced image.

4. To get both English and metric units in the same dimensions I create two different dimension layers. First I dimension the drawing in one set of units, being careful to place the numbers on the same side of all dimension lines. It is necessary to select the "Fixed Text" option for this layer (the dimensions will not be rescaled if the drawing scale is changed). I create a units scale on that layer, say X mm/cm/m/km long. Then I switch to the other dimension layer and change drawing units to the new measurement system. For example, say I have a scale on the first dimension layer that is 50 millimeters long. I use the Units command to set 1.968503937 drawing units for the length of the 50 mm scale. Now it is 1.96850397 inches long. Then I create a new drawing scale on the second layer that is dimensioned in the new units, say 2 inches long.

I "trace" over the dimensions on the first layer, placing the numbers on the opposite side of the dimension lines from the first layer. All of the dimension lines and arrows fall on top of the other layer dimensions, so when both layers are visible there are both English and metric units for each dimension. If you want parentheses or something like that on dimension numbers you can set prefixes and suffixes for the dimension text.

This sounds unnecessarily complicated, and it is, but it has one tremendous virtue. If you do not use the "Fixed Text" option on the second dimension layer you can rescale these dimensions to any scale. Just use the Units command to set a different distance between the points on the drawing scale and all dimensions on the second layer will be rescaled automatically. So you can re-dimension your metric drawing in furlongs if you want. More practically, you can rescale to 1/8 to make printed drawings in 1/8 scale, and then use the same drawing to print 1/4 scale drawings, ...

Note: this all works on V17.2 and earlier versions of DesignCAD for Windows (since V12 at least). They are "improving" dimensions in V18, and they are totally screwed up - unuseable. The bugs will presumably be fixed in V18.1, but I do not know if we will still have full control over text positioning like in earlier versions. If not, V18.1 will be useless.

****

So, in so many words or more, that is how you can achieve what you are asking about in DesignCAD. Perhaps more experienced users can supply some shortcuts, but this procedure works for me.

I suspect the same problems with bitmap tracing exist in all CAD programs - the scaling problems are common to all. However, some programs automatically produce English/metric units on dimensions. Unfortunately, DesignCAD does not.
DesignCAD user since 1987

Rob S

For Dr PR, and anyone else finding this useful - You can in fact have both metric and imperial "live" as opposed to "Fixed text" dimensions in the same drawing.  This is done as follows in V18.0:

1) Draw the object and dimension it in the primary unit - I used feet in the example attached.

2) Then, add additional dimensions and edit the dimensions in the info box under unit multiplier use .3048 for metres, change the format to 1.500, and change the suffix to " M" for metres.

3) For millimetres you can use 304.8

When I stretched my box, both dimensions updated to reflect the new size.  I have attached both .pdf format for a quick look, and .dcd format in zip file for anyone wanting the drawing to look at the settings.

Amazingly enough, this solution opens backward compatible into DC 17.2
User since forever

AeroClassics

Dr PR,
That is one of the better explanations of the difficulty of converting raster to vector. It is a non-trivial process. I have tried it on occasion but hadn't thought about the reference line to set a known size in the drawing. I will have to try thing the next time I have a 3-view that I can import.

Doug
--------------
Douglas Jones
Carrollton, Texas

For those who fought for it
Freedom has a price the protected will never know

Dr PR

Rob,

Thanks. I knew that!

I forgot about the Units Multiplier. I normally use it to place expanded scale sections in drawings - for example, you can place a 4X insert into a 1X scale drawing by setting the units multiplier to 0.25 in the insert dimensions.

One of the problems (at least in earlier versions of DesignCAD) with using the Units Multiplier as you suggest is that you cannot select all of the dimensions in a drawing at once (with the Selection Filter) and then change the Units Multiplier for them all in the Info Box. So, if you have a lot of dimensions in a drawing and you want to change the units for just some of them (millimeters to centimeters, for example) you have to change each dimension one at a time. I have one drawing with more than 1000 dimensions in it - changing the scale for half of them by modifying the Units Multiplier of each dimension one at a time is not appealing to me. This is the main reason that I use different layers for dimensions in each different measurement system. I can disable the layer that I don't want to change and just work on the dimensions that I want to redo.

If you change the Units all dimensions change, but the two different sets will keep the same relative length ratio.

I wish the Info Box would let us edit every feature in dimensions. That way we could select all dimensions on visible layers and change the Unit Multiplier, Fixed Text, etc. for all at once. This would make it MUCH easier to change all dimensions for one measurement system without changing the other.

Better still, a Drawing Scale Multiplier (actually a global Units Multiplier Multiplier) would allow single step rescaling of all dimensions in a drawing, without changing the Units Multiplier for each dimension. So, if you had two sets of dimensions, English and metric, in a single drawing, using the Units Multiplier as you suggest, changing the Drawing Scale Multiplier from the default 1 to 2, all 1 inch dimensions would change to 2 inch and all 2 cm dimensions would change to 4 cm.

I have asked for this feature in the past, and if it has been implemented in later versions I haven't noticed it.

Also, stretching the dimensions as you describe works in 15.2 and earlier versions IF you include all points of one end of the dimensions in the stretch box. It doesn't work if you just rescale the box with the Scale function - the dimensions in older versions are not "attached" to the objects - also called "Associated Dimensions." I think they are trying to include Associated Dimensions in V18.

****

Here is another scaling trick. I place a unit length scale reference line (1 foot, inch, meter, etc.) in the title box or under the drawing scale, in a layer that is normally hidden. Then I dimension the line with the text above it, with everything in the dimension but the text disabled. The text has the prefix "SCALE = " before the number and a suffix " X" after the number. So if the drawing is printed at 1X the scale statement reads "SCALE = 1 X."

If I change the units to rescale the drawing, the scale dimension in the title box changes automatically. If I use the Units function to make the scale line length 2, the scale statement reads "SCALE = 2 X." Or if I make the scale line length 0.125 the scale statement reads "SCALE = 0.125 X." If I use the Text Format "1 1/2" for the dimension text the scale statement will read "SCALE = 1/8 X".

I also use the prefix "SCALE 1:" with no suffix to achieve scale statements like "SCALE = 1:4" for drawings that are always printed at less than 1X scale, or a prefix "SCALE = " and a suffix ":1" for scale statements like "SCALE = 4:1" in drawings that are always printed larger than 1X.
DesignCAD user since 1987