几何尺寸与公差论坛

 找回密码
 注册
查看: 1243|回复: 0

【转帖】autorun alicationscrit in c-dmis - c-dmis user forum.txt

[复制链接]
发表于 2009-4-6 18:06:32 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 18:04 , Processed in 0.035550 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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