Solved

Scale an existing hpgl file

Posted on 2000-05-03
18
226 Views
Last Modified: 2012-05-04
I have a bunch of old hpgl files that were created on a cad system that we no longer use.  When I plot them they are scaled 1:1.  I need to scale them up to 10:1.  Is there a way to do this without purchasing new software?  I was hoping that I could just change the SC parameter but I can't figure out how to do it.  Here is a sample of a typical file:

IN;IP-2790,-4500,2011,-999;
SC6998,11723,10735,14180;
PU;SP1;
PU10763,10893;
PD10763,10953;
PD10703,10953;
PD10703,10893;
PD10763,10893;
PU10663,10893;
PD10663,10953;
PD10603,10953;
PD10603,10893;
PD10663,10893;
PU10563,10893;
PD10563,10953;
PD10503,10953;
PD10503,10893;
PD10563,10893;
PU10463,10893;
PD10463,10953;
PD10403,10953;
PD10403,10893;
PD10463,10893;
PU10363,10893;
0
Comment
Question by:cotec1
  • 9
  • 8
18 Comments
 
LVL 4

Expert Comment

by:jbrucejr
ID: 2823845
Try this.

Change the line:

SC6998,11723,10735,14180;

TO

SC699,1172,1073,1418;

OR

SC69980,117230,107350,141800;

I don't remember which way will increase the plot size, so you will have to give a try to find out.


Another attack on this is to change the IP instruction line. (DO NOT change the SC.... line - leave it as it is in your original files)

Change the first line in your example from;

IN;IP-2790,-4500,2011,-999;

TO

IN;IP-27900,-45000,20110,-9990;


AFTER LOOKING AT WHAT I HAVE PROPOSED I WOULD SUGGEST THAT YOU TRY THE CHANGE TO THE IP DATA FIRST.


It has been years since I worked on a regular basis editing HPGL files, so if this does not work, post a comment and I will do some testing on some files at work where I have access to a couple of plotters.

Good luck

John
0
 

Author Comment

by:cotec1
ID: 2825325
Thanks for the comments John.  I tried what you suggested and changing the IP numbers scales it correctly but I am only getting a 7" strip printed.  Any idea how to print the entire plot?
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 2831185
My first question should have been this.

When scaled up 10X will your plot fit on the page - remember that the whole plot is scaled.

If it should, you will have to change the SC instruction line so that more of the paper gets used.

Let me know how it goes.

John
0
 

Author Comment

by:cotec1
ID: 2833111
The plot does not fit on the page when I changed the IP numbers.  Without any changes it plots the whole image on a 7 inch strip.

I tried to change the SC numbers (up and down) and I get an "Illegal feature coordinates" message.

I know that some combination of IP and SC should do what I need, but I havn't found the combination.
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 2839965
Does the plot come out the correct orientation?  (ie portrait on a portrait sheet or landscape on a landscape sheet)

What make an model of plotter are you sending the file to?

I need the plotter info so that I find out what the "plotter units" are.  (The plotter unit is the smallest addressable movement of the pen for a particular plotter.)

I can send you an e-mail with a few select pages of the HP HPGL command manual if it comes to that.  The IP section is only 2-3 pages, but the SC section is quite large, and you are experiencing the reason there is so much on the SC command, it does a bunch of stuff and affects about everything.

John
0
 

Author Comment

by:cotec1
ID: 2863138
Adjusted points from 100 to 200
0
 

Author Comment

by:cotec1
ID: 2863139
The plot does come out the correct orientation and it plots the correct width (about 30 inches).  Only about 7 inches of the length is printed.  I am plotting on a HP DesignJet 1055CM with a 36" roll of paper.

I appreciate the help.  Sorry I took so long to reply.  Would it help if I sent you the plot file?
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 2894968
I have access to a 755CM (36" wide) so if you can send me the plot file it will help.   I will make some changes after I re-read part of the SC command entry in the command manual and run a test.

And here are some more questions.

How many plot files do you have that you will need to work on?

Are all of your files based on the same sheet size or are there some of each A,B,C,D,E?

Were your original files intended to print on ANSI (multiples of 8.5"X11") or ARCHITECTURAL (multiples of 9"X12")?

I have been real busy with getting ready for my sons graduation (which was sunday the 4th)  so my reply is also slow.

John
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:cotec1
ID: 2898461
I have about 40 plot files.  The size is not based on a standard sheet size, there is no title block or anything like that.  These are check plots of ceramic hybrid circuits.

Where do I send the plot files?  I'm gratefull that you are responding, slow or not!

Clint
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 2959353
Clint

Sorry about the long delay again.

I spent part of the time asking the ExpertExchange help line if there was a way to get you a message directly without posting it for public viewing.  I asked this to see if there was a way for us to exchange e-mail addresses in "private".  The answer was NO, and the only suggestion they had was to set up a web-based e-mail account with one of the free services (ie hotmail or netscape...) and only use it for this type of exchange.

Here ya go, I set this up months ago just because it was available and have never used it. (actually forgot about it till EE mentioned this type of mail service)

jbrucejr@netscape.net

I just tested it to see if I can get an attachment, and the answer is YES, and there is a 5MB space allowed for messages including attachments. (I am amazed, most of the webmail I know about does not allow attachments).

Send me a file or two, or if they are sorta small send a group and I will work on them and get back to you with my results.

John

0
 

Author Comment

by:cotec1
ID: 2965957
I just sent a zip file with 4 plot files, about 130K.

Clint
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 3451675
Clint

I think that I have the solution to your problem.

Go to   http://www.cimmetry.com  and down load the eval copy of AutoView Professional.

This package will view and print over 200 file formats, and even convert most of them to a fair number of other formats.  (like DXF)

If you only have need to convert or print a few the eval should be OK, and it will remind you that your using an eval version every other file.  BUT if you plan on using this as a regular part of your business you should purchase a copy to make it legit, and reward them for thier work.

I was able to view, print at any scale and convert to dxf all of the files that you sent to me.  The only thing that you will need to do is change the .plt extension of your file names to .hgl so that the program can recognize them as HPGL files.

Let me know how it goes - good or bad.

John
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 3692640
Clint

Did you try AutoView??  

If you can wait for a week or two, you could e-mail me a zip file of a group of your files  (only 5 MB of space avail on Netscape mail) and I could convert them to DXF and return them to you.

(The converted files will not have the watermark that gets added to the print files in the trial version of Auotview)

John
0
 

Author Comment

by:cotec1
ID: 3699196
I'm working on it.  I couldn't download the program so I requested the CD.
0
 
LVL 4

Expert Comment

by:jbrucejr
ID: 3987724
Clint

Did you get the CD?

If so did it work for you?

Just wondering.

John
0
 
LVL 4

Accepted Solution

by:
jbrucejr earned 200 total points
ID: 4045129
Clint

Did you get a chance to try it out?

Just wondering how it goes.

John
0
 

Author Comment

by:cotec1
ID: 4050590
It looks like it works.  Thanks.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now