Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 19
Anonymous
193 Views, 18 Replies

grvecs??

Hello

Just like when you insert a block i want a picture to follow the cursor, but
i don't want to be in the insert command.
Sombody has any ideas?

Best regards,
Paul
18 REPLIES 18
Message 2 of 19
BillZ
in reply to: Anonymous

What kind of "picture" are you talking about?
Message 3 of 19
Anonymous
in reply to: Anonymous

a representation of just watever the application
has to draw, so no real "picture"


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
What
kind of "picture" are you talking about?
Message 4 of 19
BillZ
in reply to: Anonymous

I think what you are looking for can be quite complicated.
AutoCAD uses dragemode to show a "ghost" image of whatever you are copy or moving from one location to another. This is accomplished by keeping track of the cursor location (grread function), and drawing an image of the object (with xor ink) every time the cursor moves from one location to another. It can be done. I have used this method in an ellipse program so you can see where the ellipse will be drawn as you move the cursor but before you pick the final axis point.
Message 5 of 19
Anonymous
in reply to: Anonymous

Jim Fisher published an excellent example of how to accomplish this in the
March 2000 of the AUGI Paperspace newsletter. No doubt the issue is still
available on the AUGI website, http://www.augi.com

Something like this will work:

;;monitor the pointing device and return dragmode coords until a point is
picked
(setq run T)
(while run
(while (= 5 (car (setq drag (grread T 5 1))))
(dragfunc (cadr drag) )
)
;;when a point is actually picked
( if (= 3 (car drag))
(progn (setq inspt (cadr drag) run nil) (redraw))
)
);while
;;call function to draw the actual entities
(drawsomething inspt )

your dragfunc will contain calls to grvecs to display the temporary vectors,
using local, not global, coordinates.

Keep in mind that OSNAP is disabled while grread is active, so for some
purposes this method may not be the best solution.

Other than that, look up grread & grvecs in the help files.

HTH
Message 6 of 19
Anonymous
in reply to: Anonymous

I did not thougth it would be easy, but maybe
someone had a good suggestion for it


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
I
think what you are looking for can be quite complicated.
AutoCAD uses
dragemode to show a "ghost" image of whatever you are copy or moving from one
location to another. This is accomplished by keeping track of the cursor
location (grread function), and drawing an image of the object (with xor ink)
every time the cursor moves from one location to another. It can be done. I
have used this method in an ellipse program so you can see where the ellipse
will be drawn as you move the cursor but before you pick the final axis
point.
Message 7 of 19
Anonymous
in reply to: Anonymous

The attached htm will introduce you to some neat arx routines from Frank
Whaley. The fewl-ss-drag-move function will interest you.
--
Cliff

"Paul" wrote in message
news:EB209BA119B5C798FC1FE8592B95CD11@in.WebX.maYIadrTaRb...
| Hello
|
| Just like when you insert a block i want a picture to follow the cursor,
but
| i don't want to be in the insert command.
| Sombody has any ideas?
|
| Best regards,
| Paul
|
|
Message 8 of 19
Anonymous
in reply to: Anonymous

I didn't realize Frank was ready to go public yet, kewl fewl for us fwels
:-)
--
Bobby C. Jones
http://www.acadx.com
Message 9 of 19
Anonymous
in reply to: Anonymous

I hope he will step in with any comment.
--
Cliff

PS: Anne, I swear that htm was only 14K on my machine!
Message 10 of 19
BillZ
in reply to: Anonymous

Here is a crude example, (kinda fits some of the advertising around here.) If you ever get it working good, send me a copy.
BillZ
Message 11 of 19
Anonymous
in reply to: Anonymous

He's been kinda scarce lately. He must have one of those real jobs were you
have to do work and stuff.
--
Bobby C. Jones
http://www.acadx.com
Message 12 of 19
Anonymous
in reply to: Anonymous

Actually, he is (was) on a 6 week vacation...

--
R. Robert Bell, MCSE
http://www.acadx.com


"Bobby C. Jones" wrote in message
news:BF0B6FD4B897C808CB42FA2C9B5DF93A@in.WebX.maYIadrTaRb...
| He's been kinda scarce lately. He must have one of those real jobs were
you
| have to do work and stuff.
| --
| Bobby C. Jones
| http://www.acadx.com
|
|
|
Message 13 of 19
DWP
in reply to: Anonymous

Cliff,
I cannot access the .htm you posted.
Could you post to CF or is there another
way to access the file?
Thanks,
DWP
Message 14 of 19
Anonymous
in reply to: Anonymous

Zipped and sent.
"DWP" wrote in message
news:f08f807.11@WebX.maYIadrTaRb...
| Cliff,
| I cannot access the .htm you posted.
| Could you post to CF or is there another
| way to access the file?
| Thanks,
| DWP
|
Message 15 of 19
Anonymous
in reply to: Anonymous

Also, if you have the express tools, you already have the functions.
See my post Ghosting/Dragging by Using Express Tools Functions 8/29/01

Doug

"Cliff Middleton" wrote in message
news:301D11D28611AE35D6F5635F28AAAC28@in.WebX.maYIadrTaRb...
> Zipped and sent.
> "DWP" wrote in message
> news:f08f807.11@WebX.maYIadrTaRb...
> | Cliff,
> | I cannot access the .htm you posted.
> | Could you post to CF or is there another
> | way to access the file?
> | Thanks,
> | DWP
> |
>
>
Message 16 of 19
BillZ
in reply to: Anonymous

Actually, here is a better example.
Message 17 of 19
Anonymous
in reply to: Anonymous

I know how to do it with grvecs but you can't use
for instance arcs or circles, or can i??


style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
Actually,
here is a better example.
Message 18 of 19
BillZ
in reply to: Anonymous

Just do the math...
Message 19 of 19
DWP
in reply to: Anonymous

KEWL!
Thanks again for the info.,
Doug

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost