.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionGets the extents of a Plugin object or symbol that is in a wall. Returns the object's start point and end point along the wall line.
VAR startPtX,startPtY :REAL;
VAR endPtX,endPtY :REAL) : BOOLEAN;
def vs.GetObjExtentsInWall(symH, wallH): return (BOOLEAN, startPt, endPt)
symH HANDLE wallH HANDLE startPt REAL endPt REAL
RemarksThis currently fails on Round Walls: the subobject "symH" is found, but no points are returned. (VW 13.01+).
The values returned are relative to the wall start. It works as expected on symbols and linear objects. If the object is a rectangular plug-in, the values returned are a little unexpected:
- "startPt" will be the center of the object,
- "endPt" corresponds to start point + the width of the plug-in object.
Thus endPt corresponds to the center of the plug-in object, if it has an horizontal flip in wall.
Julian [2009/08/30] The values returned are in reference to the drawing origin, so you need to adjust those by subtracting the wall start point which can be obtained using GetSegPt1().