Martin Crawford Posted March 16, 2018 Share Posted March 16, 2018 Is it possible to place a worksheet in a drawing, do you do this similar to a placing a symbol? Thanks Martin Quote Link to comment
twk Posted March 16, 2018 Share Posted March 16, 2018 http://developer.vectorworks.net/index.php/VS:Function_Reference#Worksheets http://developer.vectorworks.net/index.php/VS:CreateWSImage def vs.CreateWSImage(worksheet, location): return HANDLE from the Dev Wiki. location is 2DPoint location on the drawing. eg: ws_name = "Worksheet-1" # this is an example, replace with name of your worksheet you want placed on your drawing ws_def_handle = vs.GetObject(ws_name) # grab a handle to the worksheet definition in your resource manager location = (0,0) # places center of drawing ws_handle_on_dwg = vs.CreateWSImage(ws_handle, location) Quote Link to comment
Martin Crawford Posted March 16, 2018 Author Share Posted March 16, 2018 Thanks. I saw the function, however I thought is was dealing with images and not the worksheet. I should spend more time clicking. Thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.