Skip to the page
Tutorial areas

Export 3D objects as a Vectorscript

Export a drawing's 3D objects as a Vectorscript of flat 3D polygons, then run that file to draw them again.

How-toIntermediate5 minMenu: File › Export › Export Simple VectorScript (3D only)…

Export Simple VectorScript (3D only) writes the 3D objects on the visible design layers as a plain script. Each flat face becomes one 3D polygon, grouped by object. Use it to pass a 3D shape to someone who runs Vectorworks scripts, or to keep the faces as text. For the 2D plan, use Export a drawing as a script instead.

Steps

  1. Choose the Extruded Rectangle tool from the 3D Modeling tool set. Drag a footprint on the drawing for each box. The first box is 4000 mm by 3000 mm, and the second 3000 mm by 2000 mm.

  2. Press Esc to finish. Click 3D in the top bar to see the boxes.

    The two extruded boxes in the 3D view
  3. Choose File › Export › Export Simple VectorScript (3D only)…. A dialog asks which view to write the faces in.

  4. Under Export in, choose Current view (the 3D view) to write the faces as you see them now, or leave Front view ticked. Click Export. The browser saves a .vs file as a download.

    The Export Simple VectorScript dialog with Current view (the 3D view) ticked
  5. To draw the faces again, choose Tools › Plug-ins › Run Script…, click Open… and choose the .vs file. The first line of the file says how many objects and polygons it holds.

    The Run Script window with the exported file open: 2 objects as 12 3D polygons
  6. Click Run. The faces are drawn as 3D polygons on the design layer, and the run is one undo step.

Tips

  • Select everything and choose Edit › Delete before you run the file, so the copy is the only version in the drawing.
  • Export with the view you want the script to be written in. The faces are turned so that view looks down on them, so a run from another view looks different.
  • A drawing with no 3D objects on its visible design layers writes nothing, and the message says so.

Limits

  • Only the 3D objects on visible design layers are written. The script draws polygons, not the solids they came from, so you cannot edit a box as a box after the run.