×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

CAD type interface with Web Application

CAD type interface with Web Application

CAD type interface with Web Application

(OP)
This maybe a long shot, but I figured I would ask anyways.

I have built my website in python using Django and have my blog up and running.

I now want to dabble in adding some calculations to my website and one of the capabilities I am going to need is a CAD type interface to allow me and users to draw rectangles, polygons, etc.

Does anyone have some recommendations/ideas on how to embed some CAD type interfaces within my website? I want to be able to draw on my web application and perform some functions on the things drawn on screen.

S&T - www.re-tug.com

Replies continue below

Recommended for you

RE: CAD type interface with Web Application

(OP)
After some research, it might be time to learn some javascript...

https://tmjohnst.github.io/JSCAD/

This looks promising and very similar to what I wanted to try to achieve.

Reading about the python libraries such as pyqt and tkinter, it sounds a little bleak to try to achieve.

S&T - www.re-tug.com

RE: CAD type interface with Web Application

Active drawing on the webpage it seems a mix of javascript and canvas element is probably a good first step: Link

You’ll need to figure out a way to map the pixel dimensions of the object to real dimensions if your planning to run calcs off the data.

Webgl is another route: Link

My Personal Open Source Structural Applications:
https://github.com/buddyd16/Structural-Engineering

Open Source Structural GitHub Group:
https://github.com/open-struct-engineer

RE: CAD type interface with Web Application

I wouldn't call it a CAD type interface, but Excel lets you draw sticks and triangles, and you can extract coordinates and other parameters from the drawn objects, or draw shapes from coordinates. I have done a fair bit with VBA but you would need to use Javascript for the web, so good luck with that.

A possibility might be to link Excel to Python with pyxll to do all the hard work, and just use Javascript as an interface, but I haven't looked into that. I don't think xlwings would work, because that uses VBA to link to the Python code, so won't work on-line.

Example of plotting Excel shapes with VBA:
https://newtonexcelbach.com/2008/11/11/drawing-in-...

Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close