几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 三维空间:产品设计或CAX软件使用 » CMM检测 » PC-DMIS
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-06, 06:06 PM   #1
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 【转帖】autorun alicationscrit in c-dmis - c-dmis user forum.txt

set cd_a = getobject("", "cdlrn.alication")
set cd_s = cd_a.artrograms
set cd_ = cd_s.oen("ath/name.rg", machine) where machine is "offline" or "cmm1" - not comletely sure
i think to create a new one:
set cd_ = cd_s.add("ath/name.rg", units, machine, robfile)
units = 1 for mm else inch
thanks, but if i am not mistaken, this is for oening or creating a new artrogram in c-dmis?
i was thinking more of a way to have c-dmis run an alication each time i oen (or create new) artrogram.
* start c-dmis
* load or create new artrogram
* after you have entered the info for the new artrogram and clicked ok, or
when the oened artrogram has loaded - the edit window, grahics window will be dislayed along with your toolbars etc.
at this certain oint is where i want c-dmis to start my alication (or whatever). it would be ossible to catch the creation of the edit window globally, but that would mean that i'd had to run my 'watcher' as a service or on windows startu. think of the external alication as the robe calibration dialog. you can have that to o u on the creation of a new artrogram and this is what i want c-dmis to do on every rogram (oened or created) but running an external a instead.
is this doable?
also, is there a way to find out or know at what 'line' in the editwindow the cursor currently is located? i have cessfully managed to enumerate all commands rior to the cursors oion - so i don't retrieve the commands after the cursor oion (since these are not 'available' for use). this does not work if the cursor is located at a line where endmeas/ is located...
so, is there a way for me to know at what line or at what commandindex i currently have the cursor?
__________________
c-dmis v4.2mr1
horseower is how hard you hit the wall.
torque is how far you can take the wall with you.
">fff">
last edited by vt.se; 09-12-2008 at 05:22 mfff">..
">
sabarber,
the 'commands.currentcommand.id' is returning 'nil' or '' if the cursor is located on a "endmeas/" line in the editwindow. i have laced the cursor on all ossible commands and the 'commands.currentcommand.id' is getting the id of the current command (cursor location) but not if the cursor is located at an "endmeas/" line.
is this a bug or is there another way for me to know which feature the "endmeas/" belongs to?
unless there is another way for me to know my exact location in the editwindow?
if you don't know the answer to my roblem (which makes it hard to do some very useful stuff in automation) could you lease forward it to the correct erson (i assume you are in the software business at wai)?
i would areciate it very much!fff">
no need for the above - tried a little bit harder and found out that i could limit the enumeration of the commands with the getuniqueid roerty. however, i think that a roerty that would let the automation rogrammer know exactly where in the edit window the cursor is oioned would be a nice enhancement to the library (like editwindow.currentoion or commands.currentoion).
__________________
c-dmis v4.2mr1
horseower is how hard you hit the wall.
torque is how far you can take the wall with you.
">fff">
last edited by vt.se; 09-14-2008 at 03:12 mfff">..
vt.se
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】autorun alicationscrit in c-dmis - c-dmis user forum.txt huangyhg PC-DMIS 0 2009-04-06 05:26 PM
Pre-Order DMIS 5.1 Now! yogy 坐标测量机 0 2007-08-28 10:56 AM


所有的时间均为北京时间。 现在的时间是 02:36 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多