Jump to content

Load Breakobject.lsp through VBA


Recommended Posts

Posted

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 !

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...