The Dialog Builder:
You can use the following workspace to get the Dialog Builder tools and menu commands only:
Dialog Builder Workspace File for Vectorworks 2013
The Dialog Builder:
Additional Vectorworks Document Tools
You can use the following workspace to get the Dialog Builder tools and menu commands only:
Dialog Builder Workspace File for Vectorworks 2012
Dialog Builder is a set of tools and menu commands that allows you to visually design VectorWorks Layout Dialogs using VectorWorks itself.
This version of the dialog builder is direct inheritance of Charles Chandler's 'Dialog Builder 5' with the same concept behind.
Media:DialogLayoutWithDialogBuilder.doc
Download and extract the Dialog Builder files and place them in your Plug-Ins folder. Download and extract the Dialog Builder Workspace and place the file in your Workspaces folder.
There are also some VectorScript plug-ins that get created when VectorWorks starts from the Dialog Builder Library. These plug-ins are placed under your user folder: <user>\Application Data\Nemetschek\VectorWorks\13\Plug-ins
Then, you have to start VectorWorks and switch to the Dialog Builder Workspace. The menu ofr Dialog Builder should look like this:
The tool palette should look like this:
When designing a dialog you put all controls inside one VectorWorks layer. The layer acts as the dialog layout. To setup information about this layout you can use the tools (their layout properties button or the menu command)
The layout settings dialog looks like this:
The first tab allows you to set name and title for the dialog. The name is used as variable name for the dialog inside the code.
This tab is informative. It shows what align groups are used in this layout. This will help you orient with the groups in really big layouts.
This tab allows you to specify additional STR# resources for this dialog. This is for strings that are inseparable part of the dialog and used nowhere else. The exporting routines automatically puts definitions for these strings, so they are easy to use within the dialog handler code.
The check box controls if those additional resource strings should be added in separate STR# tables, or should be added at the end of the main resource table for the control's texts.
This is settings page and has nothing to do with the exported layout. It is used to set up the way the layout is presented on the VectorWorks layer.
#ifndef REZ_FOR_MACHO
#define REZ_FOR_MACHO 0
#endif
#if REZ_FOR_MACHO
#include <Carbon/Carbon.r>
#else
#include "MacTypes.r"
#endif
#include "GSRsrc.r"
The Dialog layout controls are presented on VectorWorks layer with a plug-in object 'Dialog Builder Control' This object is used for all types of layout control which are specified by the 'Type' parameter.
The control have two handles: on right and on bottom. These handles are used to describe the relations between the controls. When you put new control it's handles are on the right and on the bottom side of it's bounding box. To attach it's right neighbor, you should grab the handle with the mouse, move it over the other (within it's bounding box) control and place the handle there with single click.
Note: You should have all your controls in the layout arranged using the handles. If one control, or a bunch of controls are not related to others, they wont be visible in the exported dialog (they wont be exported) Also note that the upper left most control is the first one for the dialog.
Here are the parameters of this plug-in object:
Most of the parameters are common to all types controls. However the last parameter change visibility from one type to another, allowing you fast edit parameters for comonly used controls.
For example the 'Static Text' control have 'size to text' but others don't. The 'List Box' have height parameter but other may not have this.
With paramters you are allowed to set only one Align Group of this control. Zero group ID means that this control doesnt belong to a group.
'Common Settings...' button brings up the dialog:
This pane allows you to specify common settings for the control. These settings are present as parameters, but here you have bigger edit controls so you could more easily enter long strings.
This pane allows you to specify more than one alignmed group for this control.
In this pane you specify binding for this control if it is a part of resizable layout.
Test run tool (the first icon shown in the tool palette above) is used to export as temp .vs file the current layout dialog and run it. So the user would see what he actually gets. When the tool is selected the data bar contains buttons to control:
The buttons have functionality as follows:
This tool allows you to export the current layout as different files for different purposes.
The buttons have functionality as follows:
This tool asks you to enter name for the .vs file, and this name will be used for the .r file too. Both files will be written in the chosen location. The .vs file contains the vector script functino that creates the dialog and the .r file contains the resource strings for this dialog. Also the .r file contains 'read' as 'TEXT' for the .vs file, so all you need is to '#include' the .r file in your PluginResources.r file.
SDK:Dialog Builder Samples | SDK:Creating handler class for VectorScript layout dialog | SDK:Creating handler class for manual layout dialog |