(command "STRETCH" ???? "" <base point> <second point>)
It doesn't accept the input of entsel, nentsel and ssget.
Thanks in advance.
Hi Harry,
Try collecting the entities in a selection set first;
(SETQ ss(SSGET "c" "10,10" "100,100"))
(COMMAND "stretch" ss "" point1 point2)
Cheers,
Lu
;-----------------------------------------------------------------------
; When all else fails, read the book. But there ain't none no more! <g>
; CAD\Tek web site: http://www.cad-tek.com
;-----------------------------------------------------------------------
Harry, here a routine I have that I use for scheduling. The routine
inserts a block, explodes, then streached. I control the second point
but you should be able to pre-set the second point. . .
Good luck
(defun c:add_marker (/ id_cmdecho p1 cx cy cz p2 p3 p4)
(prompt "\nCommand: ")
(setq id_cmdecho(getvar "cmdecho"))
(setvar "cmdecho" 0)
(setq p1(getpoint "Get Marker Insertion Point. . "))
(setq cx(car p1))
(setq cy(cadr p1))
(setq cz(caddr p1))
(setq p2(list (+ (atof "0.05") cx) (- cy (atof "0.04")) cz))
(setq p3(list (+ (atof "0.15") cx) (+ cy (atof "0.04")) cz))
(setq p4(list (+ (atof "0.125") cx) cy cz))
(command"._insert" "*marker" p1 "1" "0")
(prompt "\n ")
(command"._stretch" "SI" "C" p2 p3 p4)
(setvar "cmdecho" id_cmdecho)
(princ)
)
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
In article <01bc765a$fdd8a860$e28443c1@cadit>, ca...@worldaccess.nl
says...
> Does anyone know what kind of input the STRETCH command needs?
> (command "STRETCH" ???? "" <base point> <second point>)
> It doesn't accept the input of entsel, nentsel and ssget.
Harry,
Gather the entities you want to stretch in a selection set. (ssget ....)
In addition, just like from the command line, the only entities in a
selection set that stretch will process are those selected with a
Crossing or Crossing Polygon.
(ssget "C" bla bla) -or- (ssget "CP" bla bla)
Sincerely,
--
Y-------------------------------------------------------------------+
| Darren J. Young | Minnesota CADWorks, Inc. |
| dyo...@mcwi.com | P.O. Box 7293 |
| mc...@compuserve.com | St. Cloud, Minnesota 56302-7293 |
| http://www.mcwi.com | Phone: 1-320-654-9053 |
| CAD/CAM/CNC - Drafting Design Customization Training Programming |
0,0-----------------------------------------------------------------X
Email addresses not to be sold or used for unsolicited advertisements