Migrating VBA code with CHSPACE command

Migrating VBA code with CHSPACE command

Anonymous
Not applicable
865 Views
2 Replies
Message 1 of 3

Migrating VBA code with CHSPACE command

Anonymous
Not applicable

I have a code snippet that creates a pline and a dimension in model space, then switches to paperspace.  It then uses the CHSPACE command to bring the dimension through the paperspace viewport into paperspace.  It works fine in AutoCAD 2004 and 2010, but does not work in 2015.  In 2015 it seems to hit an endless loop prompting the user to active the viewport.  Help?

0 Likes
Accepted solutions (1)
866 Views
2 Replies
Replies (2)
Message 2 of 3

Virupaksha_aithal
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

Please try PostCommand  command API.

 

ThisDrawing.PostCommand "CHSPACE Crossing 0.2,0.2,0 6,5,0 "



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

Anonymous
Not applicable

Thanks Virupaksha! Simple, elegent, and works pefectly!

0 Likes