[Plugin] Double line

[Plugin] Double line

Postby Didier Bur » Sat Sep 20, 2008 8:23 pm

Hi all,
Remember good ol' dline.lsp in Autocad ?
Here is a similar plugin to draw these kind of things:

Available options (on TAB press):
-justification
-caps
-draw axis
-draw face
-make group
-width and height
-close

Enjoy !

EDIT 21.09.08: "close" option added, options selection persistent.
EDIT 23.09.08: changed the shortcut for "close" option: "x" instead of "c" which is a default shortcut for "circle".
EDIT 25.09.08: changed the shortcut for "close" option: double-click.
EDIT 26.09.08: changed the "undo": one wall at a time.
EDIT: 10.04.10 file_loaded? bug fixed
EDIT: 11.04.10 file_loaded? call removed

EDIT: TIG
Please download the latest RB [in RBZ format] from the SketchUcation PluginStore

Download

It is now recoded for compatibility with MAC & PC and suitable for v8 to >=v2015.
TAB (up) now opens the dialog on MAC and PC.
Its lines are forced 'flat' - constrained to the first picked point's Z.
If it's grouped it is given a unique name ["DLINE#n"].
2
Last edited by Didier Bur on Sun Apr 11, 2010 8:42 pm, edited 7 times in total.
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Plugin] Double line

Postby Edson » Sat Sep 20, 2008 8:24 pm

fantastic gift, didier! thanks!
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] Double line

Postby Marian » Sat Sep 20, 2008 8:50 pm

All hail the WISE and KIND DIDIER. :berserk:
0
User avatar
Marian 
 

Re: [Plugin] Double line

Postby rv1974 » Sun Sep 21, 2008 8:05 am

I was missing this tool. Many thanks indeed!
Some minor problems:
1/ Sometimes it refuses to make "walls" after tracing over existing lines.
2/ Sometimes it it makes negative Z height.
3/ Could the last parameters input be remembered?
----
Could there be option to get vertical (along world z axis) not perpendicular "wall" to sloped face?...with sloped\terraced
upper cap to keep average height? :o
0

rv1974 
 

Re: [Plugin] Double line

Postby Didier Bur » Sun Sep 21, 2008 11:59 am

Hi,
1/ Sometimes it refuses to make "walls" after tracing over existing lines.
2/ Sometimes it it makes negative Z height.
3/ Could the last parameters input be remembered?


1/I know how to fix this. wait next release
2/This happens when you draw a wall on an existing face. this is normal, the workaround is to ask for making a group in the dialog box, or create a group with the existing face you want to draw on.
3/Yes. For now the tool only remembers prameters if you draw several walls without exiting it.

P.S.: I guess a "close" option to come back to the very first point would be nice ?
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Plugin] Double line

Postby Matt666 » Sun Sep 21, 2008 12:13 pm

Hi Didier !
Thank you for this another great plugin !!

J'ai juste un petite question : Tu dois connaitre archicad ! L'outil de dessin de mur permet de modifier la justification du pan de mur que l'on va dessiner...

I have a question for you : I suppose you know Archicad... In archicad, we have possibility of changing the justification while you are drawing the 2d wall...

For example :
Wall 1 = Justification "center"
Wall 2 = Justification "Left"
etc..
In just one command !

Is it possible to do that ?
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Double line

Postby marcosrodrigues » Sun Sep 21, 2008 12:43 pm

Thank you, Didier!
0
| menos é mais

marcosrodrigues 
 

Re: [Plugin] Double line

Postby sepo » Sun Sep 21, 2008 2:11 pm

Very useful...looking forward to next update. Thanks Didier.
0

sepo 
 

Re: [Plugin] Double line

Postby arqpadao » Sun Sep 21, 2008 6:06 pm

Hi Didier
thanks, this is great.
0
fernando padão
arquiteto

porto alegre - brasil

http://arqpadao.blogspot.com
User avatar
arqpadao 
 

Re: [Plugin] Double line

Postby free agent » Sun Sep 21, 2008 6:59 pm

very handy, thanx!
0
User avatar
free agent 
 

Re: [Plugin] Double line

Postby Didier Bur » Sun Sep 21, 2008 10:11 pm

Some enhancemments added today. See top of post.
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Plugin] Double line

Postby TIG » Sun Sep 21, 2008 10:51 pm

Didier

Excellent idea - I was working on something similar, mine was called 'mline' - you beat me to it ! Well done.

I can't get 'C' to work closing the loop - I have a short cut for circle that's 'c' so it dumps into that. Perhaps having something like shift+enter to close might do it ?

.
0
Last edited by TIG on Mon Sep 22, 2008 5:23 pm, edited 1 time in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Double line

Postby pilou » Mon Sep 22, 2008 12:39 am

@ Tig Same problem but ...
Just enter any number then backspace for erase it then write c then Enter ;)
And you can keep your C shortcut :)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Double line

Postby honoluludesktop » Mon Sep 22, 2008 1:57 am

Are any other script.rb required to be installed in the plugin folder?
0
User avatar
honoluludesktop 
In Remembrance
 

Re: [Plugin] Double line

Postby Matt666 » Mon Sep 22, 2008 8:10 am

Hi Didier !!
One question : Is it possible to add an "undo" key inside the command ?
Thank you !
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Double line

Postby Hazza » Mon Sep 22, 2008 9:49 am

Do you know how easy this tool makes it to create pieces of wood for my models!!!! Hit D, enter 2 of the dimensions, click click, done.

That is awesome, thank you...
0
See all of my SketchUp models here.

Hazza 
 

Re: [Plugin] Double line

Postby Didier Bur » Mon Sep 22, 2008 10:43 am

Hi,

I can't get 'C' to work closing the loop - I have a short cur for circle that's 'c' so it dumps into that. Perhaps having something like shift+enter to close might do it ?

I noticed that also at the office on a standard install of SU, at home my PC doesn't have the "c" shortcut...
BTW, how to detect the Shift+enter keys pressed ?
I was thinking of a "x" shortcut instead but Shift+enter is more intuitive.

@honolulu: no, no additionnal files required. Maybe a glitch with the pushpull if you are on Mac ?
@Pilou: want always more, hey ? i'll try to do it...
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Plugin] Double line

Postby mike d » Mon Sep 22, 2008 12:32 pm

thanks
0
The grass is always GREENER on the roof.

mike d 
 

Re: [Plugin] Double line

Postby daiku » Mon Sep 22, 2008 1:25 pm

This is fantastic, Didier. I have one suggestion (for now :) ): Each time the user hits the enter key to draw the walls so far, commit the operation so the wall sections can be undone one at a time. Thanks again, this is really useful. CB.
0
User avatar
daiku 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Double line

Postby pilou » Mon Sep 22, 2008 3:13 pm

@Pilou: want always more, hey ?

With some arcs now? :mrgreen:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Double line

Postby Didier Bur » Mon Sep 22, 2008 5:06 pm

With some arcs now?

No no no. Ask TIG! :roflmao:
BTW, you can draw walls that include arcs with the "line2wall*.rb" scripts.
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Plugin] Double line

Postby TIG » Mon Sep 22, 2008 5:29 pm

Didier Bur wrote:Hi,

I can't get 'C' to work closing the loop - I have a short cur for circle that's 'c' so it dumps into that. Perhaps having something like shift+enter to close might do it ?

I noticed that also at the office on a standard install of SU, at home my PC doesn't have the "c" shortcut...
BTW, how to detect the Shift+enter keys pressed ?
I was thinking of a "x" shortcut instead but Shift+enter is more intuitive.

@honolulu: no, no additionnal files required. Maybe a glitch with the pushpull if you are on Mac ?
@Pilou: want always more, hey ? i'll try to do it...


The code is basically "if key1== enter AND key2== shift then..." For example

Code: Select all
def onKeyDown(key,repeat,flags,view)
###...
  @key="shift" if key==CONSTRAIN_MODIFIER_KEY
###... 
end#def
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Double line

Postby Didier Bur » Tue Sep 23, 2008 8:13 am

Patch published today. Shortcut for "close" changed to "x" instead of "c".
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: [Plugin] Double line

Postby pilou » Tue Sep 23, 2008 9:10 am

Damned I have x for X-Ray :mrgreen:
So my previous trick will work fine again :D
Just write any number like 1
then backspace for erase it
then write x
then Enter

It's like Glen Gould but works :mrgreen:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Double line

Postby TIG » Tue Sep 23, 2008 9:23 am

Didier Bur wrote:Patch published today. Shortcut for "close" changed to "x" instead of "c".

Didier

Using "X" is a good choice: x is usually reserved for copying - e.g. x3 to make copies within other commands and isn't a shortcut... If like Pilou you want to use 'X' as a shortcut for something like X-ray you need to remember to use 3x for copies rather than x3, as the latter will invoke X-ray rather than make copies ! Persoanlly I use Alt+X for X-ray mode...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Double line

Postby pilou » Tue Sep 23, 2008 10:01 am

use 'X' as a shortcut for something like X-ray you need to remember to use 3x for copies rather than x3

cool little trick :ugeek:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Double line

Postby Fletch » Tue Sep 23, 2008 3:03 pm

Great work, Didier! Thanks so much for sharing!

a couple little things:
when I choose "show axis"... it does not show... whether or not I have it pop the wall up.

After drawing a wall, I exit the tool, then I want to draw a double line vertically on a face, so I choose to use the tool again... set width to 12", no face, no close. I draw a vertical line from top edge to bottom edge of the wall face. I hit enter for it to draw the double line. I get this.
0

Fletch 
Twilight Render
 

Re: [Plugin] Double line

Postby Ben Ritter » Tue Sep 23, 2008 3:59 pm

Thank you very much Didier.
0

Ben Ritter 
 

Re: [Plugin] Double line

Postby lapx » Tue Sep 23, 2008 6:32 pm

Thanks D! I'll have to try it out sometime.
0

lapx 
 

Re: [Plugin] Double line

Postby Didier Bur » Tue Sep 23, 2008 6:37 pm

Hi,
when I choose "show axis"... it does not show...

Axis is drawn with guide lines (construction lines). Do you have them visible ?
Remember axis will only be visible if justification is "Center".

draw a vertical line from top edge to bottom edge of the wall face. I hit enter for it to draw the double line. I get this.


Oh yes, I noticed that here too. The part of line up the wall is always exactly half the width of the wall :shock:
As a matter of fact, this is normal: for the script to work in 3D, I had to compute the geometric plane on which the first two segments are drawn. Thus if you click only one segment, two points aren't enough to define the plane of the base. In this case the script considers that the plane is the red-green plane. And your points have the same projection on the red-green plane. So an error occurs. Hope I'm clear, hem,hem...
But I'll try to fix that if I can.
0
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: layercero, ruchanan and 20 guests

Visit our sponsors: