r/AutoCAD•
Tsunimo

Automating mapimport

I'm trying to write an autolisp application to mostly automate the mapimport command. I'm importing the locations of street lines that I exported from a separate dwg as shape files.

Using the -mapimport command I can get the lisp app to set the correct layers, but without the dialog box of a normal mapimport, I can't figure out how to define a spatial filter within the lisp file. Or if there is any other way to trim the importing data within a defined polygon I'd love to know.

Thanks for any help!

Posted Feb 16, 2023, 7:05 PM UTC

23
zippitydoodiddly•

Sounds like a neat idea. You'll have better luck in the LISP section of the Autodesk forums. Lots of experts on there.

2
MaritimeMuskrat•

maybe use mapclean command as part of the solution? or extrim? a bit rudimentary.. but its a thought.

2
[deleted]•

[removed]

1