473,508 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using autocad using C

hi,
im trying to draw some rectangles,lines in autocad using c, is their
any function that can be used, plz help, also is it possible to read
values from a ms excel file in c

Apr 3 '07 #1
3 2757
On Apr 3, 9:47 am, "Aman" <mehraama...@gmail.comwrote:
hi,
im trying to draw some rectangles,lines in autocad using c, is their
any function that can be used, plz help,
The details and techniques of creating or manipulating an interface
between arbitrary C code and Autocad is out of the scope of this
newsgroup. You would best ask this question in a newsgroup that
relates to Autocad development, and not here.
also is it possible to read values from a ms excel file in c
Yes, it is possible. However, there are no standard APIs to perform
that task exclusively, and thus a solution, while achievable, is a
"simple matter of programming". You will have to determine the format
of the excel file contents, and use fopen() and fread() (or the other
f*() file I/O routines) to access the data.

HTH
--
Lew

Apr 3 '07 #2
"Aman" <me*********@gmail.comwrote in message news:
hi,
im trying to draw some rectangles,lines in autocad using c, is their
any function that can be used, plz help, also is it possible to read
values from a ms excel file in c
Go to the product vendors to find out how to integrate C with their product.
It is quite possible that autocad allow you to write plug-ins in C, but I
have no idea how to compile them or what interfaces to use to get access to
the autocad graphics system. AS anothe rposter notes, if you know the format
of an MS Excel file then in principle you cna parse it with low-level
routines. In practise this is likely to be far more trouble than it is
worth, and you are better off getting a library from Microsoft. However you
can do a lot with CSV files, which Excel will save. If you root around in
the "Fuzzy Logic Trees" section of my site you should find a parser for CSV
files.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Apr 3 '07 #3
On 3 Apr 2007 06:47:33 -0700, "Aman" <me*********@gmail.comwrote in
comp.lang.c:
hi,
im trying to draw some rectangles,lines in autocad using c, is their
any function that can be used, plz help, also is it possible to read
values from a ms excel file in c
Several people have responded that your question is beyond the scope
of this group, and indeed it is, but you can actually do both of these
things in standard C programs since both of these programs have text
file interfaces.

In the case of Excel, export your spreadsheet in one of the text
formats, such as comma delimited or tab delimited, and write your C
program to read the file and process the data as you want.

AutoCAD provides the feature of executing scripts from ordinary text
files, if you know what to put in them.

There is an example a program that generates script files for AutoCAD
on my web page http://jk-technology.com/C_Unleashed/code_list.html. If
you study it, you may figure out how to modify it to generate scripts
to do what you want.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
Apr 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1898
by: Bruce | last post by:
Hi: I was interested in installing AutoCAD 2005 on my computer with Win XP Pro. I went to the AutoCAD website, and it said something like "Windows XP Pro, and Service pak 2 are compatible with...
0
1370
by: Kathy | last post by:
Hi and Thanks for you help! Several years ago I created a Product Specification db that displayed AutoCad 2000 drawings in a report (The Spec Sheet) Recently we upgraded our AutoCad to the 2004...
0
1023
by: mhadi | last post by:
Hello I want to develope a solution for an electrical consultation company which requires to give an input of multilayered AutoCAD r14 file (.dwg). The electrical drawing is placed at one or...
2
2341
by: john m | last post by:
Hello, I downloaded the beta vb8 express thing and since installing it none of my AUTOCAD vba routines work anymore. I tried the AcadVBA newsgroup but no one else seems to have had this. My...
1
2417
by: john m | last post by:
i want to write a vb dotnet program to see if autocad is running and if not start it then just start to manipulate the application what is the correct method to do this? can anyone point...
4
5634
by: ARF | last post by:
I'm testing AutoCAD 2005 automation via VS2005 Pro C++/CLR and I'm getting fatal compiler errors. I start with a default C++/CLR class library project and modify it by adding the following...
29
16436
by: 63q2o4i02 | last post by:
Hi, I'm interested in using python to start writing a CAD program for electrical design. I just got done reading Steven Rubin's book, I've used "real" EDA tools, and I have an MSEE, so I know what...
3
3798
by: koliver | last post by:
Can anyone provide me with information on linking an Access database with GPS mapping software
1
2513
by: Zaher Rabah | last post by:
Hi I work on a program for Real Estate. All the maps pictures are found at AutoCad Software. I want to open AutoCad from Access . Or if we can open specific file name in AutoCad. Regards
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.