Set Paperspace Viewport Scale and CenterPoint

Q101

#region Assembly Acdbmgd, Version=24.1.0.0, Culture=neutral, PublicKeyToken=null
// G:\API-P\ENG  ESSAM\Debug 2022\acdbmgd.dll
#endregion

using Autodesk.AutoCAD.Colors;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.GraphicsInterface;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections;
using System.ComponentModel;

namespace Autodesk.AutoCAD.DatabaseServices
{
    [TypeDescriptionProvider("Autodesk.AutoCAD.ComponentModel.TypeDescriptionProvider`1[[Autodesk.AutoCAD.DatabaseServices.Viewport, acdbmgd]], acdbmgd")]
    [Wrapper("AcDbViewport")]
    public class Viewport : Entity
    {
        public Viewport();
        protected internal Viewport(IntPtr unmanagedPointer, bool autoDelete);

        public bool SnapIsometric { get; set; }
        [Category("Misc")]
        [UnitType(UnitType.AngleNotTransformed)]
        public double SnapAngle { get; set; }
        public Point2d SnapBasePoint { get; set; }
        public Vector2d SnapIncrement { get; set; }
        public int SnapIsoPair { get; set; }
        public bool GridOn { get; set; }
        public Vector2d GridIncrement { get; set; }
        public bool HiddenLinesRemoved { get; set; }
        public bool GridBoundToLimits { get; set; }
        public bool GridAdaptive { get; set; }
        public bool GridSubdivisionRestricted { get; set; }
        public bool GridFollow { get; set; }
        public short GridMajor { get; set; }
        public bool DefaultLightingOn { get; set; }
        public DefaultLightingType DefaultLightingType { get; set; }
        [Category("3D Visualization")]
        [UnitType(UnitType.Unitless)]
        public double Brightness { get; set; }
        [Category("Misc")]
        [UnitType(UnitType.Unitless)]
        public double Contrast { get; set; }
        public bool SnapOn { get; set; }
        public int CircleSides { get; set; }
        public bool FastZoomOn { get; set; }
        public bool UcsIconAtOrigin { get; set; }
        [Category("Geometry")]
        public Point3d CenterPoint { get; set; }
        public int Number { get; }
        public bool On { get; set; }
        public Point3d ViewTarget { get; set; }
        public Vector3d ViewDirection { get; set; }
        [Category("Geometry")]
        [UnitType(UnitType.Distance)]
        public double ViewHeight { get; set; }
        public Point2d ViewCenter { get; set; }
        [Category("Misc")]
        [UnitType(UnitType.AngleNotTransformed)]
        public double TwistAngle { get; set; }
        [Category("3D Visualization")]
        [UnitType(UnitType.Distance)]
        public double LensLength { get; set; }
        public bool FrontClipOn { get; set; }
        public bool BackClipOn { get; set; }
        public bool FrontClipAtEyeOn { get; set; }
        [Category("Misc")]
        [UnitType(UnitType.Distance)]
        public double FrontClipDistance { get; set; }
        [Category("Misc")]
        [UnitType(UnitType.Distance)]
        public double BackClipDistance { get; set; }
        [Category("3D Visualization")]
        public bool PerspectiveOn { get; set; }
        public bool UcsFollowModeOn { get; set; }
        public bool UcsIconVisible { get; set; }
        public Color AmbientLightColor { get; set; }
        public ObjectId SunId { get; }
        public ObjectId VisualStyleId { get; set; }
        public bool Locked { get; set; }
        public System.Drawing.Bitmap Thumbnail { get; set; }
        public AnnotationScale AnnotationScale { get; set; }
        [Category("Geometry")]
        [UnitType(UnitType.Distance)]
        public double Width { get; set; }
        public bool LinkedToSheetView { get; }
        public bool PlotAsRaster { get; }
        public bool PlotWireframe { get; }
        public ObjectId ShadePlotId { get; }
        public ObjectId Background { get; set; }
        public ShadePlotType ShadePlot { get; set; }
        public bool UcsPerViewport { get; set; }
        public OrthographicView ViewOrthographic { get; }
        public ToneOperatorParameters ToneOperatorParameters { get; set; }
        [Category("Geometry")]
        [UnitType(UnitType.Distance)]
        public double Elevation { get; set; }
        public CoordinateSystem3d Ucs { get; set; }
        public bool Transparent { get; set; }
        [Category("Misc")]
        [UnitType(UnitType.Unitless)]
        public double CustomScale { get; set; }
        public StandardScaleType StandardScale { get; set; }
        public string PlotStyleSheet { get; set; }
        [Category("Geometry")]
        [UnitType(UnitType.Distance)]
        public double Height { get; set; }
        public bool NonRectClipOn { get; set; }
        public ObjectId NonRectClipEntityId { get; set; }
        public OrthographicView UcsOrthographic { get; }
        public ObjectId UcsName { get; }
        public string EffectivePlotStyleSheet { get; }

        public void FreezeLayersInViewport(IEnumerator layerIds);
        public ObjectIdCollection GetFrozenLayers();
        [Category("Misc")]
        public ObjectId GetPreviousBackground(DrawableType type);
        public void GetUcs(ref Point3d origin, ref Vector3d x, ref Vector3d y);
        public bool IsLayerFrozenInViewport(ObjectId layerId);
        public void SetPreviousBackground(ObjectId value, DrawableType type);
        public void SetShadePlot(ShadePlotType type, ObjectId shadePlotId);
        public ObjectId SetSun([CallerMustClose] DBObject sun);
        public void SetUcs(ObjectId userCoordinateSystemId);
        public void SetUcs(OrthographicView view);
        public void SetUcs(Point3d origin, Vector3d x, Vector3d y);
        public void SetUcsToWorld();
        public void SetViewDirection(OrthographicView view);
        public void ThawAllLayersInViewport();
        public void ThawLayersInViewport(IEnumerator layerIds);
        public void UpdateDisplay();
    }
}