Change Space
entity_change_spaceMove entities between model and paper space, automatically rescaling them to match the viewport so their on-screen size stays consistent.
Instructions
AutoCAD's CHSPACE: move entities across spaces, rescaled by the viewport.
Geometry is transformed by the viewport's own matrix so it stays the same size on screen — a move without that transform would leave a 100 mm feature as 100 mm of paper inside a 1:2 viewport.
Refused per entity for dimensions (unless freeze_dimensions), ACIS solids,
tables and proxies, viewports, and entities already in the target space;
refused outright for a twisted or non-plan viewport. Entities that end up
outside the viewport or off the sheet are moved and flagged, not refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handles | Yes | Entity handles to move. | |
| direction | No | to_paper (model -> sheet) or to_model (sheet -> model). | to_paper |
| viewport_handle | Yes | Viewport that defines the model-to-paper mapping. | |
| freeze_dimensions | No | Bake each dimension's current measurement into its text before scaling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||