Jump to content

Recommended Posts

Posted
(setq plent (entsel "\nPick pline near end ")))
(setq pt (cadr plent))
(setq co-ord (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10)) (entget (car plent)))))
(setq obj (vlax-ename->vla-object plent))
 (setq pt1 (vlax-curve-getstartPoint obj))
 (setq pt2 (vlax-curve-getendPoint obj))
 (setq d1 (distance pt pt1))
 (setq d2 (distance pt pt2))
 (if (> d1 d2)d
 (setq co-ord (reverse co-ord))
)

To reverse direction of a line or pline, "It is a task that takes 5 seconds." No its instant.

 

 

Posted

TBH devito code meets my needs, for what i send big thanks once more. One thing I'd like to be added is to let me change distance between blocks

Posted
2 hours ago, HypnoS said:

TBH devito code meets my needs, for what i send big thanks once more. One thing I'd like to be added is to let me change distance between blocks

Did you bother to try my code? It asks for a line and distance between blocks.

Posted

@SLW210  I tried yours but I cant get it to work, I think Im missing something. "Enter the tag  to use" What tag am I supposed to type in? Attribute name or value does not work.

Posted
6 hours ago, HypnoS said:

TBH devito code meets my needs, for what i send big thanks once more. One thing I'd like to be added is to let me change distance between blocks

It ask you to set such distance 

image.png.20461a13fff758cd04d524ed32e3b6f0.png

Or you mean to set distance for each block at the straight line?

 

 

Posted
8 hours ago, HypnoS said:

@SLW210  I tried yours but I cant get it to work, I think Im missing something. "Enter the tag  to use" What tag am I supposed to type in? Attribute name or value does not work.

The actual TAG name, in the drawing you posted it is ADRES

Posted

@devitgYeh! Distance between blocks on a new straight polly.

@SLW210Sorry but typing block atribute or even clicling on it seems to no work for me :|

Enter the tag to use: ADRES
; error: bad argument type: numberp: ---

 

Posted

I'll look into that, I might have posted the wrong one.

 

I was working on one to just use the block clicked assuming a single attribute.

Posted
On 7/24/2025 at 1:26 PM, HypnoS said:

Yours works great. the only thing I would like to add is to set a distance between blocks on the line, just like the copyblockstocurve has.

@HypnoS Find attached

cpy-blk-2-poly-01.lsp

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