Repository navigation
REFEDIT Command
Hakan Seven edited this page Nov 8, 2026
·
1 revision
Edits a block reference or an external reference in place, in the current drawing.
| Command |
REFEDIT · -REFEDIT
|
| Ribbon | Insert tab › Reference panel |
| Web app | Available |
| Since | 0.1.4 |
- Select the reference. If one reference is already selected, it is used.
- The Reference Edit dialog opens. Under Reference to edit, the chain of nested references at the picked point is shown. Click a level to choose which one to edit.
- Under Working set, choose All objects, or Pick in the drawing to choose the nested objects yourself.
- Set the session options and click Start Editing.
- If you chose Pick in the drawing, select the nested objects and press Enter.
- Edit the objects with the usual commands.
- End the session with
REFCLOSE, or with the save and discard buttons on the toolbar at the right edge of the drawing.
| Option | What it does |
|---|---|
| Also edit attribute definitions | Includes the block's attribute definitions in the working set. Available when the block has them. |
| Lock objects not in the working set | Objects outside the working set act like objects on a locked layer during the session: you can see them, but not select or change them. |
| Give clashing layer, style and block names unique names | For an external reference, its layers, styles and blocks get their own names of the form $0$NAME. When off, they share the drawing's layer, style or block of the same name. |
-REFEDIT asks everything at the command line, which suits scripts:
- Select reference.
-
Select nesting level [Ok/Next] <Next>:Next (N) or Enter steps outward through the nested references and wraps back to the innermost one. Ok (O) takes the current level. -
Enter object selection method [All/Nested] <All>:All (A) takes every object; Nested (N) asks you to select nested objects. Click objects or drag a window, then press Enter. -
Display attribute definitions [Yes/No] <No>:decides whether attribute definitions are included.
The lock and unique-name settings come from the last use of the dialog.
- The objects of the chosen definition are placed in the drawing where the reference shows them. Everything else is faded by
XFADECTL. - Objects you create during the session join the working set. Use
REFSETto move other objects in or out. - Saving writes the working set back into the block definition and updates every reference to it. For an external reference, the referenced file is written and reloaded.
- Only one reference can be edited at a time. Starting another reports that one is already checked out.
- The dialog settings are remembered.
- Undo of REFCLOSE opens the session again.
REFSET · REFCLOSE · BEDIT · XREF · EXTERNALREFERENCES
Open CAD Studio is free software under the GPL-3.0 licence · Source code · Download · Web app · Discussions
Get started
- Installation
- Your First Drawing
- Tutorials
- The User Interface
- Ribbon Reference
- Workspaces and Toolbars
- Navigating the Drawing
Draw and edit
- Drawing Setup and Units
- Precision Drawing
- Isometric Drafting
- Drawing Objects
- Multilines
- Selecting Objects
- Modifying Objects
- Hatches and Fills
- Layers and Properties
Annotate
Organise and reuse
Present and share
3D
Tools
Reference