Object References

Object References

An object reference links one object to another instead of copying its content. VectorStyler uses these links for symbols. The referencing object contains only the link; use style overrides to customize its appearance without changing the source object.

A reference displays the source object’s contents. To override properties such as its shape or styling, those properties must use styles in the source. Apply overrides in the Styles - Overrides panel, available from the Window menu.

A symbol source is a regular object, preferably on a Reference canvas. Each symbol instance is a reference to that source.

References and symbol instances can have their own image effects, shape effects, opacity, and transparency settings. These apply in addition to the settings already present in the source object.

Creating References

To create a reference:

  1. Select the source object.
  2. Choose Reference from the Edit menu or press Option+Command+D.

A new object is created with a link to the source. It may overlap the source if you have not previously moved an object.

You can also create references by giving an object a name and the symbol role:

  1. Select the source object and open Object Options.
  2. Enter a name, enable the Symbol role, and click Ok.
  3. Find the object in the Symbols panel.
  4. Drag it from the panel to create symbol instances that reference the source.

You can also create symbols with the Create symbol button in the Symbols panel.

Changing References

The Appearance panel with a symbol instance selected.

Use the Appearance panel to redirect a reference to another symbol. If the new symbol does not yet exist, create it in the Symbols panel or give an object the Symbol role.

  1. Open the Appearance panel and select the reference or symbol instance.
  2. Open the menu in the panel’s Reference item.
  3. Choose a symbol from the list.

The selected object now displays the new symbol.

Replacing References

Choose Replace Objects from the Styles menu to find and replace symbol references. This command also supports references to objects with roles other than symbols.

To replace symbol instances:

  1. Select the objects to update, or leave nothing selected to replace references throughout the document.
  2. Choose Replace Objects from the Styles menu.
  3. Choose Symbol in Role. Objects with the symbol role appear in the Source and Target lists.
  4. In Source, choose the symbol to replace.
  5. In Target, choose its replacement.
  6. Click Ok to apply the change.

The Replace Object Reference view.

Expanding References

Choose Expand Symbol from the Styles menu to detach a symbol instance or reference from its source. The result is a group containing a copy of the source object. The group retains any additional effects or transparency settings from the reference, separately from those copied with the source object.

Expansion breaks the source link. You can edit all contents and properties of the expanded object independently, and source changes no longer affect it.

Expansion may increase the document’s file size. A reference stores only a small link, while an expanded symbol stores a copy of the source object’s contents and properties.