- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a LISP command to automatically import multiple blocks at set coordinates and populate an attribute based on data in a CSV file. I'm running AutoCAD LT 2027.
The CSV file has 3 columns - Block Attribute (ADDRESS), X-coordinate, and Y-coordinate.
To run the command, I load the LISP file and type in the command 'IBDETECTOR', then select the CSV labelled 'Import Data'.
However, when I run the command, it sometimes messes up the coordinates and bunches the blocks together, example shown in screenshot below.
The bottom block should be at coordinates 195000, 12000, but is actually at 195000, 14700. The top block has imported correctly at coordinates 195000, 15000.
The strange thing is that if I re-do the command, it sometimes imports the devices at different coordinates.
DWG, LISP and CSV files attached.
Appreciate any advice on how I can get this to import all blocks at correct coordinates as per the CSV!
Solved! Go to Solution.