Skip to the page
Tutorial areas

Make a custom tool from your attributes

Record the fill, pen and layer of one object as a script, then double-click the script to draw new shapes with the same look.

How-toIntermediate4 minMenu: Tools › Custom Tool/Attribute…

A custom tool is a script that sets the way you draw: the tool, its fill and pen, and the class and layer. Use it when you draw many shapes in the same style. You record the style from an object you have drawn, and then one double-click sets it up again.

Steps

  1. Select the object whose style you want. This one has a yellow fill and a teal pen.

  2. Choose the tool you want to draw with, here the Rectangle tool. The tool is recorded too.

  3. Choose Tools › Custom Tool/Attribute…. The Custom Tools dialog says Record the selected object's attributes. Fill Attributes, Pen Attributes and Other Attributes are ticked, and Text Attributes is not, because the object has no text. Untick any you do not want. Set Script to Create Python Script.

    The Custom Tools dialog with the groups ticked and Create Python Script chosen
  4. Click OK. If you have no script palette yet, Rodeo asks for one: type Custom Tools in Name and click Create. Then name the script Rectangle Style and click OK. It is listed in the Script Palettes palette.

  5. Double-click Rectangle Style. The first run may take a few seconds while Python loads. The script sets the Rectangle tool and the fill and pen it recorded.

  6. Drag on the drawing to draw a rectangle. It has the same yellow fill and teal pen as the first.

    A second rectangle drawn with the recorded fill and pen

Tips

  • To record what new objects are drawn with, choose the tool and select nothing before you open the dialog.
  • The recorded attributes stay set after the script runs, as in Vectorworks, so the next shapes you draw take them too.

Limits

  • Line end markers, fonts and text styles, symbols and snapping are not recorded. Rodeo's script calls do not set them.