CAD Snap Utilities

add-ons
commercial

(mano-wii) #281

The process is slow. But I’m working almost every day to implement better and more efficient snap functions in Blender.

The ultimate goal is to expose the snap functions for developers who want to create architecture addons.

Users and developers will greatly benefit.

I’m right now working with Campbell in the functions of snap_to_volume.

What is missing in Blender snap functions:

  • Use depth;
  • Make snap for multiple elements at the same time;
  • Expose the python API.

I’m glad to see interest :slight_smile:


(jachtarfranko) #282

Thank you Mano-wii, I am CAD user, all snap functions are very useful for me.


(burnin) #283

great to see
much interest here, hoping and let you do stuff you do without any extra noise :o
wish you best


(JoseConseco) #284

Awesome to hear it is being worked on. Your addon saved me a lot of time in may work and it is very well designed from UI&UX perspective. Definitely the best addon for me!


(Okavango) #285

The process is slow. But I’m working almost every day to implement better and more efficient snap functions in Blender.

The ultimate goal is to expose the snap functions for developers who want to create architecture addons.

Users and developers will greatly benefit.

Great news mano! That is one of the last important things missing in the python development. I feared you abandoned this initiative because of difficulties, nice to hear from you.


(miikka1978) #286

This sounds just great!


(mkbreuer) #287

Is there a way to have the tools in the 3d View header.
When i try to start them from there i get this:

Attachments



(Spirou4D) #288

But are you sure the Alt + 1 is free?


(mkbreuer) #289

It is only an example shortcut. Change it!..


(Spirou4D) #290

No i spoke about your problem…
I will try it now to see what is your problem…

EDIt I tryed your addon and i think it’s a context problem.
I search why…

EDIT 2: In fact, you call a macro of several operators:


bpy.ops.object.np_point_distance_014 is the same as:

bpy.ops.object.np_point_distance_014(OBJECT_OT_np_pd_get_selection={},
                        OBJECT_OT_np_pd_read_mouse_loc={},
                        OBJECT_OT_np_pd_add_point={},
                        OBJECT_OT_np_pd_run_translate={},
                        OBJECT_OT_np_pd_change_mode_one={},
                        OBJECT_OT_np_pd_run_translate={},
                        OBJECT_OT_np_pd_delete_point={})
like that in this order:
bpy.ops.object.np_pd_get_selection
bpy.ops.object.np_pd_read_mouse_loc
bpy.ops.object.np_pd_add_point
bpy.ops.object.np_pd_run_translate,
bpy.ops.object.np_pd_change_mode_one
bpy.ops.object.np_pd_run_translate
bpy.ops.object.np_pd_delete_point


but all operators are internal:
bl_options={‘INTERNAL’} may be here problem?

I study with you, it’s a very interesting functions modal list.
For me, it’s internal option that is the problem!

I have this traceback:


wm_macro_exec: 'OBJECT_OT_np_pd_read_mouse_loc' cant exec macro
it


(mkbreuer) #291

OK! Thank you, that you did cast an eye on it!
I don´t want to rewrite this.
How i wrote in a previous post: in a Pie Menu it works well…


(mkbreuer) #292

OK! Thank you, that you did cast an eye on it!
I don´t want to rewrite this.
How i wrote in a previous post: in a Pie Menu it works well…


(Spirou4D) #293

I managed to have a panel for “NP Snap Distance 014” addon, it run very well
but in menu, don’t run! It’s certainly a question of context!
A menu isn’t directly in 3D View space.


(mkbreuer) #294

Thx for the tip!

I add this to the menu and it works


    def draw(self, context):
        layout = self.layout 
        layout.operator_context = 'INVOKE_REGION_WIN' # needed line to run the operators

More information about the execute context in the api
https://www.blender.org/api/blender_python_api_2_63_17/bpy.ops.html

I create a new thread for that, because this thread is for mano-wiis snap utilities


(Spirou4D) #295

Oh Awesome! You help me too…
Great lesson, mkbreuer! Thanks.
This “NP Snap Distance” is a very good add-on for architect and I have ideas with it for a future addon in 2D paint!
Good Luck.


(matali) #296

@mano-wii It’s great to see all the improvement you do on Blender’s C code. I hope Campbell has soon time to review and commit more of those patches. Then we can have an awesome update of the cad snap addon :slight_smile:


(serviteur) #297

@mano-wii,

It’s possible to draw (like skectchup) a basket arch etc… ?

https://blenderartists.org/forum/asset.php?fid=404079&uid=113357&d=1467202527

How to drawing arched, basket arch doors and windows in curved wall?

http://sketchucation.com/resources/tutorials/397-arched-window-curved-wall


(mano-wii) #298

The picture does not appear :
Drawing circle or arc is something that can be implemented. But there are some complications at the intersection however.
I’m focused on another area however (improve existing functions).
Perhaps there is a way to use own circle Blender to achieve the same result.

But I liked the idea, it can get into the plans :slight_smile:


(bkjernisted) #299

Serviteur, please seee this web adress. http://blenderaddonlist.blogspot.ca/2015/01/addon-basket-arch.html Thanks


(thomascheng) #300

This is an incredible tool. I use to be a big user of LWCAD and this gets pretty close to it for blender. Thank you.