高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】asdkplotapi <autodesk的开源程序>
asdkplotapi <autodesk的开源程序>
asdkplotapi <autodesk的开源程序>
(c) copyright 6 by autodesk, inc.
asdkplotapi objectarx sdk sample
this sample demonstrates how to leverage the updated plot api for objectarx. the sample project
defines a simple plot dialog which contains a few specific plot parameters to chose from, including:
plot device
plot media
plot scale
plot to fit option
plot to file option
landscape option
background plot option
preview button
plot button
when the asdkplotapi.arx module is loaded, the plot dialog can be launched with the 'plotapi' command.
the current layout is plotted with the parameters set on the dialog by pressing the 'plot' button.
a plot preview can be generated with the 'preview' button.
autocad has the ability to send a plot job to a background plot process. this option is controlled by
the backgroundplot system variable.
the sample supports this background plot feature with the 'background' option. additionally, the sample
defines a custom plot reactor to receive notifications sent from the background plot process. when the
asdkplotapi.arx module is demand loaded in autocad at startup (required for this feature to work), a reactor
is planted for each background plot process (which is just another hidden acad.exe session), and sends
notifications via com back to the spawning process. a separate 'background plot notification' dialog is
launched with the first instance of the plot api dialog. whenever any background plots send notifications
(via the reactor instance loaded at startup), they will be received in this dialog regardless of where the
plot was initiated (such as from another session of autocad). this notification dialog will be closed
automatically when the refcount for the server drops to zero (i.e. all the reactor instances are deleted).
note: background plots take considerably longer to process...be patient for the notifications.
the sample demonstrates the use of the following plot-specific api classes:
acdbplotsettings
acdbplotsettingsvalidator
acplplotconfigmanager
acplplotprogressdialog
acplplotfactory
acplplotengine
acplplotinfovalidator
acplplotpageinfo
acplplotinfo
来凑个热闹哈,不知道对大家有没有用,我个人是不擅长c++.net的,看到这么好一个工具就给大家提个醒...
用过的就别吱声了,没用过的而且有兴趣的还等什么,顶个贴先,然后赶紧拿回去研究一下吧!
<如有个别像我一样的懒人不喜欢一个包一个包的下,留下你的联系方式,qq或email,我可以勤快一把,人数多就免了啊,我也是懒人~>
[ 本帖最后由 perfect_id 于 8-11-21 04:37 pm 编辑 ]
下载次数:50
8-11-21 09:13 am
下载次数:50
8-11-21 09:13 am
下载次数:59
8-11-21 09:13 am
下载次数:49
8-11-21 09:13 am
下载次数:63
8-11-21 09:13 am
下载次数:53
8-11-21 09:13 am
下载次数:63
8-11-21 09:13 am
下载次数:52
8-11-21 09:13 am
下载次数:48
8-11-21 09:13 am
下载次数:56
8-11-21 09:13 am
我自己顶先~也不知道对大家有没有用,没人怪我乱发就好了。。。 。。。
[ 本帖最后由 perfect_id 于 8-11-22 01:59 pm 编辑 ]
impossible is nothing
感谢感谢,过来顶一个。
|