The script for creating dimensions in Blender

(cwolf3d) #1

Wrote a script to create dimensions in the Blender. Add > Curve > Dimension

3 types of linear dimensions, 1 radius, 1 diameter, 3 corner and 1 note.

It is possible to change the dimension at any time, even after creation.

To this is added the panel. To change the size to select it and click in the panel - change. To exit the changes that would again add new dimensions to press the button - exit change.

You can add a dimension is very simple, just select the two vertices and go to Object mode and a panel click Add Linear dimension or Add 3D dimension.

Now I can direct in Blender to create the drawings.

The script can be taken at:

http://cwolf3d.korostyshev.net/images/dimension/add_dimension_279.zip
http://cwolf3d.korostyshev.net/images/dimension/add_dimension_280.zip

or

2.79: https://drive.google.com/open?id=118c_8k1nYfcARbS4OHPprHActQrSxeK6
2.80: https://drive.google.com/open?id=1s8FDOWX0b3SH2bxqYZIS64jSIW9jAuql


Attachments



(Spirou4D) #2

Hi cwolf3d,
Thks for your job: a great tool now for architects! But why for Blender 2.53, please?
Have you make it for Blender 2.69 too?
Bye
Spirou4D

(cwolf3d) #3

The script works from version 2.53 and above.

Tested Blender 2.69 script works.

(danilius) #4

I’m using build 60798 and when adding a curve, all the buttons on the left are greyed out. Can you tell me how to use this properly?

(cwolf3d) #5

The gray color of the button may appear if an error occurred.

Close and re-open Blender.

Add dimensions in object mode.

(cwolf3d) #6

Slightly adjusted the script.

Now when you add the dimension of the script itself is switched in object mode.

Now it is safe to add the dimension of the accident while in edit mode.

(Spirou4D) #7

But how does it work, please? I have tested with my Blender 2.69 RC2 r60761 and I can add a dimension but in the T panel, I cant change the parameters? Could you us explain, please.

Sorry but if you make change of your add-on, change the release number absolutely, it’s clearer!
I have re-downloaded your add-on only possible on your Yandex.Disk dropbox but no change! Always the same greyed buttons! Your personnal web site link is off: nothing to do! Impossible to connect it!

(cwolf3d) #8

May try to throw in the factory settings. The menu in Blender: File / Load Factory Settings

That should do it.

On my site script archived, so first you need to unzip it and transfer the file add_dimension.py in the folder \ 2.69 \ scripts \ addons

Attachments


(Spirou4D) #9

But yours is Blender 2.69 RC2 r60 837 , this is THE difference!
I try to download a new one…

Edit: No Absolutely no! With Blender RC2 r 60865 new, always greyed panel!


(nikitron) #10

check for undo in your blender settings.

what about existing tool?

(cwolf3d) #11

Nikitron you’re right. Check for global undo in your blender settings: File / User Preferences / Editing / Global Undo

(Spirou4D) #12

Yes with a new default prefs, no problem but with my old startup.blend file, no!
So I must to make again a new startup file…for the 2.69 release! My old startup file come from the 2.68 release and has saved some bad prefs…

Thanks for your add-on very usable! Very nice job!
Spirou4D

PS: I have understand: The Blender r60761 was a for test special release…

(SHABA1) #13

Ok does this work with Blender version 2.68a which is the most recent OFFICIAL release of the software. One piece of advise if you write a script write it for the most recent OFFICIAL version. If you MUST use a development version or a RC release candidate version Put the version number in the first post where you announce the script. This saves a lot of confusion and complaints. Remember most people use the official version from Blender Foundation. Unless they are a developer or a technical person and want the latest and greatest features.

(cwolf3d) #14

OK

P.S. In a plugin uses the standard API. None of the new features.
The plugin should work with the version of Blender 2.53 and above.
I just wanted to help a man with his problem. Version of Blender nothing to do with.


(Leon Cheung) #15

Thank you! It’s very nice and useful!

(Spirit412) #16

Я так понимаю ты говоришь по русски? :slight_smile:
Огромное тебе спасибо.
Вот бы еще кто нибудь сделал cad панель, появляющуюся при редактировании меша или курва. Ну и консоль как в автокаде, что бы “строить” через стандартные команды автокада.

(cwolf3d) #17

The new version of the script!

Added 2 types of dimension angles and note.


Also in this version of the script added the possibility of changing the measurement at any time, even after creation.
To this is added the panel. To change the size to select it and click in the panel - change.
To exit the changes that would again add new dimensions to press the button - change exit.


And plus something

The script can be taken at:

http://cwolf3d.korostyshev.net/images/dimension/add_dimension.zip

or

(cwolf3d) #18

Corrected errors and added a system of units.

Download the updated script you can at the same links.

(cwolf3d) #19

Updating of the script.

Now even easier to add dimension.

Just select the two vertices and go to Object mode and a panel click Add Linear dimension


(cwolf3d) #20

Added the ability to choose a font for the text.

Added types: bottom, back, left.

Added liberty dimension (3D) in the two points.

Selected points may be at different objects.