scaling a pdf in autocad

scaling a pdf in autocad

riswanthespy
Contributor Contributor
6,661 Views
20 Replies
Message 1 of 21

scaling a pdf in autocad

riswanthespy
Contributor
Contributor

hi friends i imported a pdf in autocad . but the problem is scaling my pdf. if i scale to a specific value one side of the diagram, it  is scaled as my inputs , while the other side is improperly scaled. if i try to scale that correct the other side value is changing, can anyone suggest me a proper solution for this .. 

 

 

 

Thanks in advance.

0 Likes
6,662 Views
20 Replies
Replies (20)
Message 2 of 21

imadHabash
Mentor
Mentor

Hi,

When treat with pdf's and images in AutoCAD, accuracy will come down.

Imad Habash

EESignature

0 Likes
Message 3 of 21

-didier-
Advisor
Advisor

Bonjour @riswanthespy 

 

The imported PDF will behave as a block. It is possible to move it, rotate it and apply a scale factor.

You need a known reference according to your units used.
For example, on the PDF there is a 1 meter line.
Command: Scale
You select the PDF then, you select on the PDF the base point, then R, You show the starting point of the line then the end, and you answer 1.

The PDF is to the scale of the drawing.

Beware of snaps in the PDF, they are blurry and less accurate than AutoCAD.

 

Amicalement

Éternel débutant.. my site for learning : Programmer dans AutoCAD

DA

EESignature

0 Likes
Message 4 of 21

rogier.dejongCB9QW
Participant
Participant

Import PDF is a very nice feature in AutoCAD. But the accuracy of the results depends also on the quality of the PDF. (How/where is it created). Indeed sometimes X and Y scale a not exactly the same. Bad quality input gives bad quality output.

 

0 Likes
Message 5 of 21

hmsilva
Mentor
Mentor

@riswanthespy wrote:

...

if i scale to a specific value one side of the diagram, it  is scaled as my inputs , while the other side is improperly scaled.

..


@riswanthespy 

Do you means different X and Y scale?

If so, what i usually do is:

  • Transform the 'Raster image' or 'PDF Underlay' in a 'Block Reference' (command 'block')
  • Select the 'Block Reference' and correct X and Y scales in the Properties palette, by trial-and-error. (command 'properties').
  • Explode 'Block Reference' (command 'explode')

The result is a 'Raster image' or 'PDF Underlay' correctly scaled.

 

I had written a lisp to do this task, but I can't find it...
I'm currently under a heavy workload and I don't have free time to write it, maybe someone else can do it.

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 6 of 21

riswanthespy
Contributor
Contributor

@hmsilva nothing works for me bro still getting that error. idk what causing that error

 

@-didier- That also i tried but no change

 

@imadHabash  i think there's no solution same as u said

 

0 Likes
Message 7 of 21

riswanthespy
Contributor
Contributor
idk wht error is this, i tried with lot of pdfs, my boss giving me pdfs to create dwg... but that pdfs are not scaling properly.. however the pdf quality is also so good.. its not working tho
0 Likes
Message 8 of 21

-didier-
Advisor
Advisor

Bonjour @riswanthespy 

 

Apart from these solutions, I don’t know what else to tell you, sorry.

Ask differently perhaps with an example.

 

Amicalement

Éternel débutant.. my site for learning : Programmer dans AutoCAD

DA

EESignature

0 Likes
Message 9 of 21

timothy_crouse
Collaborator
Collaborator

Give This a Try

 

Use the scale Ref Command

 

1. Measure an object in the PDF.  Note that dimension

2.  Obtain the real World Dimension of that same object

3.  Run the Scale Command

4.  Select the PDF

5.  Pick a point on the ref object

6. Type "R" for Ref

7.  Pick the same point

8.  Pick the other end of the object

9.  Enter the real-world dimension

 

Best REgards

-Tim C.

0 Likes
Message 10 of 21

dbroad
Mentor
Mentor

No way to diagnose without seeing the PDF.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 11 of 21

Kent1Cooper
Consultant
Consultant

@hmsilva wrote:
  • Transform the 'Raster image' or 'PDF Underlay' in a 'Block Reference' (command 'block')
  • Select the 'Block Reference' and correct X and Y scales in the Properties palette, by trial-and-error. (command 'properties').
  • Explode 'Block Reference' (command 'explode')

....


Just be aware that the put-in-Block/Scale(s)/Explode approach can have unexpected results if a PDF underlay is rotated before being put into a Block definition.  It seems not to be an issue with a raster image, but I didn't do extensive testing.

Kent Cooper, AIA
0 Likes
Message 12 of 21

RSomppi
Mentor
Mentor

I've only ever seen this behavior with PDFs created from scanned documents or pics of documents. Raster Design has a rubber sheeting tool that could correct this to a degree.

0 Likes
Message 13 of 21

hmsilva
Mentor
Mentor

@Kent1Cooper wrote:

@hmsilva wrote:
  • Transform the 'Raster image' or 'PDF Underlay' in a 'Block Reference' (command 'block')
  • Select the 'Block Reference' and correct X and Y scales in the Properties palette, by trial-and-error. (command 'properties').
  • Explode 'Block Reference' (command 'explode')

....


Just be aware that the put-in-Block/Scale(s)/Explode approach can have unexpected results if a PDF underlay is rotated before being put into a Block definition.  It seems not to be an issue with a raster image, but I didn't do extensive testing.


@Kent1Cooper 

That's correct!

@riswanthespy 

My suggestion it's just a workaround, since AutoCAD does not allow us to change differently Xscale and Yscale...
Trying to solve the 'unexpected results if a PDF underlay is rotated' perhaps import all objects as AutoCAD entities (command'_pdfimport'), then 'Block Reference' (command 'block') and then change X and Y scales...

 

Post a sample so we can all see what you're trying to achieve.

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 14 of 21

riswanthespy
Contributor
Contributor

ok fine here is the autocad file imported as pdf kindly go through this and try to scale as in the values in the display.

 

 

Hope i can get a solution

0 Likes
Message 15 of 21

dbroad
Mentor
Mentor
  • There was no pdf attached to the file.
  • The file wasn't created with AutoCAD.
  • The actual dimensions weren't as noted.
  • The noted dimensions weren't between clearly defined points.

Please let us know:

  • What program was used to create the dwg file?
  • How are you determining distances?
  • Are you having trouble with x vs y scales or are there other scaling abberations?
  • Do you really need help with a pdf or with just fixing the posted file? If with a pdf attached to a drawing file, please post both.

Recommendations if this file is all you have:

  • Determine at least one distance between clearly defined points that you actually know. It should be the largest distance you can know for sure.
  • Then scale all objects in the model space about the 0,0,0 basepoint, using the reference option. Pick the distance, using object snap between 2 defined points.  Then enter the distance you know to be true.  Using actual dimensions should confirm that at least that distance is now correct after scaling. 
  • Then repost this file and point out distances that aren't true.
Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 16 of 21

timothy_crouse
Collaborator
Collaborator

I scaled your attachment per the steps outlined in my previous answer.

 

It seems to be in order unless I am missing something.

 

Take a look and let me know.

 

BTW there is a bit of garbage in that file, it is quite heavy 

 

Best Regards

-Tim C.

0 Likes
Message 17 of 21

riswanthespy
Contributor
Contributor

@timothy_crouse  see the pdf is not scaled properly the values on the right side is 500 but measures shows that 448 when scaling this value the value on the left 700 will change that my problem.

0 Likes
Message 18 of 21

riswanthespy
Contributor
Contributor

@dbroad  I imported this from a pdf . due to some confidentials i deleted some texts alone there are values on left and right . u can see values 500 , 700 etc , if we scale one side the other sides will change thats my question how to scale evenly all sides i dont know what error causing this misfunction. some say that cant be scaled ,its default error. like while the pdf is created in one pc and if we transferred to another pc ,the error will occur, is that true?

0 Likes
Message 19 of 21

pendean
Community Legend
Community Legend
@ riswanthespy your file's content started from skewed/not to scale PDF. That's your problem. There is no consistent scaling factor between what is measured and what is listed.
heck, even your two 500M dimensions doo not measure the same due to the sloppy nature of their creation/not snapping to any points.

Garbage in=Garbage out as they say in the CAD world.

No fix. Sorry. You will need to find a more accurate document somewhere else. What you posted is a fudged document created by someone quickly and hastily for a site exhibit, not much else. It is very unreliable.

PLUS your DWG file is set to mm.
0 Likes
Message 20 of 21

dbroad
Mentor
Mentor

If you can't provide the pdf, then that's your problem.  We can't help, otherwise.  From the information you've provided, we can't determine what the real measurements should be or what you started with.  

Architect, Registered NC, VA, SC, & GA.
0 Likes