找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 1560|回复: 2

[API建议] 增加Layout属性

[复制链接]

已领礼包: 1268个

财富等级: 财源广进

发表于 2013-11-27 16:50:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
getTabOrder
getLayoutName
.....

现在遍历遇到不方便了,还得用 setenttodb + getentdxf

一个 (layoutlist) 函数目前用 API 实现好麻烦
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 1268个

财富等级: 财源广进

 楼主| 发表于 2013-11-27 21:21:51 | 显示全部楼层
本帖最后由 st788796 于 2013-11-27 21:24 编辑

addToLayoutDict
This method adds the layout to the specified database's layout dictionary, and specifies the block table record to use.

getLayoutName
This method gets the user-friendly layout name that is displayed in the tab control. Currently there is no restriction on the name except that the length of the name is limited to 256 characters.
Warning: The caller should not free the returned string.

annoAllVisible
Returns the current ANNOALLVISIBLE value for the database
See the System Variables section of the AutoCAD Command Reference for information on ANNOALLVISIBLE.
This is an AcDbDatabase Header Variable Query Function.


getBlockTableRecordId
This method gets a back pointer to the AcDbLayout's associated AcDbBlockTableRecord. Corresponding methods in AcDbBlockTableRecord implement a forward pointer to the AcDbLayout.



getPreviewImage
This function provides Atil::Image thumbnail of layout as output.
getTabOrder
This method gets the tab order field, which controls the order in which the layouts are displayed in the tab control that is docked to the bottom of the viewport. The tab order should be unique and sequential for each layout in the database.

getTabSelected
This method indicates whether the layout tab is included in the selection set for operations that affect multiple tabs. The user can perform multiple selection via the user interface using shift-click.

getThumbnail
This function provides BITMAP thumbnail of layout as output. Returns Acad::eOk, if thumbnail is successfully set. else error status.
getViewportArray
This function returns an array of AcDbObjectIds of all the AcDbViewports that exist in the AcDbLayout's paperspace. The first ID in the list will be the paperspace viewport. If the list returned is empty, then this AcDbLayout has never been switched to (activated). The list is updated each time a layout is activated, and kept up-to-date while that layout is active (whenever viewports are added or deleted).
initialize
This method will do the behind the scenes work to establish a Paper Space viewport for the layout. This allows a layout to be set up and made ready for other viewports and entities to be put into the layout as well as to set various layout properties.
Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

已领礼包: 1268个

财富等级: 财源广进

 楼主| 发表于 2013-11-27 21:26:39 | 显示全部楼层
addToLayoutDict
This method adds the layout to the specified database's layout dictionary, and specifies the block table record to use.

getLayoutName
This method gets the user-friendly layout name that is displayed in the tab control. Currently there is no restriction on the name except that the length of the name is limited to 256 characters.
Warning: The caller should not free the returned string.

annoAllVisible
Returns the current ANNOALLVISIBLE value for the database
See the System Variables section of the AutoCAD Command Reference for information on ANNOALLVISIBLE.
This is an AcDbDatabase Header Variable Query Function.
getExtents

getBlockTableRecordId
This method gets a back pointer to the AcDbLayout's associated AcDbBlockTableRecord. Corresponding methods in AcDbBlockTableRecord implement a forward pointer to the AcDbLayout.

getLimits

getPreviewImage
This function provides Atil::Image thumbnail of layout as output.
getTabOrder
This method gets the tab order field, which controls the order in which the layouts are displayed in the tab control that is docked to the bottom of the viewport. The tab order should be unique and sequential for each layout in the database.

getTabSelected
This method indicates whether the layout tab is included in the selection set for operations that affect multiple tabs. The user can perform multiple selection via the user interface using shift-click.

getThumbnail
This function provides BITMAP thumbnail of layout as output. Returns Acad::eOk, if thumbnail is successfully set. else error status.
getViewportArray
This function returns an array of AcDbObjectIds of all the AcDbViewports that exist in the AcDbLayout's paperspace. The first ID in the list will be the paperspace viewport. If the list returned is empty, then this AcDbLayout has never been switched to (activated). The list is updated each time a layout is activated, and kept up-to-date while that layout is active (whenever viewports are added or deleted).
initialize
This method will do the behind the scenes work to establish a Paper Space viewport for the layout. This allows a layout to be set up and made ready for other viewports and entities to be put into the layout as well as to set various layout properties.
Returns Acad::eOk if successful; otherwise, returns an AutoCAD error status.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-4-24 05:08 , Processed in 0.164018 second(s), 32 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表