VS:GetVCenter: Difference between revisions

From Vectorworks Developer
Jump to navigation Jump to search
m (1 revision)
(explain for dummies like me)
Line 31: Line 31:
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
<remark>
<remark>
Returns the point which is in the center of the drawing window.
([[User:Orso.b.schmid|Orso]], 2015.03.01):  This is not to be confused with the center of the page. The view center is always the center of the open window, so if you resize the window or pan somewhere else, for example, the view center will move accordingly.


[sd 8/18/98]</remark>
</remark>


-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
Line 42: Line 42:
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
<version>
<version>
Availability: from VectorWorks8.0
Availability: from VectorWorks 8.0


</version>
</version>

Revision as of 03:51, 1 March 2015

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Procedure GetVCenter returns the VectorWorks document coordinates at the center of the drawing window.

PROCEDURE GetVCenter(
VAR centerX,centerY :REAL);
def vs.GetVCenter():
    return center

Parameters

center REAL Returns view center point.

Remarks

(Orso, 2015.03.01): This is not to be confused with the center of the page. The view center is always the center of the open window, so if you resize the window or pan somewhere else, for example, the view center will move accordingly.

Example

Template:WindowScreenSizes

Version

Availability: from VectorWorks 8.0