Sample Code Revit Batch Processor 1.1.16 documentation
The Print Set Name dialog appears when duplicating an existing print set. It prompts you to enter a unique name for the new print set before it is created.
In the main export window, select an existing print set from the Print Set dropdown (not <None>).
Click Duplicate.
The Print Set Name dialog opens, centred on the main window.
Control |
Description |
|---|---|
Print set name label |
“Print set name:” — identifies the input field |
Name text box |
Enter the name for the new print set. Validated in real time |
Create button |
Confirms the name and creates the new print set. Disabled until a valid name is entered. Also triggered by pressing Enter |
Cancel button |
Closes the dialog without creating a print set. Also triggered by pressing Escape |
The name field enforces the following rules in real time. Errors appear as red text below the text box.
Rule |
Error condition |
|---|---|
Name must not be empty |
Error shown if the field is blank or contains only whitespace |
Name must be unique |
Error shown if a print set with the same name already exists (case-insensitive) |
Maximum 100 characters |
Error shown if the name exceeds 100 characters |
No invalid file name characters |
Error shown if the name contains any of: `/ \ : * ? “ < > |
The Create button is disabled until all validation rules pass.
Create clicked (or Enter pressed): The new print set is created as a copy of the original, containing the same sheets. The main window’s Print Set dropdown updates and automatically selects the new set.
Cancel clicked (or Escape pressed): No print set is created and the dialog closes.
Select a print set to copy in the main window.
Click Duplicate to open this dialog.
Type a unique name for the new print set.
Confirm no validation errors appear below the field.
Click Create (or press Enter) to create the copy.