[Plugin] Align 2d
-
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 ?
- Make a selection (other objects than groups or components are ignored)
- Select "Align 2D" in the context menu or in the Tools menu
- Click 2 points that define a line for the alignement.
- A construction line is temporarily drawn and a dialog box is displayed
- 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.
- Other options self-explanatory
Experiment by yourself and have fun !
Regards,Please get the latest version from the PluginStore
http://sketchucation.com/pluginstore?pln=align_2D -
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 ? -
Hi, Didier !
It seems that with .zip files, there is no restrictions.
... and THANKS for the new script - it look very hopeful ![kaizer_soze]
don't download this, it's an empty .rb , zipped for upload test !
-
-
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 ?
-
Thanks for the bug report TIG
I'll check that soon (and the selection issue as well) -
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,
-
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. -
-
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]
-
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.
-
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]...
-
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.
-
Didier has agreed that I might update his Plugins.
The version in the PluginStore is now v2014/v2015 compatible.
http://sketchucation.com/pluginstore?pln=align_2D -
Bonjour,
J'ai installé ce pluging facilement.
Je n'arrive pas à m'en servir. Il me manque un élément de compréhension.
Je suis plutôt à l'aise avec Sketchup.Je sélectionne plusieurs composants.
Je lance la fonction Align 2D avec le menu.Je trace une droite; le menu apparait avec les différentes options. je valide et rien ne se passe.
En fait, je souhaiterais bien comprendre le principe d’alignement que je ne maitrise pas suffisamment.
J'ai cherché, mais il ne me semble pas qu'il existe de tutorial.
Pourrais-je avoir un peu d'aide ?
D'avance merci !!!
François
-
@dubreu said:
Je trace une droite; le menu apparait avec les différentes options. je valide et rien ne se passe
Perhaps you could show us the components/groups you are trying to align. Probably you are choosing the wrong alignment setting at the top of the dialog box.
-
Hi dave,
Thank you for your so quick answer !
I will try to explain it in english. Be indulgent ...You will find enclosed a screen capture.
I'm currently working on a project with a schematic railway layout (2D) which will be included in a 3D project. That why i would wike to do all the job with only one tool, sketchup.
At the left of the screen, a component. It's a schematic railway turnout.
I would like to duplicate the component and align the new instance on the current schematic layout.
A the right of the screen(figure 1 above), i would like to align the 2 turnouts like that.
A the right of the screen (figure 2 under the previous one), i would like to align the 2 turnouts like that as well (More difficult ?).Can it be done with the 2D Align Plugin ?
Best.
François -
Aucun souci! On peut aussi essayer l'Align 3D!
Any Trouble!
(you can also try the Align 3D by Didier Bur also! )
Click image for animation of 2D Align!
-
Grands remerciements
c'est reparti !François
-
please tell me how to hide or remove the axis that always been showing and annoying me by this plug in the area ..
Advertisement