乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: pmxcad

[编程交流] 激活视口

[复制链接]

18

主题

1529

帖子

973

银币

中流砥柱

Rank: 25

铜币
649
发表于 2022-7-5 16:07:09 | 显示全部楼层
@Jef!:
I think you understand the difference between vla-put-activeviewport (for MS "VPORT") and vla-put-activepviewport (for PS "VIEWPORT") now. It is indeed a bit confusing (and in your last post you still mix things up a bit).
 
Of course faulty information in the documentation does not help...
"The ActiveSpace property (equivalent to the TILEMODE system variable) determines the type of viewport used."
http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-2B609059-6B70-4C66-A442-F5917363462A
 
A "VIEWPORT" gets activated despite the error message, because this occurs before the call to vla-put-activeviewport:
  1. (vla-put-mspace d :vlax-true)
回复

使用道具 举报

28

主题

317

帖子

292

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
140
发表于 2022-7-5 16:11:48 | 显示全部楼层
Ok, I get it now. So I never "controlled" which viewport got activated, I just changed the The ActiveSpace property and happened to have only 1 viewport. Thanks a lot for taking the time to shed light!
 
Faulty information in the documentation indeed does not help... have you seen the following sentence of the one you quoted from the page you linked? "No editing or view changes can be performed unless the viewport is active. To make a viewport active, use the ActiveViewport property on the Document object" (!).
If I understood correctly this should be "No editing or view changes can be performed unless the viewport is active. To make a viewport active, use the ActivePViewport property on the Document object"... right?
回复

使用道具 举报

18

主题

1529

帖子

973

银币

中流砥柱

Rank: 25

铜币
649
发表于 2022-7-5 16:16:47 | 显示全部楼层
No. The page is about the Viewport object which is the same as the "VPORT" entity. 
Viewport object = VPORT entity.
PViewport object = VIEWPORT entity.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-14 13:04 , Processed in 1.029328 second(s), 56 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表