mcs

Math geeks and panel graphics unite
« Reply #20 on: October 02, 2004, 01:52:10 PM »
Something like this?



Best regards,

Mikkel C. Simonsen


mcs

Math geeks and panel graphics unite
« Reply #21 on: October 02, 2004, 02:16:36 PM »
I think I cracked that one also. Here's another test:



Still no hard math involved, but I did have to look up something in the "Blue book"...

Could this "tool" be remotely useful to anybody? If so I could add PDF or other output formats.

Best regards,

Mikkel C. Simonsen

fum

Math geeks and panel graphics unite
« Reply #22 on: October 02, 2004, 03:50:08 PM »
completely useful.

this is the tool I'm working on building.

Here are the other features I intended:

Variable stroke size and length for the lines.

Variable scale names( the ability to create a list of titles that would appear next to the scales, so instead of 1-10, you could put in -60, -50.  Or close, closer, disco, for that matter).  Also the ability to vary font size for scale names.  Also the ability to specify the name on the inside or outside of the scale.

The ability to specifiy a start and finish offset ( this would allow the printing of scales for the Lorlin type switches that are 2X6 or 4X3).

The ability to create sub-ticks, and specify their length.

The ability to substitue a small circle instead of a line(for either major or minor ticks)

The ability to vary the degree of tick separation.

None of these features seem like rocket science, and to me, would make my panels "dead sexy".

This is where I'm headed with this, the way it's going, you're beatin me to the punch  :grin:


I did manage to figure out a way to save in PNG format from my app, as the JPG was really crap when rendered.

Regards

ju

rafafredd

Math geeks and panel graphics unite
« Reply #23 on: October 02, 2004, 04:02:55 PM »
You are aproaching perfection, MCS.

That´s really useful, at least for me...

It would be nice to have a downloadable .EXE version... Would this be possible? Or can I just save the web browser page and run it from my HD?

fum

Math geeks and panel graphics unite
« Reply #24 on: October 02, 2004, 04:11:56 PM »
He'd have to provide the cmd file that's being referenced as well, in order to run it locally, which means it's likely to only work on a pc for local stuff.

regards

ju

alk509

Math geeks and panel graphics unite
« Reply #25 on: October 02, 2004, 06:10:36 PM »
This is nice! How about a smal "X" to mark the center of the scale?

Peace,
Al.

Lest laziness get the best of you!

rafafredd

Math geeks and panel graphics unite
« Reply #26 on: October 02, 2004, 06:21:09 PM »
Yes, it would be needed for drilling.

mcs

Math geeks and panel graphics unite
« Reply #27 on: October 02, 2004, 06:55:47 PM »
Here's a small update.

Here's a new sample scale:



And here's the settings I used:



As you can see I updated the webpage with the new version...

The X in the center is coming right up :green:

Best regards,

Mikkel C. Simonsen

daArry

Math geeks and panel graphics unite
« Reply #28 on: October 02, 2004, 07:22:13 PM »
a very tidy app ;)

I dont spose u have/can do a eps to hpgl convertor do ya?

mcs

Math geeks and panel graphics unite
« Reply #29 on: October 02, 2004, 07:29:29 PM »
Quote from: "fum"
Variable scale names( the ability to create a list of titles that would appear next to the scales, so instead of 1-10, you could put in -60, -50.

This part is done (I think).

Quote
Or close, closer, disco, for that matter).

A bit more difficult because of the text placement, but not too difficult...

Quote
Also the ability to vary font size for scale names.

No problem - any font size you want :)

Quote
The ability to specifiy a start and finish offset ( this would allow the printing of scales for the Lorlin type switches that are 2X6 or 4X3).

A start and end angle you mean? No problem - I'll work on that tomorrow...

Quote
The ability to create sub-ticks, and specify their length.
The ability to substitue a small circle instead of a line(for either major or minor ticks)

Also quite possible - but you will end up with a lot of settings...

Quote
The ability to vary the degree of tick separation.

Que?

Quote
This is where I'm headed with this, the way it's going, you're beatin me to the punch  :grin:

I hope you don't mind - I'm just having a bit of fun...

Best regards,

Mikkel C. Simonsen


mcs

Math geeks and panel graphics unite
« Reply #30 on: October 02, 2004, 07:40:40 PM »
Quote from: "rafafredd"
It would be nice to have a downloadable .EXE version... Would this be possible? Or can I just save the web browser page and run it from my HD?

The .cmd file is a REXX script, so you can run it on anything with a REXX interpreter (from PC-DOC to mainframes - including Macs). But since it's a CGI script, you would have to run a local webserver also...

But you don't really need the software. Most of the "software" is actually included in the file you download. If you open the file in a text editor, you'll see this bit near the top:
Code: [Select]
% User supplied settings
/outrad 70 def
/inrad 60 def
/steps 11 def
/numsz -5 def
/startnum 25 numsz sub def
/text ( Testing 1 2 3 ) def
% End user supplied settings

Just change the numbers (and text), and you have a new scale.

Best regards,

Mikkel C. Simonsen

fum

Math geeks and panel graphics unite
« Reply #31 on: October 02, 2004, 07:57:48 PM »
As to variance of tick separation.  some stepped switches vary the angle of separation between clicks.  so you'll want the ability to specify how many degrees between steps ( this goes in tandem with the start and finish offset).  In this fashion, you can say, I need 6 steps, with 35 degrees space at the beginning, and 12 degrees between clicks.

As to you crankin this  out quicker, it doesn't bother me one bit.  To me I thought it was something useful that I need in a bad way, and that the overall group could benefit from.  You've either got more spare cycles, or a bigger noggin,  so I'm happy either way  :thumb:

So yes, what I had in mind had a lot of options, but would be very flexible.  You could create anything from what is on the front of an LA2A, to any of the other projects floatin around.

Oh, and have I told you recently that you rule :!:  :green:  :guinness:

on question.  Is the points scale completely relative in postscript?

Regards

ju

mcs

Math geeks and panel graphics unite
« Reply #32 on: October 02, 2004, 07:58:17 PM »
Quote from: "daArry"
a very tidy app ;)

I dont spose u have/can do a eps to hpgl convertor do ya?

You can convert it to HPGL using either CorelDRAW or pstoedit - but the result isn't that great.. I'll see if it can be improved though.

Best regards,

Mikkel C. Simonsen

fum

Math geeks and panel graphics unite
« Reply #33 on: October 02, 2004, 08:00:36 PM »
bump, we posted at the same time, want to make sure you caught that =)

mcs

Math geeks and panel graphics unite
« Reply #34 on: October 02, 2004, 08:40:53 PM »
Quote from: "fum"
As to variance of tick separation.  some stepped switches vary the angle of separation between clicks.  so you'll want the ability to specify how many degrees between steps ( this goes in tandem with the start and finish offset).  In this fashion, you can say, I need 6 steps, with 35 degrees space at the beginning, and 12 degrees between clicks.

I may be a bit slow (or I had too much wine at dinner), but I don't really understand your example. Is the spacing between the 6 steps 35° or 12° (or both)?

Quote
As to you crankin this  out quicker, it doesn't bother me one bit.  To me I thought it was something useful that I need in a bad way, and that the overall group could benefit from.  You've either got more spare cycles, or a bigger noggin,  so I'm happy either way  :thumb:

I have just solved a lot of strange problems in PostScript - like making invoices from an IBM S36 (meant for a matrix printer) look nice and "modern" on a colour laser...

Quote
Oh, and have I told you recently that you rule :!:  :green:  :guinness:

Thanks!

Quote
on question.  Is the points scale completely relative in postscript?

Points are used to define positions in "user space". A point is 1/72" (if you didn't know), and 0.0 is the lower left corner.

Best regards,

Mikkel C. Simonsen

mcs

Math geeks and panel graphics unite
« Reply #35 on: October 02, 2004, 08:47:46 PM »
Quote from: "mcs"
but the result isn't that great.. I'll see if it can be improved though.

I made some changes to the "scale drawing engine" :green:, and now the pstoedit produced HPGL file starts to look better.

This is what it looks like when imported into CorelDRAW:



Could anybody check the HPGL file in Front Panel Designer? Here it is: http://stiftsbogtrykkeriet.dk/~mcs/Scale3.plt

Best regards,

Mikkel C. Simonsen

daArry

Math geeks and panel graphics unite
« Reply #36 on: October 02, 2004, 09:18:16 PM »
Here's the result on importing hpgl into FPD:

http://notapplicable.co.uk/audiolab/mcs-scale.pdf

mcs

Math geeks and panel graphics unite
« Reply #37 on: October 02, 2004, 09:26:57 PM »
Quote from: "daArry"
Here's the result on importing hpgl into FPD:

That looks OK to me? I have never used FPD, so I don't know what it's supposed to look like...

If it's OK, I'll add HPGL output tomorrow.

Best regards,

Mikkel C. Simonsen

fum

Math geeks and panel graphics unite
« Reply #38 on: October 02, 2004, 11:21:51 PM »
Quote

fum wrote:
As to variance of tick separation. some stepped switches vary the angle of separation between clicks. so you'll want the ability to specify how many degrees between steps ( this goes in tandem with the start and finish offset). In this fashion, you can say, I need 6 steps, with 35 degrees space at the beginning, and 12 degrees between clicks.
Quote

mcs wrote:
I may be a bit slow (or I had too much wine at dinner), but I don't really understand your example. Is the spacing between the 6 steps 35° or 12° (or both)?



this is saying start at 35 degrees, and make 6 steps 12 degrees apart.  So 35, 47, 59, etc.

regards

ju

Mark Burnley

Math geeks and panel graphics unite
« Reply #39 on: October 03, 2004, 06:48:02 AM »
Wow,

You software guys can knock it out quick...

...I'd still be greasing my hole punches at this stage in a project!

 :wink:

Good work!

 :guinness:

Mark
O_O tape is life O_O


 

Related Topics

  Subject / Started by Replies Last post
14 Replies
4014 Views
Last post April 04, 2008, 06:01:36 PM
by okgb
11 Replies
2823 Views
Last post October 31, 2009, 07:49:33 AM
by dmlandrum
4 Replies
2451 Views
Last post January 21, 2011, 10:26:28 AM
by SimonB
7 Replies
3384 Views
Last post September 26, 2011, 05:30:22 AM
by Kingston