writing a program to interface with other programs
There must be some mechanism that windows provides that allows an application programmed in whatever language to interface with other programs running on the same computer.
Specifically, I will be beginning a project soon in which I have to program in Java an application that reads from a dxf file and produces a plan/model from it in AutoCAD. It needs to communicate with AutoCAD and send it instructions (ex. draw line, make face, create new layer, etc.).
Does Windows have resources/mechanisms that allow one to do this in Java? Or can Java do it on its own without the blessing of the OS?
Re: writing a program to interface with other programs
What does the AutoCAD program have for public interfaces to receive input/instructions from other programs?
One way Java has to "interface" to the GUI of other programs would be via the Robot class.
Re: writing a program to interface with other programs
I'm not sure what AutoCAD uses to interface with other programs but to interface with humans it uses the keyboard and mouse (but that's obvious).
I will look into the Robot class. Thanks for that.
Re: writing a program to interface with other programs
Sure would have been nice to know you'd already received help here.
Crossposted: writing a program to interface with other programs
Re: writing a program to interface with other programs
Quote:
Originally Posted by
KevinWorkman
Yes, you got me on that one. Very sorry about that.
I've been kinda anxious to get some answers to this because my butt is on the line, and with all the multitasking I've been doing, remembering to be forward with my cross-posts slipped my mind (I realize that's no excuse - I should know better :(doh):). I will right away mention my cross-post on the other forum so I don't upset them as well.
Thanks for reminding me of the proper edicate!