That code I posted will work in Model Space just change the following in the
code
from
if(pTable->getAt("*PAPER_SPACE", pRec, AcDb::kForWrite) == Acad::eOk)
to
if(pTable->getAt("*MODEL_SPACE", pRec, AcDb::kForWrite) == Acad::eOk)
"david gemelli" wrote in message
news:3D00C2A3.8080304@xlstudio.com...
>
> > how can I change the current viewport organisation in order to display
> > vertical views ? I tried the acad command _-vports but it creates the
> > views into the current one...
> > does someone have an idea ?
> >
> > thanks for any help.
> >
> > David.
> >
> I tried to create the viewports with the code provided by Gary Glass in a
previous post...
>
> but I need to perform this into the model space not into the paper
space...the _-vports
>
> command answers to my needs but I didn't manage to call it with "acedCmd"
nor "acedCommand"...
>
> the goal of this is to divide the screen in two views (maybe three but
> later).
> thanks for any help..
>
> David.
>
>