Jump to content

Recommended Posts

Posted

Hey,

 

I drew a polyline (vla-object) and now I want to move/offset it from a

base-point to a target point. Can anyone tell me how to LISP it please ?

 

Thanks fellows

Posted

I would if I could.. but I'm a novice myself with Lisp. That is why I bother you with all those questions.

Posted

I believe you misunderstand @Tharwat complaints; is about the lack of feedback from your side on the said previous thread. Just test the code provided as example and tell him/her if that is or not what you were looking for. Mere thanks for other’s effort don’t hurt, also. This way people involved in this Forum will know that their efforts weren't in vain.

Don't be afraid, nobody is expecting you to provide solutions if don't have (yet) the required knowledge.

Posted

If you have in mind specific OFFSET distances which you frequently need, perhaps it would be a good idea to create

some custom MULTILINE styles incorporating the offset, in that way when you draw it, it is simultaneously offset.

 

As mentioned by Tharwat and Mircea, assistance is freely given by forum members.

I should hope that a little feedback and common courtesy is not too much to ask? :|

Posted
Hey,

 

I drew a polyline (vla-object) and now I want to move/offset it from a

base-point to a target point. Can anyone tell me how to LISP it please ?

 

Thanks fellows

 

"Move" would have a different effect than "offset", so which one do you prefer? or both?

Posted

Thanks guys,

 

I have tried offseting before but did not get satisfactory results. Perhaps I didn't use it correctly but in any case my aim is to use the move method. Does anyone have references on how to lisp movements of objects from basepoint to another?

Posted

vla-object

(vlax-invoke (vla-copy [i]obj[/i]) 'Move pt1 pt2)

 

ename or selection sets

(command "_move" [i]selset[/i] "" "_non" pt1 "_non" pt2)

Posted
Ok thanks it solved my problem

 

Good for you, Glad it helps

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