by Matt666 » Wed Oct 01, 2008 5:15 pm
Hi all ! Here is a plugin that draw a point wherever you want. You also can write length value in the VCB. I created this plugin mainly to get familiar with some of Ruby functions, quite difficult to understand at first... If this script can be used to someone ... Like Didier said : "Enjoy!" PS : Thanks to Fredo6 for his help ! EDIT2: 07/05/2009 | Version 1.2:
- Compatibility with Mac users.
EDIT1: 02/05/2009 | Version 1.1:
- Add an icon, on demand of simon le bon
PointTool.png - It does not create a point on an existing point
- Supports organizer
- You can now draw just one point
Please, register (free) to access all the attachments on the forums.
Last edited by Matt666 on Fri May 08, 2009 9:55 am, edited 7 times in total.
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by marcosrodrigues » Wed Oct 01, 2008 5:35 pm
| menos é mais
-
marcosrodrigues
-
- Posts: 54
- Joined: Tue Jun 10, 2008 2:14 am
- Location: Salvador, Brasil
- Name: Marcos
-
by REGIS » Wed Oct 01, 2008 9:11 pm
Hi Matt
Unfortunately, it doesn't run on mac, load error point.rb.
@+
-
REGIS
-
- Posts: 925
- Joined: Mon Nov 19, 2007 11:25 pm
- Location: Toulouse; France
- Name: Régis Revaux
by herodes » Thu Oct 02, 2008 8:29 am
Thanks a million,... winxp here runs.
-
herodes
-
- Posts: 31
- Joined: Tue Jan 29, 2008 7:40 pm
- Location: Rethymno, Crete, (Hellas)
- Name: Herodes
-
by Matt666 » Mon May 04, 2009 7:48 pm
Hi all! This plugin seems to have success (Downloaded 123 times)... Here is an update (v1.1)... Read the first post for details! 
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by Gaieus » Mon May 04, 2009 8:01 pm
And I was the first to download this version. Funny that there are quite a few "robust" plugins nowadays and we tend to forget about "small" but equally (if not even more) useful scripts that may make our lives so much easier and actually so much more often during every phase of modelling. Sometimes you don't even notice that you are using a plugin because you take it so natural that it's there. Like Weld.rb. Or this one. Thanks a lot! 
Gai...
-

Gaieus
- Administrator
-
- Posts: 27607
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by Chris Fullmer » Mon May 04, 2009 8:12 pm
Great job Matt! Good job on the toolbar too,
Chris
-

Chris Fullmer
- SketchUp Team
-
- Posts: 6680
- Joined: Wed Nov 21, 2007 3:21 am
- Location: Davis, CA
- Name: Chris Fullmer
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by Matt666 » Tue May 05, 2009 9:56 am
Thank you! 
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by PRSS » Tue May 05, 2009 4:40 pm
This will be really useful for me. Thanks a ton!
With best regards PRSS
-
PRSS
-
- Posts: 95
- Joined: Sun Nov 25, 2007 6:12 am
by Bones » Wed May 06, 2009 1:29 pm
Hi, cool plugin, you done a great job! If there a posible to put arow keys on blue, red , green axes like pen tool does?
-
Bones
-
- Posts: 6
- Joined: Wed Apr 23, 2008 1:15 pm
by Bob James » Thu May 07, 2009 12:59 am
Have a problem loading: see attachment.
Please, register (free) to access all the attachments on the forums. "If you don't plan ahead you'll be at the mercy of those that do" - Ashleigh Brilliant
"Bad is not good until worse happens" - Bob James
-

Bob James
- Premium Member

-
- Posts: 605
- Joined: Fri Jan 18, 2008 9:29 pm
- Location: Lompoc, CA, USA
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
by Jeff Hammond » Thu May 07, 2009 1:58 am
Bob James wrote:Have a problem loading: see attachment.
ditto looks very useful too... anyone know how to make this mac compatible?
dotdotdot
-

Jeff Hammond
- Global Moderator
-
- Posts: 4308
- Joined: Thu Jan 24, 2008 11:16 pm
- Location: newyorkcity
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Matt666 » Thu May 07, 2009 11:05 am
@ Bones : Hi ! I will give a try... Not sure I can do that... @ Jeff Hammond & Bob James : Ok, thank you for that! I have asked to Fredo6 (because his compatibility between Win & Mac is great), so be patient please! @ simon le bon ... Bah didon belle présentation !! Merci à toi  Thank you for this great presentation!!
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by simon le bon » Thu May 07, 2009 2:11 pm
-

simon le bon
-
- Posts: 1077
- Joined: Sat Jan 26, 2008 10:22 am
- Location: Chouy/ Picardie/ France
- Name: Simon Bonnet
by MALAISE » Fri May 08, 2009 8:10 am
La Connaissance n'a de valeur que partagée
-
MALAISE
-
- Posts: 620
- Joined: Sun Apr 20, 2008 1:23 pm
- Location: Cergy Pontoise FRANCE
- Name: Pierre
by Matt666 » Fri May 08, 2009 9:52 am
Thank you Pierre! A new version 1.2 is available... Try to fix Mac problems.
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by Jeff Hammond » Fri May 08, 2009 5:24 pm
Merci! it's working nicely now on my mac. btw, i think the provided icon is too small.. it's 16x16 but SU can use 24x24 as well.. simon le bon wrote:But at the end we need to erase all those construction points!!!No problem! Just use the so powerful Matt666's Selection Manager
another option is edit->delete guides.. not as powerful as selection manager but it will get rid of the points as well.
dotdotdot
-

Jeff Hammond
- Global Moderator
-
- Posts: 4308
- Joined: Thu Jan 24, 2008 11:16 pm
- Location: newyorkcity
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by agrazdi » Sun May 17, 2009 6:54 pm
I found this plugin great. But it could be excelent if after you inferrenced the distance with another object you could tape /# of spaces and add constructions points. Sort of dividing a line in 2,3,4.... spaces. Is it possible to add this request ?
Thanks
agrazdi
Please, register (free) to access all the attachments on the forums.
-
agrazdi
-
- Posts: 71
- Joined: Tue Nov 13, 2007 1:26 am
by ilay7k » Sun May 17, 2009 8:40 pm
Matthieu, thank you great addition for making of general plans
-
ilay7k
-
- Posts: 308
- Joined: Wed Nov 14, 2007 3:49 pm
- Location: Shymkent, Kazakhstan
- Name: Ilya Shpilkin
by Matt666 » Sun May 17, 2009 8:45 pm
Thank you! agrazdi, I will see what I can do!
-
Matt666
-
- Posts: 829
- Joined: Wed Dec 05, 2007 8:38 am
- Location: 48.1184, -1.675
- Name: Matt
-
by NewOne » Mon Sep 14, 2009 9:59 pm
--EDITED POST-- changed the files, and added code suggestion. Alternate icons for PointTool Matt666, if you like this icons, please edit your script to use 24x24px and 16x16px icons. The changes I made to your script to accept those icons and cursor icon are: - Code: Select all
cmd.large_icon = File.join(p, "PointTool", "PointTool24x24.png") cmd.small_icon = File.join(p, "PointTool", "PointTool16x16.png")
and - Code: Select all
def initialize #...your previous code p=Sketchup.find_support_file("Plugins") pointTool_cursor_path = File.join(p, "PointTool", "PointTool cursor.png") @@pointTool_cursor = UI::create_cursor(pointTool_cursor_path, 3, 30) end
def onSetCursor UI::set_cursor(@@pointTool_cursor) end
I am not sure if this is entirely correct, but it works for me. If you decide to change the icons, pay attention on hotspot coordinates of the cursor  Suggestion: add getExtents method to avoid disappearance of the OpenGL line. - Code: Select all
def getExtents bbox = Geom::BoundingBox.new bbox.add @ip1.position if (@state == 0) bbox.add @ip.position if (@ip.valid? && @ip.display?) elsif bbox.add @ip2.position end bbox end
P.S. I like your script very much, it ease my work a lot! It's a simple, but strong idea!
Please, register (free) to access all the attachments on the forums.
Last edited by NewOne on Tue Sep 15, 2009 1:08 am, edited 2 times in total.
-
NewOne
-
- Posts: 329
- Joined: Thu Oct 23, 2008 6:21 pm
- Location: Maramures, Romania
by simon le bon » Mon Sep 14, 2009 10:45 pm
Hi NewOne, Your icons are NumberOne But when i try to use them (32x32), their quality isn't at the "rendez-vous" . Why? I can't say.   simon
-

simon le bon
-
- Posts: 1077
- Joined: Sat Jan 26, 2008 10:22 am
- Location: Chouy/ Picardie/ France
- Name: Simon Bonnet
by NewOne » Mon Sep 14, 2009 10:52 pm
simon le bon wrote:Hi NewOne, Your icons are NumberOne But when i try to use them (32x32), their quality isn't at the "rendez-vous" . Why? I can't say.  simon
Well... This is what I do now: try to figure out why on image viewer and on forum page the icon looks nice, but in Sketchup is a little messed up. QUESTION: how many colors does sketchup accept for icons? true color, 256, or less? 
-
NewOne
-
- Posts: 329
- Joined: Thu Oct 23, 2008 6:21 pm
- Location: Maramures, Romania
by Jim » Mon Sep 14, 2009 11:25 pm
Sketchup Toolbar icons are 24x24, or 16x16 for the small icons. Tool cursors are 32x32.
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by NewOne » Mon Sep 14, 2009 11:47 pm
Jim wrote:Sketchup Toolbar icons are 24x24, or 16x16 for the small icons. Tool cursors are 32x32.
THANK YOU !!  I tested with 24x24 and it looks wonderfull.
-
NewOne
-
- Posts: 329
- Joined: Thu Oct 23, 2008 6:21 pm
- Location: Maramures, Romania
by simon le bon » Tue Sep 15, 2009 11:21 pm
Hi NewOne, Thank for it (the blue pen) . Now adopted  simon
-

simon le bon
-
- Posts: 1077
- Joined: Sat Jan 26, 2008 10:22 am
- Location: Chouy/ Picardie/ France
- Name: Simon Bonnet
by watkins » Sat Sep 19, 2009 6:40 pm
Dear Matt,
I have downloaded your version 1.2, but cannot work out how to draw a single point other than hitting the Esc key. What should I do?
Kind regards, Bob
-
watkins
-
- Posts: 1367
- Joined: Wed Nov 14, 2007 5:47 pm
by utiler » Mon Nov 09, 2009 2:31 am
simon le bon wrote:Hi NewOne, Your icons are NumberOne But when i try to use them (32x32), their quality isn't at the "rendez-vous" . Why? I can't say.   simon
I think JClements made the Construction line tool Icon. Would be good to see a similar icon for the point tool also. Both point and Construction line tool I use all the time, thanks heaps guys!!!!!
purpose/expression/purpose/....
-

utiler
- Top SketchUcator
-
- Posts: 1925
- Joined: Wed Nov 14, 2007 11:35 am
- Location: Queensland, Australia
- Name: utiler
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
Return to Plugins
|