Questions tagged [cad]

Computer-aided design (CAD) is the use of computer technology for the process of design and design-documentation.

Computer-aided design (CAD) is the use of computer technology for the process of design and design-documentation. CAD is relied upon in various fields such as engineering, manufacturing and survey. Many CAD programs have an in-built means of programming their functionality. Examples being a macro language or lisp. Other programs may offer, or have had reverse-engineered, an API for more in-depth coding. There are various drawing formats, with .dxf being a ubiquitous one for interchange.

552 questions
2
votes
1 answer

Language and Approach to a Drag-and-Drop Drawing Area for a new CAD GUI?

I'm trying to make a new CAD program from scratch. The GUI is mostly easy to make in C#; it's just dragging-and-dropping things like command buttons and writing their associated code. However I want the user of my CAD to be able to drag-and-drop…
2
votes
2 answers

Calculate forces on a box

Story: I am developing a construction tool for wooden boxes. A box consists of a set of boards, each board is represented as 3 3D-vectors, and one placement vector. Each box is visualized using OpenGL. Now, these boxes will be moved around with…
Benjamin
  • 332
  • 2
  • 14
2
votes
0 answers

How do I scale to real-world units when generating printed output from a Cocoa app?

I am writing a specialized CAD tool in Cocoa. The tool reads "Gerber" files that contain precise dimension information and very fine details, and it needs to produce printed output that exactly corresponds to the specifications (assuming they're…
Kaelin Colclasure
  • 3,925
  • 1
  • 26
  • 36
2
votes
1 answer

Triangle vertex winding order in stereolithography (STL) files (triangulated objects)

I'm working on an STL file importer and thought I'd make use of the normal given to determine the triangle winding order. Sample data with 4 triangles is included below (original data has over 70k triangles). My code's logic computes the normal…
PeteUK
  • 1,062
  • 12
  • 26
2
votes
1 answer

Are values in STEP part 21 (ISO 10303-21) CAD files freely embeddable in entities?

Are values in entities freely embeddable in an ISO 10303-21 formatted file? In all the examples I've seen that were generated from CAD programs, length_measure is embedded in uncertainty_measure_with_unit, like this: #83 =…
Robert B
  • 3,195
  • 2
  • 16
  • 13
2
votes
2 answers

curves representable in OpenGL

I am a beginner in CAD development & want to know some things about OpenGL. My main objective is to represent conics, cycloid, epicycloid, hypocycloid, involutes, etc Can i directly represent them using some trigonometry, or do i need to convert…
Cool_Coder
  • 4,888
  • 16
  • 57
  • 99
2
votes
2 answers

Coding library to convert STEP to STL without large output file sizes

I am building a service to convert STEP files to STL files for user viewing. This conversion is just so the user can view the file uploaded to the server. It is not used to modify the file. However, the tested conversion libraries can not…
M. Nicol
  • 73
  • 1
  • 5
2
votes
2 answers

Access STEP Instance ID's with PythonOCC

Let's suppose I'm using this STEP file data as input: #417=ADVANCED_FACE('face_1',(#112),#405,.F.); #418=ADVANCED_FACE('face_2',(#113),#406,.F.); #419=ADVANCED_FACE('face_3',(#114),#407,.F.); I'm using pythonocc-core to read the STEP file. Then the…
Florian Ludewig
  • 4,338
  • 11
  • 71
  • 137
2
votes
0 answers

Is there any way to measure similarity score between two CAD models saved as meshes (arrays of [x,y,z] co-ordinate sets) in JSON using Python?

I want to obtain a similarity score between two JSON models i.e. {x,y,z} coordinates usually obtained when CAD models are saved as meshes to do things like sending them to a 3D printer. Following are the subsets of the two JSON Models: Model 1: [ …
2
votes
0 answers

Display large vector collections in WebGL

I was looking at three.js as a replacement of deck.gl in our existing WebGL software, for reasons not relevant to this question. One of the input data sources is large vector data exported from CAD systems. One scene integrates about 5 collections…
Pavel Zdenek
  • 7,146
  • 1
  • 23
  • 38
2
votes
0 answers

Reading STEP files using python and giving them as input to a neural network

I am trying to make a DeepLearning project that uses STEP files as input. However, I am not sure in which way should I give the contents of the files to the neural network as input. For now, I am creating a graph connecting all the entities to each…
Aman Savaria
  • 164
  • 1
  • 1
  • 11
2
votes
0 answers

is there a general code that can export Matplotlib plots to .stl?

I have already downloaded the Numpy-stl library but I am not sure how a general export would work for a simple code for example a cube? So, if I plot a Cube in Matplotlib, and want to export it to an .stl file to be able to open in CAD, how should I…
Arpan Ray
  • 21
  • 1
2
votes
0 answers

How to convert a CatPart file to STL format in python?

I'm trying to convert a CatPart file to stl format in python. I found the Pycatia library, but it only works with Catia V5 installed. Is there any other way to convert CatParts to STL directly or indirectly in Python?
Nathan-ghk
  • 21
  • 1
2
votes
3 answers

Moving an engineering application from standalone to internal to CAD

I have a large MFC C++ application that I would be very keen to port into AutoCAD and IntelliCAD. AutoDesk offer Object ARX for this purpose, which replaces the older and slower ADS technology. IntelliCAD, afaik only supports ADS. Has anyone out…
SmacL
  • 22,555
  • 12
  • 95
  • 149
2
votes
4 answers

How to floor objects in OpenSCAD (make it flush on the Z axis for 3d printing)

If you want to 3D print something, then you have to make sure that your object is on the positive side of all axis. You can't have an object going through the negative Z axis otherwise it will not be proper on the printer bed ( I think). So how can…
Mohammed
  • 2,215
  • 1
  • 9
  • 8