Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

dbaldzhiev
2043 Vistas, 7 Respuestas

accoreconsole and active Model space viewports

I am trying to automate the process of moving the paperspace objects in a layout to modelspace. I am using CHSPACE and accoreconsole working with the simple script you can see attached. The dwg is exported from Revit. In most cases everything goes with no problems but there are a couple of dwgs that show 

Command: chspace

Select objects: all
3610 found
2468 were not in current space.

Select objects:
Ignoring 2 selected viewport(s)

There are no active Model space viewports.

If i try to CHSPACE from full AutoCAD there isn't a problem. I cannot find any difference between a dwg that works and a one that doesn't "have active model space viewports"

 

I tried to mview off all -> mview on all = no success

 This is the script I am pushing to accoreconsole

regenall
layout
set
Layout1
chspace all


(command)
model
audit
y
qsave