Jump to content

Move command in Autocad VBA


Recommended Posts

Posted

I am new to autocad 2007 as well as autocad vba.i would like to move a line from one place to another place in a drawing using autocad VBA.

 

I found the coding 'object.move'.but i dont want like that. it should ask the destination point where i want.

 

(but the autocad move command gets the object with cursor wherever the mouse goes.)

 

how to do this thru vba coding?? how to work like move command??

 

please help me.

Posted

This thread may get more answers if moved to the AutoLISP & VBA customization forum. - see if you can get a moderator to move it for you :thumbsup:

Posted

which thread?? where to find it??

also i am beginner for www.cadtutor.net.

 

please give the code once more so that i can understand easily...

 

this is my humble request sir.

Posted

There are several fora on this site. Lee was suggesting that your question is more of a VBA one than a beginners one so you would be better off asking in this http://www.cadtutor.net/forum/forumdisplay.php?f=21 section.

 

I am not sure what you are after. I read it that you want to see the line attached to your cursor, which is natural in AutoCAD but you want to use VBA where I don't think it is that simple to do. Why don't you want to use AutoCAD to do this?

 

Forgot to say - now that this is here DON'T start a new thread there. It gets confusing with the same question asked in two places but don't be surprised if somebody moves this request into that section.

Posted

i have created custom toolbar button in my autocad. when i click it the object (line,rectangle,circle...) will be pasted in drawing screen.

 

but when i try to select the destination point, the object has to be shown with my mouse pointer. this is the requirement. is it possible or not?? i am quite comfortable with VBA bcoz i know vb.

 

tats y i am asking for vba code.

Posted

Thread moved in the VBA forum.

Welcome Cadtutorseenu!

Posted
i have created custom toolbar button in my autocad. when i click it the object (line,rectangle,circle...) will be pasted in drawing screen.

 

but when i try to select the destination point, the object has to be shown with my mouse pointer. this is the requirement. is it possible or not?? i am quite comfortable with VBA bcoz i know vb.

 

tats y i am asking for vba code.

to the best of my knowledge, it is possible but not easy. I once saw a way on another site which relyed on another rotine running in the background. It slowed my computer up so much it wasn't worth using. Things may have moved on though.

Posted

I'm not sure I quite understand the request - and I may be missing something obvious here.

 

Are you saying you want to replicate the "move" command in ACAD, but without ghosting the objects to be moved?

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