Sorry, I had overlooked the fact that
entmod cannot be used to modify a viewport entity:
There are restrictions on the changes the entmod function can make:
- An entity's type and handle cannot be changed. If you want to do this, use entdel to delete the entity, and then make a new entity with the command or entmake function.
- The entmod function cannot change internal fields, such as the entity name in the -2 group of a seqend entity. Attempts to change such fields are ignored.
- You cannot use the entmod function to modify a viewport entity.
And since this property does not appear to be exposed through ActiveX, I see no other way to alter it other than using the command.
![sad :-(](http://www.theswamp.org/Smileys/black/sad.gif)