From Vectorworks Developer
Revision as of 03:18, 20 June 2015 by Orso.b.schmid
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionCreates an in-document image of the specified worksheet. The specified point location is the top left corner of the image object.
locationX,locationY :REAL) : HANDLE;
def vs.CreateWSImage(worksheet, location): return HANDLE
worksheet HANDLE Handle to worksheet. location REAL X-Y coordinate location of image object.
Remarks(Orso, 2015.06.20): It is possible to have any number of worksheet images on drawing, each on a different location. If you use this routine and you already have some images of the chosen worksheet on drawing, the routine will shift the last in the stacking order, placing it at the chosen coordinates. Very tricky.
You must check for the presence of other worksheet images before trying to create a new one.