Thread Subject: Issuing AutoCAD commands through MatLab

Subject: Issuing AutoCAD commands through MatLab

From: Omni Domni

Date: 18 Jul, 2009 22:09:02

Message: 1 of 2

Hello,

My problem is the following:
I have a set of cartesian coordinates data in matlab connected with lines.
What I need to do is plot those lines in autocad. One simple way to do this would be to export the matlab data to a .txt file and use a simple routine in Autolisp. However I am looking for a different solution..

Is there any way to manipulate autocad through matlab?

For example..issuing the command plot_line([x1 y1],[x2 y2]) in matlab would result in a line plotted between the points with those coordinates in autocad.

Where could I start looking...?

Subject: Issuing AutoCAD commands through MatLab

From: us

Date: 18 Jul, 2009 22:34:02

Message: 2 of 2

"Omni Domni" <eloykarakh@hotmail.com> wrote in message <h3th5u$q17$1@fred.mathworks.com>...
> Hello,
>
> My problem is the following:
> I have a set of cartesian coordinates data in matlab connected with lines.
> What I need to do is plot those lines in autocad. One simple way to do this would be to export the matlab data to a .txt file and use a simple routine in Autolisp. However I am looking for a different solution..
>
> Is there any way to manipulate autocad through matlab?
>
> For example..issuing the command plot_line([x1 y1],[x2 y2]) in matlab would result in a line plotted between the points with those coordinates in autocad.
>
> Where could I start looking...?

does autocad have a com interface?...
if so, you may want to look at

     help actxcontrol;
     help actxserver;

us

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
reference us 18 Jul, 2009 18:39:03
rssFeed for this Thread

Contact us at files@mathworks.com