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.

Drawing scale (imported drawing from pdf)

Started by Dave1932, August 13, 2014, 09:19:05 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dave1932

I found a piece of software to convert a PDF drawing to dwg format, which I was able to import into DesignCAD (V22), however, I cannot get the drawing to scale to the units (feet and inches) in the drawing. What I am looking for is to get the tool bar x and y and Dx and Dy measurements to agree with the imported drawing measurements. Tried measurement units but that did not appear to make any difference. I know I am missing something.

Dr PR

Dave,

The "Dimension/Units" command will adjust distances in a drawing.

First, locate a part of the drawing with a known length (a line, side of a polygon, etc.). For example, if the drawing has dimensions in it, use the ends of one of the dimension lines.

Then start the "Units" function. Set a point (gravity snap) at one end of the part and another point (gravity snap) at the other end. Then type in the desired distance in the "Drawing Unit" dialog in the "The measured distance is:" box.

Then click "OK."

Now the drawing is scaled to the desired units.

CAUTION: If you select a part that has a known length along one axis, be certain that that part is orthogonal (parallel to the axis). If it is at an angle to the axis the "Units" function will set the length of the angled part, and not the actual on-axis distance.

Note: When you use the "Units" command all coordinates in the drawing will be recalculated. In some cases this may result in round-off errors in the least significant bit of the coordinates. DesignCAD stores coordinates to 15 decimal places, so any round-off errors will be very small.

Phil
DesignCAD user since 1987

samdavo

#2
On a slightly related matter, (seriously obvious)  - suppose you cut and paste multiple jpeg's (or png's) into the same DCAD drawing  (all with slightly varying scales) ...

then for the first one you can use the "Units" command (as described by Phil above);  and then trace over the bits you want to replicate -

but for the second and subsequent jpegs, you have to load image, then  "Selection Zoom" by the factor (a/b),   
where
a = the intended distance between two points (eg what the dimension text states), and
b = the actual distance between two points in the drawing (according to the drawing's scaling).

You can type in ,  eg "400/325.65", for the zoom factor,
where a = 400, and b = 325.65

And again you then have to trace etc etc .

(Sorry if this is painfully obvious).

Why would you have multiple jpegs to load into the same drawing? Suppose they are coming in from a variety of input drawings  pdf's / jpegs etc, and have to be compared and contrasted (2 cents)

samdavo

PS For simple drawings, I kinda like tracing jpegs (rather than approximations like pdf conversions), because you use exact dimensions in the process (plus exact symmetry about defined centrelines).

Dr PR

#4
Sam,

A long time ago I posted a way to import multiple jpegs at the same scale. Here is a rehash.

The task: Suppose you have multiple overlapping scanned images of a drawing - say a long blueprint - that you want to import at the same scale.

The Problem: When DesignCAD imports a bitmap image it does so relative to the screen image. No matter what level of zoom in/out relative to the drawing objects, the screen image pixels are the same.

Now imagine you have a line X units long in the drawing. Zoom out until the image of the line on the screen is 1/10 the screen width. Now import a bitmap. Next, zoom in so the image of the line is full screen width. Then import the bitmap image again. The second import will be the same size as the first, relative to the screen at the time of import, but it will be 10X the width of the first, relative to the line.

The second bitmap will be 10X the width of the first, even though they are the same image, because they weren't imported at the same zoom level relative to the drawing objects.

The Solution: Define a reference zoom level.

1. If the drawing is not empty, zoom in/out so that the shreen image displays the desired portion of the drawing.

2. On an unused layer draw a reference line that is full screen width.  Lock this layer and put nothing else on it.

3. Hide everything except the reference line layer, an use "View/Fit to Window" (Ctrl+W) to resize the screen image.

4. Select an unused layer to import a bitmap image.

5. Repeat steps 3 and 4 for each subsequent bitmap image. This procedure will cause all imported bitmaps to be scaled the same relative to the reference line.

This doesn't mean all bitmaps will be scaled properly relative to each other. If the original bitmap images are at different scales the imported images will be at the same relative scaling as the originals.

But if the original images were scanned at the same scale the imported images will be at the same scale relative to each other. I have used this procedure dozens of times to import multiple scans of very long drawings.

Phil
DesignCAD user since 1987

prl

#5
Phil's method is more general and always correct, but you can also use Zoom Original Size (Menu>View>Zoom) which will bring your screen zoom level to 100%.  As long as you keep it (the screen zoom level at 100%), your images will be the same scale relative to each other.

In case it is unclear, if you use this 100% approach when you load the image, even though it is asking you to set two points (a ghost window scaling option), only set the first point and hit enter.  Doesn't matter where.  You'll assembly and align the images later.

Here is an example.  Say you've scanned an image and it is chopped into four graphic pieces.  Your objective is to import the four graphics into DesignCAD, align them properly and then you'll trace them or something like that.

A movie - How to insert multiple graphics at the same scale

samdavo

#6
Thanks for those posts/tips - all good stuff.

Phil,
Sounds ideal for bringing in snaps from the same large drawing.  Actually I was referring more to those occurrences where the jpegs/png's are screensnaps from different pdf's, hence at varying scales.   

PS (Though to be honest, the usual cause for me is lack of planning ahead - where I am bringing in the multiple screensnaps from the same large drawing, but at say 30 minute intervals, when I realise I also need another detail - and when the zooming of that original pdf drawing has changed - 2 cents) 

prl, 
By patching in multiple parts of the image, I imagine you get much better resolution.  Just one question - but how did you cut the original image into four so neatly?   They "seem" to be more or less seamless.
PS.  Menu>View>Zoom>Original Size is worth knowing as well.

prl

Quote from: samdavo on August 19, 2014, 03:51:25 PM
just one question - but how did you cut the original image into four so neatly?   They "seem" to be more or less seamless.

Sam, for this example I made a screen image and uploaded it to: http://imagesplitter.net/

Once it is uploaded, click the split image button.  It will prompt you for the columns and rows for the split.

Dave1932

All,

Thank you for the info. I was away for a while, and just getting caught up. Will try the above approaches.

Dave

fuelsguy

This is a great help. I tried the reference line technique and could bring in PDF's at the same scale. But I still had to re-scale them to be the correct scale.
I went on to try importing directly from a scanner and skipping the pdf stage. This was a trial and error process, but I got to a reference line of 3.817" that would allow me to scan from a 8.5" x 11" scanner and give the correct scale. i.e. a five inch line on the original drawing in the scanner came out at 5" in DesignCAD.
I don't know the magic to the reference line size, must be some pixel count process, but this is a quick way of getting scale drawings into DesignCAD from a scanner.
Maybe some expert in DesignCAD can explain the magic.

Ivor

Dr PR

Ivor,

There really isn't any standard way to import the drawing scale from a scanned image, either as a file or direct import.

DesignCAD brings in pixels and drops them into the drawing relative to what is showing on the screen - pretty screwball. You can't define the pixels per inch/mm in DesignCAD.

Even using the reference line technique you will get different results if you scan your drawing at different pixel densities (150 dpi, 300 dpi, 600 dpi, etc.).

So what you did - successive approximation is about the best you can do.

****

In a similar manner you may have to calibrate your printer to determine a print scale that causes an X inch line in DesignCAD to be X inches on the printer output. I used to have an HP color laser piece of crap that only printed at about 98% of true size. I had to use a print scale fudge factor to get it to print correctly. It went into the garbage and I now have a Samsung CLP670ND that prints accurately without a fudge factor.

Phil
DesignCAD user since 1987