CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 14304:

Question

CAD 
 %  platform  category 
A
In the full version of AutoCAD, you can use the DATAEXTRACTION command to create a CSV report of this type. However, this command is not available in the LT version.

As a substitute, you can use the freeware LISP utility by ARKANCE - BlockCoords. With it you can generate a list of references of a specified block, including all its properties - both geometric properties (coordinates of the insertion point, scale, rotation. ..), as well as its attribute values, standard properties (insertion layer, color...), and special parameters of dynamic blocks - both geometric parameters (linear, angular, enumeration) and visibility states.

Download the LISP application BlockCoords from DL Download, load it into your AutoCAD using APPLOAD and type BLOCKCOORDS command. Select the sample block being reported and all the references of that block you want to export (e.g. All - for all). The application will create a .CSV file in the current working folder (with the same name as the DWG drawing) with a list of predefined properties from each block instance. This can then be easily opened e.g. in MS Excel.

Example of output:

X,Y,Z,"Layer","BlkID","Visibility1"
2618.603164,1648.992874,0,"Interior","6","Opened"
2626.207808,1649.933546,0,"Exterior","5","Opened"
2636.270122,1646.061134,0,"Exterior","4","Opened"
2640.223405,1634.706376,0,"Interior","3","Closed"
2640.223119,1628.098149,0,"Interior","2","Closed"
2638.393498,1616.722316,0,"Interior","1","Opened"

The list of properties (names of attributes, dynamic parameters, internal properties found via dumpallproperties) that you want to export can be preset in the indicated place directly in the LSP text file of this application:

(setq __BCextraproperties '( 
  "BlkID"
  "Visibility1"
))

See also a simlar utility ATTOUT/ATTIN with the option of reading back the modified attributes and properties into a DWG.

ACADLTACADACADMCivil3D
100% *CAD
4.11.2024    2347×  
Share the tip:
Digg it! Del.icio.us Facebook Twitter Google bookmark Technorati StumbleUpon
applies to: ACADLT · AutoCAD · AutoCAD Mechanical · Civil 3D 3D ·

See also:
Tip 14361:Extended ATTOUT/ATTIN for block attribute management in Excel (also for LT).
Tip 13784:Export block coordinates to a table. How to use the DATAEXTRACTION command in AutoCAD LT?
Tip 6289:How to export X-Y-Z coordinates of AutoCAD drawing blocks?
Tip 4780:How to measure polyline length in AutoCAD LT?


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
  



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


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