Constraint-based geometry sketcher for blender

Overview

CAD Sketcher CAD Sketcher

Discord GitHub issues by-label GitHub issues by-label

Constraint-based sketcher addon for Blender that allows to create precise 2d shapes by defining a set of geometric constraints like tangent, distance, angle, equal and more. Sketches stay editable and support a fully non-destructive workflow.

⚠️ Experimental addon: This is still work in progress, don't use it on production files without a backup.

Minimum version: Blender 2.92

More than just an addon learn more: CADsketcher.com

Links:

Addon installation

  • Gumroad Download Gumroad (This way we can update you about big updates and ask your opinion on big changes)
  • Download the ZIP archive (do not unpack it after downloading)
  • Open Blender and go to: Edit > Preferences > Add-ons > Press "Install..." button
  • Browse to the location of the ZIP and select it, then press "Install Add-on"
  • Enable the addon by pressing the checkbox

Dependency installation

CAD sketcher heavily depends on the solvespace python module and won't be functional without it.

  • Inside the addon's preferences check the "Solver Module" tab to see if the module is already available
  • Press "Install from PyPi"

Check the installation chapter for in-depth instructions.

Usage

Follow the getting started guide to get familiar with the addon.

Comments
  • [BUG] Dark and Light themes not working in Edit > Preferences > Themes

    [BUG] Dark and Light themes not working in Edit > Preferences > Themes

    Contact Details

    Dark, Light bug on Edit - Preferences on Add-on tab

    Description

    image

    Dark and Light bug not work on Blender 3.2.0 and 3.2.1 image

    then next click Dark image

    Addon Version

    0.24.0

    Blender Version

    3.2.0 and 3.2.1

    What platform are you running on?

    Mac OSX

    bug 
    opened by mac4kent 41
  • Create

    Create "constructor" constraints.

    Fixes #258

    20220914_12h50m35s_grim 20220914_12h47m27s_grim

    TODO

    • [x] Update constraint value from the attached entity instead of the solver .. hmmm
    • [x] Change look
    • [x] Make dimension read only when is_reference is True.
    • [x] Possibly create class DimensionalConstraint in base_constraint.py
    • [x] Fix bug where color is not proper during mouse hover right after switching reference mode
    • [x] Revert change where reference constraints are filtered out of the constraints menu
    opened by amrsoll 28
  • Installation problems on Mac

    Installation problems on Mac

    Contact Details

    [email protected]

    Description

    Trying to follow the instructions at https://hlorus.github.io/CAD_Sketcher/installation/

    Okay I click on the "Zip Archive" but being on a Mac this automatically gets expanded in $HOME/Downloads. Okay I use compress to create a zip file and then I think I am able to install the Addon.

    I assume it is not working because I do not have blender with solverspace installed. ( In the past I have installed solverspace as an app I assume from a dmg but it was some time ago )

    The instructions say It's recommended to use the addon with Blender installed from the official website. What does that mean? I have to install a copy of Blender with solverspace already installed or just that blender needs to have been installed from official website?

    Then it gives the option Install from PyPi - Press. "Install from PyPI" but I see nothing like that to press. Try manually installing with pip install py-slvs. Restart Blender but no solverspace in Bender Preferences.A bug happened!

    Addon Version

    latest

    Blender Version

    3.2.2

    What platform are you running on?

    Mac OSX

    bug 
    opened by KeithSloan 13
  • construction line problem (?)

    construction line problem (?)

    1. draw rectangle, make it 4 meters on one side and 7 on the other.
    2. draw a diagonal line top right to bottom left, and make it a construction line
    3. click on the midpoint and the line and make the line a construction line.
    4. Resize the box to 20mm on one side and 40mm on the other. The construction line won't reach all the way to the bottom left.
    5. Delete the construction line and draw a new line top right corner to bottom left.
    6. Make it a construction line. The new line doesn't go all the way to the bottom left. Repeated attempts will produce the same result. Expected the original construction line to resize with the rectangle. Otherwise, expected the new construction line to maintain length when converted from a regular line. Using Blender 3.1.0 and latest version of sketcher (downloaded april 23) cosntructionLine
    bug 
    opened by pgrove604 10
  • Solidifying a sketch - Jagged result

    Solidifying a sketch - Jagged result

    I might be missing something, but is there a way to correct the 'jagged' result of solidify modifier? https://user-images.githubusercontent.com/507113/134035213-0180d4e9-b9dc-470f-8590-b8a25f85f41b.mp4

    opened by theoryshaw 10
  • Display shortcut hints for operators

    Display shortcut hints for operators

    This is proposal for #95

    • Extract out all the operators' names into a separate module to be reused without introducing cycle dependencies. Also put all the names in one place
    • Original thought was to have each operator defines its own keymap (makes more sense in term single responsibility) but due to the nature of key mapping where management/cross reference are more important, move them to a common place keymaps.py to be shared across.

    Multiple shortcuts: image

    Single shortcut: image

    opened by BaoNTGH 9
  • Line width not working on mac

    Line width not working on mac

    Description It may be a mac only thing, or resolution dependant- retina 13,3-inch (2560 × 1600)- the outer lines for sketching are too thin to use or select. It's an issue from the start- really hard to activate a plane when creating sketch (basically pixel thin..should it also be selectable from the "face" of the plane, not only the edge?), hard to select sides etc to add constraints.

    To Reproduce Steps to reproduce the behavior:

    1. Using the add-on on Macbook air M1

    Expected behavior To select the planes and sketche's edges without a hassle.

    System Information:

    • OS: macOS Monterey 12.3.1
    • Blender Version: 12.3.1
    • Addon Version: 0.20.0
    thin line blender bug gpu 
    opened by mervenca 9
  • [BUG]  Redundant constraints result in

    [BUG] Redundant constraints result in "Unknown Failure".

    Description

    I made a simple sketch with a redundant constraint and noticed that the solver gives me the error message "Unknown Failure: Cannot solve sketch due to unknown failure".

    Expected result: A message saying that there are redundant constraints that highlights the constraints that may be removed. Additionally, I would expect the failure to be more visually noticeable (e.g. colored text or other kind of pop up notification).

    Actual Result: "Unknown failure" is displayed in the notification area and the sketch becomes unresponsive (no dragging or other changes seem possible).

    Constraint_failure.blend.zip

    Addon Version

    0.25.0

    Blender Version

    3.2.2

    What platform are you running on?

    Mac OSX

    feature request 
    opened by ftc 8
  • Reference Dimensions

    Reference Dimensions

    Discussed in https://github.com/hlorus/CAD_Sketcher/discussions/84

    Originally posted by TheMakerTales April 30, 2022 A "construction" mode for dimensional constraints. Sometimes you want to know how long or round a part of a sketch is but not actually contain it.

    opened by hlorus 8
  • add margin for Distance dimension text (solves Bug 145) - comments addressed

    add margin for Distance dimension text (solves Bug 145) - comments addressed

    WIP. Distance constraint looks OK. Angle and Diameter not implemented yet.

    https://user-images.githubusercontent.com/10360161/173745629-c30901cc-6c7c-482a-b42a-945c8136047c.mp4

    opened by exegetor 8
  • Support entity naming

    Support entity naming

    • By default, name will be generated by combining type and index.
    • Naming could be done through entity's context menu and also in entity browser
    • In entity browser, selector had been changed to the radio button in first column
    • name is introduced as StringProperty on SlvsGenericEntity as a wrapper of name property to provide default name value for entities saved by previous CAD Sketch plugin where name were not populated

    This is to address issue #53

    Change name in context menu image

    Change name in entity browser image

    Selection mode image

    opened by BaoNTGH 8
  • Feature(s) Request: Select All, Scale, Rotate, export sketch

    Feature(s) Request: Select All, Scale, Rotate, export sketch

    Hello everybody, You are Great, thanks a Million for your efforts. I've gone through the Roadmap and Issues before adding this: -Select all: maybe the same shortcut as Blender, lasso selection would be appreciated. -Move (on the roadmap), but scale and rotate too would be helpful. -copy paste (also on the roadmap): what about paste transformed (from solvespace) move or scale or rotate, or alltogether at once. -Export sketch to: -solvespace slvs (if possible), -SVG (blender has no exporter, I found an addon -bezier2svg- but will export the curve not the sketch with its constraints), -DXF (blender exports dxf from mesh not from curve and that blows the Idea of exporting).

    My use case: I'm an Interior designer, 1-I need to show renders to the client(covered by Blender-Cycles) 2-I need to send files to the CNC Router (here is where I need to export clean SVG or DXF for the router shop to generate .Gcode 3- I need to generate 2D shop drawings for manufacturing(covered by blenderbim or sverchok or by exporting to freecad and finish there).

    opened by Shaddy-ElDesouky 0
  • [BUG] Reversed normals

    [BUG] Reversed normals

    Contact Details

    No response

    Description

    c+N helps, but after edit sketch it's reverse it again

    2022-11-23x09:28:03

    Addon Version

    0.25.0

    Blender Version

    3.3.1

    What platform are you running on?

    Linux

    bug 
    opened by chiboreache 0
  • Arc Angle

    Arc Angle

    Hello,

    is there a way to define an angle for an arc opening. i can fix the corner points with constraints, but it would be much more convenient to fix the opening angle of the arc directly.

    opened by void-dragon 0
  • [BUG]  Supplementry Angle Unit Input Doing strange Things

    [BUG] Supplementry Angle Unit Input Doing strange Things

    Contact Details

    No response

    Description

    When you try and control/input an angel to a supplementary angle things go a little weird. @hlorus hase taken a small look and said that it looked slightly "random" might be a good call for @amrsoll to take a look at it as you have the most experience working on this area of the code,

    Capture (1)

    Addon Version

    latest

    Blender Version

    3.3

    What platform are you running on?

    Windows

    bug 
    opened by TheMakerTales 0
  • hole dimension constrain frozen[BUG]

    hole dimension constrain frozen[BUG]

    Contact Details

    [email protected]

    Description

    I created a hole in Cadsketcher. Next, I applied a dimensional constrain (alt o). The result was that the dimension cannot be moved or changed. a workaround is to use the sketcher menu, look for the constrain (show/hide) then change dimemension. however, the dimension text stays inside the hole. I tried outside of a model but same results. While following the CAD Modeling In Blender 3.2 | Using CAD Sketcher you tube, worked once. if I tried new holes then the issue arises. I also seen intermittent issue with regular dimensions but more prominent with holes and arcs.

    Addon Version

    0.25

    Blender Version

    3.3.1

    What platform are you running on?

    Windows

    bug 
    opened by adonishmedia 1
Owner
null
Official code for the paper: Deep Graph Matching under Quadratic Constraint (CVPR 2021)

QC-DGM This is the official PyTorch implementation and models for our CVPR 2021 paper: Deep Graph Matching under Quadratic Constraint. It also contain

Quankai Gao 55 Nov 14, 2022
Combining Reinforcement Learning and Constraint Programming for Combinatorial Optimization

Hybrid solving process for combinatorial optimization problems Combinatorial optimization has found applications in numerous fields, from aerospace to

null 117 Dec 13, 2022
Robot Reinforcement Learning on the Constraint Manifold

Implementation of "Robot Reinforcement Learning on the Constraint Manifold"

null 31 Dec 5, 2022
ISBI 2022: Cross-level Contrastive Learning and Consistency Constraint for Semi-supervised Medical Image.

Cross-level Contrastive Learning and Consistency Constraint for Semi-supervised Medical Image Introduction This repository contains the PyTorch implem

null 25 Nov 9, 2022
Reusable constraint types to use with typing.Annotated

annotated-types PEP-593 added typing.Annotated as a way of adding context-specific metadata to existing types, and specifies that Annotated[T, x] shou

null 125 Dec 26, 2022
Based on the paper "Geometry-aware Instance-reweighted Adversarial Training" ICLR 2021 oral

Geometry-aware Instance-reweighted Adversarial Training This repository provides codes for Geometry-aware Instance-reweighted Adversarial Training (ht

Jingfeng 47 Dec 22, 2022
Blender Python - Node-based multi-line text and image flowchart

MindMapper v0.8 Node-based text and image flowchart for Blender Mindmap with shortcuts visible: Mindmap with shortcuts hidden: Notes This was requeste

SpectralVectors 58 Oct 8, 2022
Differential rendering based motion capture blender project.

TraceArmature Summary TraceArmature is currently a set of python scripts that allow for high fidelity motion capture through the use of AI pose estima

William Rodriguez 4 May 27, 2022
potpourri3d - An invigorating blend of 3D geometry tools in Python.

A Python library of various algorithms and utilities for 3D triangle meshes and point clouds. Managed by Nicholas Sharp, with new tools added lazily as needed. Currently, mainly bindings to C++ tools from geometry-central.

Nicholas Sharp 295 Jan 5, 2023
Official PyTorch implementation of Synergies Between Affordance and Geometry: 6-DoF Grasp Detection via Implicit Representations

Synergies Between Affordance and Geometry: 6-DoF Grasp Detection via Implicit Representations Zhenyu Jiang, Yifeng Zhu, Maxwell Svetlik, Kuan Fang, Yu

UT-Austin Robot Perception and Learning Lab 63 Jan 3, 2023
Geometry-Free View Synthesis: Transformers and no 3D Priors

Geometry-Free View Synthesis: Transformers and no 3D Priors Geometry-Free View Synthesis: Transformers and no 3D Priors Robin Rombach*, Patrick Esser*

CompVis Heidelberg 293 Dec 22, 2022
DeepFaceEditing: Deep Face Generation and Editing with Disentangled Geometry and Appearance Control

DeepFaceEditing: Deep Face Generation and Editing with Disentangled Geometry and Appearance Control One version of our system is implemented using the

null 260 Nov 28, 2022
Code release to accompany paper "Geometry-Aware Gradient Algorithms for Neural Architecture Search."

Geometry-Aware Gradient Algorithms for Neural Architecture Search This repository contains the code required to run the experiments for the DARTS sear

null 18 May 27, 2022
GDR-Net: Geometry-Guided Direct Regression Network for Monocular 6D Object Pose Estimation. (CVPR 2021)

GDR-Net This repo provides the PyTorch implementation of the work: Gu Wang, Fabian Manhardt, Federico Tombari, Xiangyang Ji. GDR-Net: Geometry-Guided

null 169 Jan 7, 2023
Code for HodgeNet: Learning Spectral Geometry on Triangle Meshes, in SIGGRAPH 2021.

HodgeNet | Webpage | Paper | Video HodgeNet: Learning Spectral Geometry on Triangle Meshes Dmitriy Smirnov, Justin Solomon SIGGRAPH 2021 Set-up To ins

Dima Smirnov 61 Nov 27, 2022
Data and Code for ACL 2021 Paper "Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoning"

Introduction Code and data for ACL 2021 Paper "Inter-GPS: Interpretable Geometry Problem Solving with Formal Language and Symbolic Reasoning". We cons

Pan Lu 81 Dec 27, 2022
Towers of Babel: Combining Images, Language, and 3D Geometry for Learning Multimodal Vision. ICCV 2021.

Towers of Babel: Combining Images, Language, and 3D Geometry for Learning Multimodal Vision Download links and PyTorch implementation of "Towers of Ba

Blakey Wu 40 Dec 14, 2022
[ICCV 2021 Oral] PoinTr: Diverse Point Cloud Completion with Geometry-Aware Transformers

PoinTr: Diverse Point Cloud Completion with Geometry-Aware Transformers Created by Xumin Yu*, Yongming Rao*, Ziyi Wang, Zuyan Liu, Jiwen Lu, Jie Zhou

Xumin Yu 317 Dec 26, 2022
Multiview Neural Surface Reconstruction by Disentangling Geometry and Appearance

Multiview Neural Surface Reconstruction by Disentangling Geometry and Appearance Project Page | Paper | Data This repository contains an implementatio

Lior Yariv 521 Dec 30, 2022