CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 17081

CAD tip CAD tip # 5628:

   
Question CAD 
 %  platform  category 
Q - question

Automatic drawing labels with barcodes.

A - answer With the AutoCAD fields functionality, you can add automatic labels to your drawing which will display the current drawing name and drawing title. If you have a barcode text font installed in Windows (on your PC), these labels can also have a form of a barcode area.

Start the drawing properties command (DWGPROPS) and assign a title to your drawing - e.g. the job number, drawing number, etc. (CZ version shown here, MyDrawing.dwg, title="123-456-789"):

Drawing properties

Drawing properties (incl. any added custom properties) can be referred in dynamic text fields. So you can use the FIELD command (or fields in block attributes) to transfer the drawing properties into drawing texts. The most useful drawing properties can be found in the Document category of field codes.

How to transfer all of this to barcodes? Install a barcode TrueType font (e.g. this free Code39 TTF) to your Windows fonts (Control Panels > Fonts > Add). Define a new text style using this font and simply write a text (or use a text field, uppercase only) in this text style - a barcode will be created.

You can find the required fields and text styles predefined in the sample BarCoder block downloadable from the "CAD Blocks Catalog" (it uses duplicate labels - one in barcode and another one in a plain text style). Have the barcode font installed and just insert this block to your drawing (or template) - if you rename your drawing the barcode will automatically update:

BarCoder

Of course you can use a similar approach also in Inventor or Revit.
ACADADTCivilACADMACADEInventorRevit
100% Win  CAD 
20.6.2007    38368×   FAQ  

See also:
Tip 13703:How to generate a dynamic QR code or Data Matrix on an Inventor drawing?
Tip 7667:Automatically generated QR codes for DWG drawings.
Tip 31:How to draw barcode in AutoCAD drawings?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist