Jump to content

Need Block Insertion Lisp


Vineet Babbar

Recommended Posts

Hi All,

 

I need a lisp command where i would like to insert the two block in the encircled area.

 

Case: In this circle the two lines that are on the same layer but with the different colors showing the different sizes of pipe as shown. I need to insert two particular blocks from my block list taking the consideration of the colors of these two different pipes (which are on the same color).

 

Your response will be highly appreciated.

New Picture.jpg

Link to comment
Share on other sites

You need to do a few things select your objects then pull them apart for two reasons 1 is for colour second is to work out closest end for the block.

 

You could have more than two items selected VL code is the way to go vl-get-object colour & vlax-curve-getcloset-point-to I am still old school lisp so will let some one else post VL code.

Link to comment
Share on other sites

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...