Paolo Posted October 22, 2002 Share Posted October 22, 2002 Is there a way to create via VectorScript a database on the fly (if it is not already in the document) or, as a second chance, import it from a template document. The first solution is available with WorkSheets (CreateWS), the second is available for Symbols (CopySymbol). I've not found nothing similar for Databases. Can someone help me? Thanks! Quote Link to comment
Guest Posted October 23, 2002 Share Posted October 23, 2002 You can create a database row within a VectorWorks worksheet by using the SetWSCellFormula vectorscript function. Pass 0 as the column argument to set the database formula for a row. See example below: procedure createdb; var theWS : HANDLE; formula : STRING; begin theWS := CreateWS('my WS', 1, 1); formula := '=DATABASE((T=RECT))'; SetWSCellFormula(theWS, 1, 0, 1, 0, formula); formula := '=T'; SetWSCellFormula(theWS, 1, 1, 1, 1, formula); end; run(createdb); 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.