GstarCAD command

REFSET command

Add objects to or remove objects from the active reference editing working set during in-place block or Xref editing.

Command
REFSET
Alias
—
Tool group
Blocks
Level
Intermediate

What does REFSET do?

REFSET changes which objects belong to the active reference editing working set during an in-place REFEDIT session. It lets you add objects from the host drawing to the edited block or external reference, or remove objects from the reference and return them to the host drawing. This is useful when the contents of a block or Xref need to change while you are editing it in context.

How to use the command

  1. Start REFEDIT and open the required block or external reference for in-place editing.
  2. Type REFSET, then press Enter.
  3. Choose Add when objects from the host drawing should become part of the reference working set.
  4. Choose Remove when objects should be taken out of the reference working set.
  5. Select the required objects and confirm the selection.
  6. When editing is complete, use REFCLOSE to save or discard the reference changes.
Command: REFSET ↵
Enter an option [Add/Remove]: Add ↵
Select objects: select objects to add ↵
Select objects: Enter

Key REFSET options

The two main options control whether geometry moves into or out of the active reference editing working set.

Add
Adds selected objects from the host drawing to the current reference editing working set so they become part of the edited block or external reference when the changes are saved.
Remove
Removes selected objects from the reference editing working set and transfers them back to the host drawing when the reference changes are saved.
Working set
Contains the objects currently being edited as part of the selected block or external reference during the REFEDIT session.
REFCLOSE
Ends the in-place editing session and lets you save the working-set changes or discard the reference edits.

Practical example: add geometry to a block in place

Suppose a door block is being edited with REFEDIT, but a line already drawn in the host drawing should become part of the door block. Run REFSET, choose Add and select the line. The line is transferred into the active working set. Continue editing as required, then run REFCLOSE and save the changes. The selected line now belongs to the edited block definition instead of remaining separate host-drawing geometry.

Tip

Use REFSET only while a reference is being edited in place with REFEDIT. If you only need to modify existing objects already inside the reference, you normally do not need to change the working set.

Important

Adding or removing objects changes which drawing owns those objects when the reference edits are saved. Check the working set carefully before finishing with REFCLOSE.

All commands Updated 28 September 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.