Potential Project

Potential Project

Postby Odewallrus » Mon Jul 02, 2018 7:30 pm

Anyone looking for a seemingly simple project that would be very useful???

Seemingly, because I have no clue..... :-P

I would love to see a plugin/script that would sequentially place numbers at a set height wherever you clicked on a model. You would also need to be able to set the start number (1,2,3... or 25,26,27,28... etc).

I am looking to number lots on site plans. There is a script available for AutoCad called 'lotno' that has the exact functionality I am looking for, with the exception of specifying the Z value.
0

Odewallrus 
 

Re: Potential Project

Postby juju » Tue Jul 03, 2018 1:12 pm

I know TIG knows his way around ruby scripts for SketchUp, I also know he develops scripts for other drawing platforms (AutoCAD & Revit if memory serves) as well. Maybe contact him?
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: Potential Project

Postby L i am » Tue Jul 03, 2018 2:59 pm

Odewallrus wrote:Anyone looking for a seemingly simple project that would be very useful???

Seemingly, because I have no clue..... :-P

I would love to see a plugin/script that would sequentially place numbers at a set height wherever you clicked on a model. You would also need to be able to set the start number (1,2,3... or 25,26,27,28... etc).

I am looking to number lots on site plans. There is a script available for AutoCad called 'lotno' that has the exact functionality I am looking for, with the exception of specifying the Z value.



I am assuming you are talking "spot heights" that would be invaluable especially in Landscape Architecture on contours. Brilliant idea mate, would change my life :thumb: :thumb:
0

L i am 
Premium Member
Premium Member
 

Re: Potential Project

Postby Odewallrus » Tue Jul 03, 2018 3:04 pm

L i am wrote:
Odewallrus wrote:Anyone looking for a seemingly simple project that would be very useful???

Seemingly, because I have no clue..... :-P

I would love to see a plugin/script that would sequentially place numbers at a set height wherever you clicked on a model. You would also need to be able to set the start number (1,2,3... or 25,26,27,28... etc).

I am looking to number lots on site plans. There is a script available for AutoCad called 'lotno' that has the exact functionality I am looking for, with the exception of specifying the Z value.



I am assuming you are talking "spot heights" that would be invaluable especially in Landscape Architecture on contours. Brilliant idea mate, would change my life :thumb: :thumb:




I was not talking about spot or 'TOPO' heights, but that would be a great option as well as sequential numbering. I do agree.
0

Odewallrus 
 

Re: Potential Project

Postby pbacot » Tue Jul 03, 2018 4:46 pm

Add Height from Datum by TIG is the one for giving heights of objects or terrain. However if you want it to work in a specific format you may need some help modifying it. How it gets from SU text to something like a 2d survey format, I couldn't imagine. The numbering thing's a nice idea. I would probably find it nice in LayOut, if I didn't reserve those kind of things for CAD.
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: Potential Project

Postby Didier Bur » Sun Jul 08, 2018 4:39 pm

@odewallrus

What do you mean "at a set height" ? Is it a constant altitude above ground for all text labels, or a height above the objects/points you click ?
With more precise specifications, this script would be quite easy to code ;-)
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: Potential Project

Postby Odewallrus » Mon Jul 09, 2018 1:38 pm

I was thinking a constant altitude above the ground.

Typically I would use this for numbering (property) lots and it would be shown in Layout as a parallel projection. numbering 500-1000+ lots becomes quite tedious.
0

Odewallrus 
 

Re: Potential Project

Postby Didier Bur » Tue Jul 10, 2018 1:40 pm

Hi,

Here is the first attempt to code what you want (I hope).

Usage:
-------
Unzip the archive and place NumberingText.rbs in your Plugins folder
Restart SketchUp

Select 'Numbering Text' in the 'Extensions' menu
Fill the dialog
Prefix will precede the number (you can include spaces and \n sequence)
Suffix will follow the number (you can include spaces and \n sequence)
N.B.: a \n sequence in a text will reject the rest of the text on a new line.
Altitude will be the height of all the texts above ground

Click to insert label(s) , Right-clic to change settings, Escape to cancel, Return to end the tool.

Examples:

nt1.jpg

nt3.jpg

nt2.jpg
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: Potential Project

Postby pbacot » Tue Jul 10, 2018 3:14 pm

That looks excellent!
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: Potential Project

Postby Odewallrus » Tue Jul 10, 2018 3:29 pm

Didier Bur,

Thank you. That is awesome! Just what I was looking for. I would like to see only a single enhancement, if it is possible and you would be so kind...

Are you able to make the text string centered with the mouse click versus left justified at the insert point?
0

Odewallrus 
 

Re: Potential Project

Postby Didier Bur » Wed Jul 11, 2018 7:56 am

@odewallrus

I'm afraid I can't :oops: . Unfortunately text entities in SketchUp are very basic (as opposed to text in Layout), and they do not have justification properties (because they are automatically left or right justified, depending on the arrow and pin features).
I've tried to move the text a little to the left, but this translation depends on the text font and text height, it never gives a good result. A workaround would be to click slighty to the left of the location you want, knowing how long the text is, how big the font is, etc.
Best regards,

EDIT: I found that using 3DText will do the trick. I'll investigate this ;-)
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: Potential Project

Postby Odewallrus » Wed Jul 11, 2018 1:43 pm

Didier Bur,

If it is possible with the 3d text or not, Thank you very much. This will be an incredible help that I can use immediately. I am currently finishing up an 1200du project which prompted my initial 'Potential Project' suggestion. I was not expecting anything as polished and flexible as your script, and surely nothing so quickly. :thumb: :thumb: :thumb: :thumb: :thumb: :thumb: :thumb:
I sooooo owe you a beer or 3.
1

Odewallrus 
 

Re: Potential Project

Postby Didier Bur » Wed Jul 11, 2018 4:26 pm

@odewallrus:

Here is the second attempt, with it you can insert either 2D texts (like before) and 3D texts (these will be centered on your clicks.


Install:
Unzip the archive and place Numbering2D3DText.rbs in your Plugins folder (remove any old version)
Restart SketchUp, select your option (2D or 3D) in the Draw menu


2D Text Usage:
--------------
Fill the dialog:
- Prefix will precede the number (you can include spaces,\n or \t sequences)
- Suffix will follow the number (you can include spaces,\n or \t sequences)
- Text altitude will be the height (in your current units) of all the texts, above ground (you can use negative values)
- Click to insert label(s) , Right-clic to change settings, Escape to cancel, Return to end the tool.


3D Text Usage:
--------------
Fill the dialog:
- Prefix will precede the number (you CANNOT include spaces,\n or \t sequences)
- Suffix will follow the number (you CANNOT include spaces,\n or \t sequences)
- Text altitude will be the height (in your current units) of all the texts, above ground (you can use negative values)
- Text font: enter a font name like Arial, Verdana, Tahoma, Times New Roman, etc.
- Font Height: the height of the characters, in your current units
- Extrude: the width (or depth) of the characters
- Click to insert label(s) , Right-clic to change settings, Escape to cancel, Return to end the tool.

N.B.: 3D texts will be centered around the points you click, in top view.

3DTextSettings.jpg

3DTextPoint.jpg


Enjoy ! :fro:
1
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: Potential Project

Postby Odewallrus » Thu Jul 12, 2018 1:50 pm

Version 2 works great. Thank you, again. :thumb:
0

Odewallrus 
 

Re: Potential Project

Postby Didier Bur » Thu Jul 19, 2018 1:02 pm

Hi,
Here is the very last final version (I swear) :lol:

More options for the 3d texts settings:
3dtext_options.jpg


Some examples:
3dtext_examples.jpg
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur 
 

Re: Potential Project

Postby Odewallrus » Thu Jul 19, 2018 1:33 pm

Those are very nice enhancements. I will try it today on a project. TY.
0

Odewallrus 
 

Re: Potential Project

Postby Odewallrus » Thu Jul 19, 2018 1:45 pm

Very nice enhancements!
0

Odewallrus 
 

Re: Potential Project

Postby juju » Thu Jul 19, 2018 3:41 pm

Neat! Now copy and paste this to Layout API please. ;p

(Yes, I am very well aware it doesn't work that way, just commenting on the lack of LO enhancements and wishing we had something like this there.)
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: Potential Project

Postby Odewallrus » Thu Jul 19, 2018 3:45 pm

yup... that would be cool.
0

Odewallrus 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: thangtn76 and 5 guests

Visit our sponsors: