Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

writing a program to interface with other programs


  • Please log in to reply
6 replies to this topic

#1 gib65

gib65

  • Members
  • 162 posts
  • OFFLINE
  •  
  • Local time:11:19 PM

Posted 04 November 2011 - 11:23 AM

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 C# 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?

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:19 PM

Posted 04 November 2011 - 11:33 AM

It is not Windows that is the issue. It is whether or not AutoCad has an API that allows external programs to interface with it. Applications are closed processes; It would not be desirable to allow programs to interact with each other.

Edited by groovicus, 04 November 2011 - 11:37 AM.


#3 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:08:19 PM

Posted 04 November 2011 - 11:56 AM

Apparently, AutoCAD can be automated by using a scripting language. You could write your program to generate script files and then execute the scripts in AutoCAD.

#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:19 PM

Posted 04 November 2011 - 12:37 PM

Cool, except as you say, that only works inside Autocad. That is a neat feature though.

#5 gib65

gib65
  • Topic Starter

  • Members
  • 162 posts
  • OFFLINE
  •  
  • Local time:11:19 PM

Posted 04 November 2011 - 03:52 PM

It is not Windows that is the issue. It is whether or not AutoCad has an API that allows external programs to interface with it. Applications are closed processes; It would not be desirable to allow programs to interact with each other.


I know that AutoCAD is a very 'open' application in this sense - much like Andrew pointed out.

In fact, after doing a search on AutoCAD APIs, I found this: http://usa.autodesk.com/adsk/servlet/index?id=1911627&siteID=123112#section2.

So thanks everyone for prompting me to search for (and find) what I was looking for.

#6 Didier Stevens

Didier Stevens

  • BC Advisor
  • 2,698 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:19 AM

Posted 04 November 2011 - 06:21 PM

Specifically, I will be beginning a project soon in which I have to program in C# 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.).


Isn't there a DXFIN command in AutoCAD anymore?

Didier Stevens
http://blog.DidierStevens.com
http://DidierStevensLabs.com

SANS ISC Senior Handler
Microsoft MVP 2011-2016 Consumer Security, Windows Insider MVP 2016-2019
MVP_Horizontal_BlueOnly.png

 

If you send me messages, per Bleeping Computer's Forum policy, I will not engage in a conversation, but try to answer your question in the relevant forum post. If you don't want this, don't send me messages.

 

Stevens' law: "As an online security discussion grows longer, the probability of a reference to BadUSB approaches 1.0"


#7 patmang

patmang

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:10:19 PM

Posted 27 November 2011 - 08:15 PM

http://www.autodesk.com/autocad-net-developers-guide

That should help get you on your way, as well as http://www.vbcad.com and http://www.theswamp.org -these are great places and just exactly what you're looking for!

Edited by patmang, 27 November 2011 - 08:17 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users