Grasshopper

algorithmic modeling for Rhino

Hi,

I would like to laser engrave barcodes to my unfolded structure parts, for easier identification.

I have my ID numbers of the parts in integers.

Is it possible to write a barcode converter in grasshopper which converts integers into differents stripes (barcodes) to be engarved or printed?

Thanks for any help in advance.

Views: 2068

Replies to This Discussion

Hi Balázs,

Of course it is possible. Just it would require a knowledge of what each character represents in terms of number of lines, thicknesses, mutual distances...

An easier way to do this in a word processing application or Office package is to just use the appropriate bar code font.
I tried using one of those bar codes fonts (I think it was "code 128") some time ago, in Grasshopper 0.8.0066 version (at least I think it was that one). I simply copied the integers into Panel and tried to change the font to "code 128". But Grasshopper did not support the font.

Maybe you could try checking whether something changed at newest 9+ versions?

Or use a different bar code font?

THanks for the idea, however I am not sure its possible to connect GH to the OFFICE package in an automated way. Actually I want to generate the barcodes within Grashopper.

I was just making an example of how you could convert your numbers into the bar code by simply changing the font in Word or Excel. You can connect Excel to Grasshopper with a few custom components (gHowl, Lunchbox...) but it seems the Grasshopper does not support this kind of font. Or at least it was at 0.8.0066 version.

Please specify which kind of barcode exacly ? http://en.wikipedia.org/wiki/Barcode#Types_of_barcodes

Was about to post the wiki-link :D

Once you know the specifics of encoding, it's a pretty straight forward task of pattern culling.

It would be a nice idea to make a gha with some most popular standards... we may call it zebra (so obvious)

Example without Quiet zones nor Checksum  (code128A):

Nice!!!

On my GH screen I cant see those little icons on the GH elemenets. How can I switch to that?

Display->Draw Icons

With checksum:

(128B)

C#: A = System.Text.Encoding.ASCII.GetBytes(x);

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service