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个
3星 · 超过75%的资源 需积分: 13 28 下载量 99 浏览量
2018-07-13
16:10:01
上传
评论
收藏 992KB RAR 举报
温馨提示
《AutoCAD .NET开发指南2012版》的示例代码,只包含C#代码。 在vs2010sp1 + ObjectARX2014 + AutoCAD2014环境下测试通过,若在ObjectARX2012 + AutoCAD2012环境下测试需更改相应的引用库。
资源推荐
资源详情
资源评论
收起资源包目录
《AutoCAD .NET开发指南2012版》示例代码 (245个子文件)
chapter_04.csprojResolveAssemblyReference.cache 53KB
chapter_08.csprojResolveAssemblyReference.cache 53KB
chapter-3-7.csprojResolveAssemblyReference.cache 53KB
chp02_1.csprojResolveAssemblyReference.cache 15KB
chp02_3_3.csprojResolveAssemblyReference.cache 13KB
chapter_01.csprojResolveAssemblyReference.cache 11KB
chp02_3.csprojResolveAssemblyReference.cache 11KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
chapter_07.csproj.CoreCompileInputs.cache 42B
chapter_01.csproj.CoreCompileInputs.cache 42B
chapter_08.csproj.CoreCompileInputs.cache 42B
chp02_8.csproj.CoreCompileInputs.cache 42B
chp02_2.csproj.CoreCompileInputs.cache 42B
chp02_1.csproj.CoreCompileInputs.cache 42B
chp02_7.csproj.CoreCompileInputs.cache 42B
chp02_4.csproj.CoreCompileInputs.cache 42B
chp02_3.csproj.CoreCompileInputs.cache 42B
chp02_3_3.csproj.CoreCompileInputs.cache 42B
chp02_5.csproj.CoreCompileInputs.cache 42B
3-4.cs 57KB
Class1.cs 36KB
3-5.cs 29KB
3-2.cs 26KB
Class1.cs 25KB
chp02_2.cs 21KB
3-3.cs 18KB
Class1.cs 16KB
3-1.cs 15KB
3-7.cs 13KB
chapter-01.cs 10KB
Class1.cs 8KB
chp02_7.cs 7KB
chp02_8.cs 6KB
3-6.cs 5KB
Class1.cs 5KB
chp02_3.cs 3KB
chp02_3_3.cs 3KB
chp02_1.cs 2KB
chp02_4.cs 2KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
chp02_5.cs 1KB
chapter_01.csproj 3KB
chp02_3_3.csproj 3KB
chp02_5.csproj 3KB
chp02_1.csproj 3KB
chapter_07.csproj 3KB
chp02_2.csproj 3KB
chapter_06.csproj 3KB
chp02_3.csproj 3KB
chapter_05.csproj 3KB
chapter_04.csproj 3KB
chapter-3-4.csproj 3KB
chp02_7.csproj 3KB
chapter-3-1.csproj 3KB
chapter-3-5.csproj 3KB
chapter-3-3.csproj 3KB
chapter-3-2.csproj 3KB
chp02_4.csproj 3KB
chapter_08.csproj 3KB
共 245 条
- 1
- 2
- 3
资源评论
- jikaili2019-07-27很好的学习资料!
qq_42675313
- 粉丝: 36
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功