几何尺寸与公差论坛

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

【转帖】suppressing the insert paste dialog

[复制链接]
发表于 2009-4-12 22:31:28 | 显示全部楼层 |阅读模式
suppressing the insert paste dialog
i believe there has been a thread on this before but i cannot remember if it ever got solved. is there a way to suppress the insert paste dialog box you get when for example in this case you paste a sheet and it asks where to insert it?
luke i'm in the same boat right now, and i haven't seen anything in the api.
could you just use windows sendkeys or somethign along those lines to get paste the dialog on each insert, and then do a reordersheets?
yes you could be its long winded and i'm hoping for a cleaner solution.
luke, you ever figure anything out for this?
not as of yet i have sent a request in to api support to fix the editcopy function first as that doesn't work for sheets anyway, once that is solved i will ask for a new function to suppress the paste dialog using api instead of native hooks.
editcopy is working for me for sheets, though i was having trouble with selectbyid2. if i manually select a sheet, i'm able to use modeldoc2::editcopy and modeldoc2::paste
i'm not sure i'm using the call correctly...
boolstatus = part.extension.selectbyid2(sheetname, swselsheets, 0, 0, 0, false, 0, nothing, swselectoptiondefault)
edit: it also seems that if you do anything to programmatically change the focus of the manual selection, that it will cause it to fail. i tried using drawingdoc::activatesheet to see if that would allow me to copy it and it failed to copy/paste anything at all.
edited: 11/11/2008 at 10:31 am by blake dahle
yes the editcopy works its the selectbyid2 for sheets that won't allow copying, yet there is no other way to select a sheet. sw have acknowledges the problem and are fixing it
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 18:55 , Processed in 0.035827 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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