ilovehuizi 发表于 2004-10-17 14:35:00

请问斑竹 和各位大虾 “橡皮筋”功能如何实现

具体说在模型空间画了一个三角形,当我移动其中一个顶点时,与该顶点相邻的两个边也随之移动。把顶点移动到需要位置后,按下鼠标,该两条边也随之确定。


小弟先谢了,斑竹给个思路吧

alin 发表于 2004-10-17 16:13:00

夹点的功能就是这样的

ilovehuizi 发表于 2004-10-17 19:29:00

解释一下可以吗

楼上的能否说的详细点 拜托了

alin 发表于 2004-10-18 09:40:00

<P class=body>Grips are small, solid-filled squares that appear at strategic points on objects selected with a pointing device. You can drag these grips to stretch, move, rotate, scale, or mirror objects quickly.


<P class=body>When grips are on, you select the objects you want before entering a command, and then you manipulate the objects with the pointing device.


<P class=figure_anchor_0><IMG src="mk:@MSITStore:C:\Program%20Files\Autodesk%20Map%202004\help\acad_aug.chm::/online_art/auw0517u.gif" align=absBottom>


<P class=body>To use grips, select a grip to act as the base point for the action. Then select one of the grip modes. You can cycle through these modes by pressing ENTER or SPACEBAR. You also can use shortcut keys or right-click to see all of the modes and options.


<P class=body>You can use multiple grips as the base grips to keep the shape of the object intact between the selected grips. Hold down SHIFT as you select the grips.


<P class=body>For quadrant grips on circles and ellipses, distance is measured from the center point, not the selected grip. For example, in Stretch mode, you can select a quadrant grip to stretch a circle and then specify a distance on the command line for the new radius. The distance is measured from the center of the circle, not the selected quadrant. If you select the center point to stretch the circle, the circle moves.


<P class=body>When a 2D object lies on a plane other than the current UCS, the object is stretched on the plane on which it was created, not on the plane of the current UCS.


<P class=body>You can limit the display of grips on selected objects. The GRIPOBJLIMIT system variable suppresses the display of grips when the initial selection set includes more than the specified number of objects. If you add objects to the current selection set, the limit does not apply. For example, if GRIPOBJLIMIT is set to 20, you can select 15 objects and then add 25 objects to the selection and all objects display grips.

<A name=424908 nid="9"></A>
<H5 class=heading_mid>Stretch with Grips </H5>
<P class=body>You can stretch an object by moving selected grips to new locations. Grips on text, block references, midpoints of lines, centers of circles, and point objects move the object rather than stretching it. This is an excellent method for moving block references and adjusting dimensions.

<A name=424910 nid="11"></A>
<H5 class=heading_mid>Move with Grips </H5>
<P class=body>You can move objects by the grip selected. Selected objects are highlighted and are moved the direction and distance of the next point location you specify.

<A name=424912 nid="13"></A>
<H5 class=heading_mid>Rotate with Grips </H5>
<P class=body>You can rotate selected objects around a base point by dragging and specifying a point location. Alternatively, you can enter an angle value. This is an excellent method for rotating block references.

<A name=424914 nid="15"></A>
<H5 class=heading_mid>Scale with Grips </H5>
<P class=body>You can scale selected objects relative to a base point. Increase the size of an object by dragging outward from the base grip and specifying a point location, or decrease the size by dragging inward. Alternatively, you can enter a value for relative scaling.

<A name=424916 nid="17"></A>
<H5 class=heading_mid>Mirror with Grips </H5>
<P class=body>You can mirror selected objects across a temporary mirror line. Turning Ortho on helps you specify a vertical or horizontal mirror line.

ilovehuizi 发表于 2004-10-18 10:17:00

请问斑竹如何用编程实现呢?

mkhsj928 发表于 2004-10-18 11:09:00

用(grread)函数

liuyiyao01 发表于 2004-10-18 16:17:00

GRREAD是lisp函数,VBA不能用, 我曾经写过一个用VBA调用LISP的程序,使用GRTEXT和GRDRAW功能时都可以,就是GRREAD时,一使用鼠标滚轮就死机,哪位高手请指点一下

ilovehuizi 发表于 2004-10-18 17:55:00

斑竹 可否给个用vba写的程序呢?小弟 先谢了~

ilovehuizi 发表于 2004-10-18 18:06:00

斑竹 我需要实现如下功能,如图片所示,当我移动其中一个顶点圆时,和该圆相邻的两条边能随之移动,当我按下鼠标后,两条边随之确定。即 ,该圆相当于夹点!移动夹点 可以调整图形。


小弟 先谢了,拜托斑竹给个 思路吧

ilovehuizi 发表于 2004-10-18 18:13:00

C:\Documents and Settings\Administrator\桌面\1.bmp
页: [1] 2
查看完整版本: 请问斑竹 和各位大虾 “橡皮筋”功能如何实现