AutoLISP (or Macro) need to delete a selection of lines

AutoLISP (or Macro) need to delete a selection of lines

david.faunce
Enthusiast Enthusiast
832 Views
1 Reply
Message 1 of 2

AutoLISP (or Macro) need to delete a selection of lines

david.faunce
Enthusiast
Enthusiast

I need to programmatically delete a certain selection of lines. I *think I have two options here (1) Using Macros (2) Using LISP

 

1) Using macros. I recorded the macro and it worked great. The problem is that I need to save this macro in a shared network folder.

      Example:   P:\myMacros\new_macro.actm

 

     I want to call this macro via lisp but I cannot seem to call a macro from a folder outside of AutoCAD's "support" folder.

 

     This works  -->   (command "new_macro")    but it calls the macro from the user's C: drive. I need to call it from the shared folder. 

 

     I have already tried  (command "P:/myMacros/new_macro")   but I get an error that it is an unknown command

 

 

2) Using AutoLISP.  I thought about using LISP to draw a window and then delete the elements, but in some cases the lines cross other lines that do not need to be deleted. So now I'm lost in how to delete a certain selection of lines.

 

Does anyone have any suggestions?

0 Likes
Accepted solutions (1)
833 Views
1 Reply
Reply (1)
Message 2 of 2

Ranjit_Singh
Advisor
Advisor
Accepted solution

Add the folder under options Actions Recording File Location Options.png

It should also be pretty easy to program through LISP.