乐筑天下

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

[编程交流] Help with Vla-Put-ModelView

[复制链接]

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 09:40:02 | 显示全部楼层 |阅读模式
This is my first attempt to manipulate AcDbViewport Objects (learning exercise), and cannot seem to find the solution on my own.
 
I've successfully created an viewport in PaperSpace at the correct location, and already have a named Model view, but for some reason cannot successfully apply said view to the viewport.
 
Snip:
 
  1. ;; Create viewport(setq vp (vla-addpviewport   (vla-get-paperspace *activeDoc*)   (vlax-3d-point '(8.6477 5.56637 0.0))   16.0   9.84));; Set view(vla-put-modelview vp (vla-item (vla-get-views *activeDoc*) "1"))
 
The latter portion returns this error:
 
  1. ; error: Automation Error. Description was not provided._$
 
... Which is confusing as there is no description called for from the developer documentation; only the Object (PViewport), and the ModelView (View object).
 
Any help would be greatly appreciated!
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-7 00:34 , Processed in 0.348916 second(s), 54 queries .

© 2020-2025 乐筑天下

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