473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CAD graphics with Python: Which lib, pack, tool?

Hi all,

I'm dev'ing a control app, that has as a part of it a window showing
CAD-drawings.

So I'd like to display drawings coming from DXF files. In the first place
I'd start displaying rectangles and circles, i.e. simple shapes.
Nevertheless, the goal is to scan DXF files for the shapes to be displayed.

PythonCAD comes to my mind. But, alas, yet I did not succeed in installing
it on my Win2k box - the underlying graphics toolkit is missing DLLs.

But anyway, as I do not want to develop a full blown CAD program (I "simply"
want to display, zoom an rotate them), there's probably somthing simpler out
there for my purposes.

My app uses Python 2.3.x and wxPython (2nd latest release, upgrade any time
soon). I dev it on Win2k which will be the first target platform. But I see
Linux as a target already on the horizon.

So the lib should run on Win2k, but not prevent me from running on Linux.
The lib should integrate somehow with wxPython.

OTH, there are graphic libs 'n' packs out there similar to wxPython (was it
FOX?). So, if there are many more pros than cons, I'd consider changing from
wxPython.

Any hint is welcome.

Best regards
Franz GEIGER


Jul 18 '05 #1
1 1765
"F. GEIGER" <fg*****@datec.at> wrote in message news:<c6**********@newshispeed.ch>...
Hi all,

I'm dev'ing a control app, that has as a part of it a window showing
CAD-drawings.

So I'd like to display drawings coming from DXF files. In the first place
I'd start displaying rectangles and circles, i.e. simple shapes.
Nevertheless, the goal is to scan DXF files for the shapes to be displayed.

PythonCAD comes to my mind. But, alas, yet I did not succeed in installing
it on my Win2k box - the underlying graphics toolkit is missing DLLs.

But anyway, as I do not want to develop a full blown CAD program (I "simply"
want to display, zoom an rotate them), there's probably somthing simpler out
there for my purposes.

My app uses Python 2.3.x and wxPython (2nd latest release, upgrade any time
soon). I dev it on Win2k which will be the first target platform. But I see
Linux as a target already on the horizon.

So the lib should run on Win2k, but not prevent me from running on Linux.
The lib should integrate somehow with wxPython.

OTH, there are graphic libs 'n' packs out there similar to wxPython (was it
FOX?). So, if there are many more pros than cons, I'd consider changing from
wxPython.

Any hint is welcome.

Best regards
Franz GEIGER


I was going to suggest looking into embedding a drawing viewer such as
Volo View as an ActiveX component, until I realized that you want a
cross platform solution. You may want to look at QCad which is GPLed
and cross platform (I think through GTK), but I have no idea what it
would take to embed it into your app. I wonder if looking at the code
and/or talking with the developer you could come up with a simple DXF
reader. (Of course you could study the DXF format on your own as
well, but I think that is what you are trying to avoid. :)

-Ruben
Jul 18 '05 #2

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

Similar topics

7
by: Catalin | last post by:
How can I make executables with python? I found some utilities that claim they can do something like that like Installer and py2exe but they actualy pack the code in a huge arhive! This solves the...
5
by: John Ladasky | last post by:
Hi, folks, At the beginning of 2003, I was a frustrated computer user, and lapsed programmer, with problems to solve that screamed for programming. Thanks to the Python language and community, I...
0
by: Mark S Pryor | last post by:
dear c.l.p, I'm posting a Py script to change the wordfile from inside the UE editor. Define this into the adv. tool menu. I found 100 posts in groups.google discussing Python and UltraEdit....
2
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c...
7
by: Michael Galvin | last post by:
I am trying to use Python to send to the printer a calender filled with a mix of text and simple graphics. I want to draw on the printed page something like a table with 6 rows and 7 columns to...
0
by: | last post by:
Greetings. In an effort to get python2.4 on my Centos 3.7, I installed the python bootstrap rpm. This installed 2.4 alongside 2.2 and updated yum to 2.4.0. Oddly, it didn't create a symlink...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
12
by: gsal | last post by:
What would be the easiest way to go about offering 3D graphics for the purpose of rendering geometry? Suppose engineers (my co-workes) have to design some enclosure, nozzle, bracket, or whatever...
9
by: igor.tatarinov | last post by:
Hi, I am pretty new to Python and trying to use it for a relatively simple problem of loading a 5 million line text file and converting it into a few binary files. The text file has a fixed format...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...
0
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,...

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.