priyanka_mehta Posted January 14, 2009 Posted January 14, 2009 Hi all, I want to break my polyline at several point where it intersects with other lines. I actually wanted to do it using VBA but since I learnt the only way to break a line using VBA is creatin new lines by collecting the endpoints of intersecting lines. This unfortunately does not solve my purpose because my polyline is a curve and by creating line using endpoints, i loose my curve So i m trying to call "breakobjects.lsp" through VBA. Is there a way to call .lsp at a click of a button. Any help would be much appreciated ! Quote
brawleyman Posted January 14, 2009 Posted January 14, 2009 Hi! I have done this lots of times for my LISP commands. I personally am a fan of using the macro command buttons because sometimes you just can't remember the keystrokes for all your LISP's, especially if you don't use them often. You can create a custom command macro in your CUI file. Use this in the macro line: ^C^C^P(cond ((null c:XX) (load "breakobjects")) (T (princ))) ^C^CXX; "XX" is where you would put the key strokes for whatever it is that you type to start your command. I haven't really used VBA much, but I like using Macro since all of the other buttons in CAD are based from it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.