From Vectorworks Developer
Revision as of 00:41, 27 June 2021 by AHanson
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionFunction HWidth returns the width of the referenced object.
h :HANDLE) : REAL;
def vs.HWidth(h): return REAL
h HANDLE Handle to object.
RemarksObserved in 2021: Despite the OIP Width and Height fields flipping values when an object such as a rectangle is rotated 90/-90 degrees, vs.HWidth and vs.HHeight will always return the initial width and height values of the unrotated object, which can lead to unexpected values being returned in some instances. Unsure if this would be considered a bug or a feature...? -AMH (2021.06.26)