acedSetCurrentVPort
-------------------
Acad::ErrorStatus acedSetCurrentVPort(
const AcDbViewport* pVp
);
Header File
aced.h
Parameters
Parameters
const AcDbViewport* pVp //Input pointer to viewport to make current
Description
This function sets the current viewport from the AcDbViewport object pointed to by pVp.
SysVarWillChange and SysVarChanged notification are generated by this function.
You must be in model space for this function to work properly. This can be done using the following steps:
1.Turn TILEMODE off and switch to paper space if necessary.
2.Create a viewport using acedCommand/MVIEW.
3.Use acedCommand/zoom-extents to ensure that the view was on the screen.
4.Make sure that the viewport was turned on using acedCommand MVIEW/ON last.
5.Switch to model space using acedCommand /MSPACE.
6.Set CVPORT to the number of your viewport to ensure that your viewport is active.
Alternatively, to avoid the use of acedCommand, you can use the following steps:
1.Instantiate a viewport object
2.Turn TILEMODE off and switch to paper space if necessary.
3.Use acedSetCurrentView to zoom out to make sure that the viewport is viewable.
4.Open the viewport for write, and ensure that it is activated.
5.Switch to model space using acedSetCurrentView.
6.Close the viewport.
Returns Acad::eOk if successful.
Returns Acad::eOutOfRange if the specified viewport isn't valid for the current environment.
Returns Acad::eNullObjectPointer if pVP is NULL.
没有合适的资源?快使用搜索试试~ 我知道了~
《AutoCAD .NET开发指南2012版》示例代码

共245个文件
dll:44个
pdb:44个
cs:42个


温馨提示
《AutoCAD .NET开发指南2012版》的示例代码,只包含C#代码。 在vs2010sp1 + ObjectARX2014 + AutoCAD2014环境下测试通过,若在ObjectARX2012 + AutoCAD2012环境下测试需更改相应的引用库。
资源推荐
资源详情
资源评论
















收起资源包目录





































































































共 245 条
- 1
- 2
- 3
资源评论

- jikaili2019-07-27很好的学习资料!


qq_42675313
- 粉丝: 35
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- MFC编程基础1基于对话框Windows应用程序.doc
- 解析计算机通信与网络课程教学.docx
- 信息系统项目管理师考试笔记重点难点.doc
- 互联网思维与传统企业转型.ppt
- 初中数学幂的运算法则基础测试卷.doc
- 网络安全实验综合实验网络安全系统的设计与实现.doc
- ARM嵌入式软件开发.ppt
- 大数据及档案管理.ppt
- 互联网发展趋势报告V1.docx
- C语言程序设计方案报告.doc
- 连锁超市企业网站建设方案.doc
- 面向金融互联网容器服务化平台.pptx
- 大数据中心选址调研研究报告.doc
- 浅析血站档案管理信息化建设.docx
- 省级城乡规划行业统计空间数据库建设探讨.docx
- 单片机的温湿检测控制系统设计.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
