Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Barcode Lisp

12 REPLIES 12
Reply
Message 1 of 13
Ron-C
2418 Views, 12 Replies

Barcode Lisp

I need to add barcodes to autocad drawings
I have a Lisp file but it will only do 2 numbers.
I need to have it do 4 numbers
I have never done Lisp before.......and looking at this file
I can't fiqure out what part of the code would need to be
added to make it do 4 numbers.
Any one have one that will do 4 numbers?
Is there anyone here able to help me out and make this one
do 4 numbers.
Thanks
Ron
12 REPLIES 12
Message 2 of 13
Kent1Cooper
in reply to: Ron-C

I don't know, but see whether this gets you to something without the 2-number limitation:

http://discussion.autodesk.com/forums/message.jspa?messageID=6236229&tstart=0

--
Kent Cooper
Kent Cooper, AIA
Message 3 of 13
devitg
in reply to: Ron-C

This lisp can make a barcode , as the same seen on all products.
I do not understand what do you mean with more than 2 number.
It can make 2 number up to 5 digits each.
See dwg in 2008.
Message 4 of 13
Ron-C
in reply to: Ron-C

DEVITG

Sorry I jumped the gun on this one..............
I thought the Lisp program was asking for the same 5 digits each time
Rough-day.....
Thanks guys !
Ron
Message 5 of 13
devitg
in reply to: Ron-C

Hi Kent
It is the same , as posted by original poster.


Message 6 of 13
Ron-C
in reply to: Ron-C

DEVITG


Could you please run that barcode Lsp and see if it makes a difference
if you are zoomed-in close to the size of the barcode, or if you are zoomed out
say 10 X. The barcode should have 3 different width lines when made.
If I'm zoomed out a small amount it will produce all thin lines.
If I zoom out 10x it does not print all the lines, or the lines get all mixed-up.

Thanks
Ron
Message 7 of 13
Kent1Cooper
in reply to: Ron-C

That sounds like you're running it with Object-Snap modes in effect. I didn't see anything in the routine to account for that. Try turning running Osnap off, and see whether it works right. If so, and if you don't know how to add code to handle that, you can find enormous numbers of routines on the Discussion Group that save the current OSMODE setting, turn Osnap off for the routine to run, and restore its value when the routine is done.

--
Kent Cooper


ron-c wrote...
....it makes a difference if you are zoomed-in close to the size of the barcode, or if you are zoomed out say 10 X. The barcode should have 3 different width lines when made.
If I'm zoomed out a small amount it will produce all thin lines.
If I zoom out 10x it does not print all the lines, or the lines get all mixed-up.
Kent Cooper, AIA
Message 8 of 13
Ron-C
in reply to: Ron-C

Kent

WOW ! you nailed it !
I had 0snap turned on so I could locate the barcode in a certain spot.
With the Osnap off .....the routine runs fine !
Thanks for the info ........I can go home for the weekend without that
hanging over my head ! I need to produce 1600 special name tags
with Barcode info ..( I know they make programs for this, but the labels
are special design I did in Autocad, and they wanted to add the barcode
info to cubicle name tags

Thanks Kent
Have a Great Weekend !
Message 9 of 13
Kent1Cooper
in reply to: Ron-C

After you've been poking around here long enough, running Osnap becomes the first thing you think of when some routine is putting things in unexpected places. You *could* leave Osnap on at the beginning, so you can snap to your "certain spot" with it, and after that point in the routine, but before it actually draws anything, put in the code to turn Osnap off.

--
Kent Cooper
Kent Cooper, AIA
Message 10 of 13
adamseew
in reply to: Kent1Cooper

As for barcode question, here is my favorite barcode site. Share it with you all. You may find useful info there.

Message 11 of 13
cindy313
in reply to: adamseew


@adamseew wrote:

As for barcode question, here is my favorite barcode site. Share it with you all. You may find useful info there.


thanx for shring this resource ,i'll try it  later

Message 12 of 13
peterwalll
in reply to: cindy313


@cindy313 wrote:

@adamseew wrote:

As for barcode question, here is my favorite barcode site. Share it with you all. You may find useful info there.


thanx for shring this resource ,i'll try it  later


Hi, cindy313.

Have you checked it? How was it?

Message 13 of 13
piyush.parihar24
in reply to: adamseew

Hey All,

Can anybody please brief me about what is Barcode standardization in AutoCAD i am new to this concept

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost