乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 57|回复: 15

[编程交流] "... is currently in use by:"

[复制链接]

59

主题

327

帖子

268

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
295
发表于 2022-7-6 10:13:00 | 显示全部楼层 |阅读模式
Hi guys,
 
Since my collegue (=boss) tends to keep drawings open when having his weekend or day off, I experience the trouble not to be able to open that drawing. I'll have to make some calls and the drawings are then closed by him from a remote desktop. Of course this is the best way besides some education he desperately needs. It gets a bit nastier when he's not near a PC, then I will have to skip that drawing. Btw: I am not allowed to log in my bosses PC. So what to do... (I know what but what if he won't listen...)
 
So I had some thoughts to build in a small routine on his computer that would close the drawing when I say so. Be kind with me, I do not want to develop some evil lisp. Maybe  we can exchange thoughts and then decide wether it is a solution or not.
 
My restrictions would be that a closed drawing is saved with a new name like "drawingname_force-closed_date.dwg". Also an alert that says "drawingname.dwg" was forced to close on "date" by "login". The bigger part I believe I can write my own but I have no experience on how to make a lisp react on input from over the network...
 
Any help / thoughts are appreciated.
 
Kind regards,
MarcoW.
回复

使用道具 举报

20

主题

257

帖子

237

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
100
发表于 2022-7-6 10:18:25 | 显示全部楼层
pull the plug out the wall?
oh sorry you're trying not to be evil!
回复

使用道具 举报

4

主题

327

帖子

324

银币

初来乍到

Rank: 1

铜币
19
发表于 2022-7-6 10:22:04 | 显示全部楼层
I believe there would be way too many issues in writing an access program.
What if the computer is in sleep / hibernate mode or password protected?
If you have administrative access to the server you could log him off from there.
If you have physical access to the router you could unplug his cable.
You could open the drawing in read only mode the do a save as till he returns.
You could make a giant post-it note and glue it to his screen saying, “close out of any drawings”.
回复

使用道具 举报

59

主题

327

帖子

268

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
295
发表于 2022-7-6 10:27:26 | 显示全部楼层
Right!
 
Okay, that's a hard one...
 
Not an option.
 
I might try this... had not thought of that! The drawing will be accessible I believe... but in it's last saved state.
 
This is the same as the previous option.
 
His screen has no more room! Maybe time for a new 42" screen?
 
Besides these "physical" actions ... the idea of closing the drawing "by remote" isn't that strange I believe.
 
I figured the following: what if...
1. when opening a drawing, write a *.txt file in the same folder
2. when closing the drawing, this file is deleted.
3. During session, "every 3 minutes", there is a check wether the contents of the textfile matches a string, like the loginname.
4. If the contents of the file is matching, nothing happens
5. If it does not match, it saves änd closes.
 
So basically, if the drawing itself becomes idle (is that correct english) for more than 3 minutes it is automatically saved and closed.
 
Not a completely brilliant idea but it is a start I suppose.
Let's have a brainstorm...
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 10:29:04 | 显示全部楼层
Educating your boss on the downside to keeping a drawing open on his computer and then leaving for the weekend seems a far easier solution than trying to come up with a program.
回复

使用道具 举报

17

主题

127

帖子

110

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
85
发表于 2022-7-6 10:34:38 | 显示全部楼层
 
 
If this is programatically feasible then I feel this is a great idea. The only thing I'd change would be the time before the drawing is saved and closed. It takes me at least 10 minutes to walk to the nearest water fountain and fill my bottle up and make it back to my desk. I would probably suggest something like 30 minutes. However this is all relative. If 3 minutes is good for you then so be it.
 
 
 
Unfortunately if his boss is like mine, then he really is computer illiterate and I could probably teach a monkey proper CAD procedures before I could teach him, lol. That's what you get when you take someone with a business degree from like 1970 and make him in charge of a CAD startup group. Don't get me started.
 
Lonnie
回复

使用道具 举报

4

主题

327

帖子

324

银币

初来乍到

Rank: 1

铜币
19
发表于 2022-7-6 10:38:09 | 显示全部楼层
I was intrigued so I started to play around and figured out a possible way to achieve this.
Regular lisp does not have the ability to continuously monitor in the background and let the user work in AutoCAD. OpenDCL has a function called dcl_delayedinvoke that could be used to accomplish this task.
I played around with it and got it to monitor acad with the use of an editor reactor.
That being said I’m not sure about all of the issues involved with monitoring acad to get the program to trigger so it will take some experimenting on your part to figure out all the issues.
First you will need OpenDCL, it’s a free program and I love it. You can download it from opendcl.com.
Once you have the program written it will need to be put on the other computer and loaded every time a drawing is opened.
If you are not familiar with opendcl , it has a small learning curve but I’ll be glad to help and there are others that will help also.
Here is what I suggest for the program.
On you computer you will need a small program to write a file to a specific folder and location on the server. This file will be formatted with the Date,time and path of the drawing in question.
The program on the other computer will check for this file every X minuets if there are no active commands being issued from the user. If the program finds the file it will read it, and if the date and time and path info are correct then it will perform whatever action you need.
This is something you really need to put a lot of thought and trial into before you put it on the Boss’s computer.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 10:44:02 | 显示全部楼层
Every time the boss does something like this pull the plug on his machine and crash his hard drive.  After six or seven times perhaps the computer won't boot up because the hard drive has been damaged.  That should teach him a lesson he won't forget because he'll have to spend money to fix it.  When wallets get whacked wisdom is finally achieved.
 
The vast majority of the responses you're getting do not address the root cause of the problem.  
 
What are the ramifications of putting a drawing monitoring program on your boss's computer without his knowledge?  Or, did you plan on telling him what you are going to do and why?
回复

使用道具 举报

17

主题

127

帖子

110

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
85
发表于 2022-7-6 10:45:20 | 显示全部楼层
 
 
I would guess the ramifications of putting an unauthorized, quasi-illegal monitoring program on the boss' PC would be equal to deliberately sabotaging it.  Perhaps either would get you fired.
 
Lonnie
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 10:49:55 | 显示全部楼层
That's about the way I see it too.  So my suggestion would be at the very least talk to the boss and explain the "benefit" of installing this program, if it can be done, because the fact that a drawing he knows was open on his computer when he left the office was closed out, opened by someone else, worked on and then saved without his knowledge may cause him to rethink his decision about keeping the other CAD operator employed.  Catch my drift?
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-7-5 22:02 , Processed in 1.109815 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表