CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2024 开发者帮助

Acad.Editor.CurrentViewport Function

2024-5-31 18:00| 发布者: admin| 查看: 185| 评论: 0|原作者: admin|来自: AutoCAD

Acad.Editor.CurrentViewport Function

Acad.Editor.CurrentViewport Function

File

Autodesk.AutoCAD.js

Syntax

JavaScript

function Acad.Editor.CurrentViewport();

Group

ACAD Namespace

Description

Represents the current viewport and stores view properties like camera position, target, fieldheight, fieldWidth, upVector, and projection.

Properties

Name Type Description Condition
fieldHeight float Gets the camera field height. Ensure that FieldHeight is not used when the view is in the interactive state. Read-only
fieldWidth float Gets the camera field width. Ensure that FieldWidth is not used when the view is in the interactive state. Read-only
position Acad.Point3d Gets the camera position. Ensure not to use Position when the view is in the interactive state. Read-only
projection Acad.Enum_Projection Gets the projection. Ensure that Projection is not used when the view is in the interactive state. Read-only
target Acad.Point3d Gets the camera target. Ensure not to use Target when the view is in the interactive state. Read-only
upVector Acad.Vector3d Gets the camera up vector. Ensure not to use UpVector when the view is in the interactive state. Read-only
Note: An Error object is thrown if you to set the value of a Read-only property.

ACAD Namespace


路过

雷人

握手

鲜花

鸡蛋

最新评论

群   号:715888130

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2025-5-13 10:15

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部