by Didier Bur » Fri Nov 23, 2007 6:18 pm
Hi all, Here is the beta of my new Align 2D script (the Align 3D script has been released yesterday, available at the old SU Ruby forum and at my site).
How it works ? 1. Make a selection (other objects than groups or components are ignored) 2. Select "Align 2D" in the context menu or in the Tools menu 3. Click 2 points that define a line for the alignement. 4. A construction line is temporarily drawn and a dialog box is displayed 5. Choose your options: - horizontally align all groups/components along X axis at the intersection with the cline - vertically align all groups/components along Y axis at the intersection with the cline - perpendicularly align all groups/components along a perpendicular virtual line at the intersection with the cline. 6. Other options self-explanatory
Experiment by yourself and have fun ! Regards,
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Didier Bur » Fri Nov 23, 2007 6:19 pm
Oops, where's the rb ??? I've attached it and nothing shows up ? Coen, I just retried and it tells me that rb extension isn't allowed. 8O Any fix for this ?
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by not registered yet » Fri Nov 23, 2007 6:19 pm
Hi, Didier ! It seems that with .zip files, there is no restrictions. ... and THANKS for the new script - it look very hopeful !  [kaizer_soze]
Please, register (free) to access all the attachments on the forums.
-
not registered yet
-
- Posts: 1157
- Joined: Tue Nov 13, 2007 12:48 pm
by Didier Bur » Fri Nov 23, 2007 6:21 pm
Well, so here it is. Give it a try 
Please, register (free) to access all the attachments on the forums.
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by TIG » Fri Nov 23, 2007 6:21 pm
Thanks Didier, it works OK but sometimes gives an error =
Error: #<ArgumentError: Cannot convert argument to Sketchup::Point3d>
referring to the line:
translate = Geom::Transformation.translation( origin.vector_to( inters_point ) )
Can't see immediately why ?
The 'test for selection' doesn't give you the context-menu IF only one object is selected - why have the test for "and ss.length==1" ? Is this connected to the error message ?
TIG
-

TIG
- Global Moderator
-
- Posts: 14310
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Didier Bur » Fri Nov 23, 2007 6:22 pm
Thanks for the bug report TIG I'll check that soon (and the selection issue as well) 
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Didier Bur » Fri Nov 23, 2007 6:23 pm
Bug found: it happens when either the 2 points that define the alignment line or the origin of groups/components are not on the same plane.
I'm considering to provide an additionnal option to align groups/components axis with the alignment line. Does it make sense or do you think this will be useful ?
Regards,
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Didier Bur » Fri Nov 23, 2007 6:25 pm
Here is an update with some fixes, thanks to TIG for pointing out. All alignments are now done regardless of altitudes of selected groups/components. It also checks for impossible alignments, for instance aligning vertically along a line which is parallel to Y axis is not allowed. 
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Didier Bur » Fri Nov 23, 2007 6:25 pm
Coen, NO, I cannot upload a rb file Here is the zip instead 8)
Please, register (free) to access all the attachments on the forums.
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by not registered yet » Fri Nov 23, 2007 6:26 pm
Hi, Didier and Thanks for the script again ! Just an idea for improvment - an option, after aligning objects obove the line to place them with uniformly space between them, like we can do in PhotoShop. [kaizer_soze]
-
not registered yet
-
- Posts: 1157
- Joined: Tue Nov 13, 2007 12:48 pm
by Didier Bur » Fri Nov 23, 2007 6:27 pm
Hi TIG, I see that you're online now and I've got a small problem:
Rotating groups/components work with this attached version EXCEPT with Y match, and I don' know why. Can you have a look at it ? Thanks in advance.
Please, register (free) to access all the attachments on the forums.
-

Didier Bur
-
- Posts: 1239
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by TIG » Fri Nov 23, 2007 6:28 pm
Will look and get back to you a.s.a.p...
Edit: After an hour I'm 'stumped' - I'll sleep on it and get back to you [on year]...
TIG
-

TIG
- Global Moderator
-
- Posts: 14310
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by marcelpatulacci » Thu May 02, 2013 2:08 pm
Hi Didier,
First, thank you for this plugin, However, I have some problems to make it work.
For example, it doesn't work when i try to align windows on a facade. But if the facade is placed horizontally, then it works perfectly. Have you already heard about that? Maybe i'm using it in a wrong way? Can you help me please?
Thank you.
-
marcelpatulacci
-
- Posts: 1
- Joined: Mon Oct 18, 2010 10:05 am
by Ad Machine » 5 minutes ago
Not a Premium Member yet? Check out the great time-limited deal we are offering.
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|