[Plugin] Make Tank 1.5 (beta)

[Plugin] Make Tank 1.5 (beta)

Postby dezmo » Wed Sep 19, 2012 10:24 am

Hi,
This is my first post, but reading this site since years and registered since months…:-)
However I’m absolutely not an expert of ruby, you will see in the code… ;-), but just I would like to give back something to this nice community. Hope somebody find this small tool useful.
So I’ve just extended the ODM’s Cone tool (conetop1.rb) with my needs. Thanks a lot for this base.

The script will draw simple tank body with legs as component.

I know this is not perfect, but at least works. Maybe later on I’ll make it better….:-)
Just drop extracted maketankX.rb and maketank.png to \Tools or \Plugins folder of Google SketchUp X.
There will be a new menu item “Make Tank 1.x” in “Draw” menu and new Toolbar button after restarting SketchUp.
Tested with 6.4.265 Pro, and 8.0.15158 free.

This is my first code WIP and LIP , so bee patient...
(work in progress and learn in progress) :roll:

Usage: See picture!

Have a fun!
Regards, Dezmo

Edit01: Changes: 1.0 >1.1 "Plays nice" (?)
Edit02: Changes: 1.1 >1.2 Units depens on Sketchup active model unit options
Edit03: Changes: 1.2 >1.3 Add cilindrical legs as many as you want inside touch to base circle
Edit04: Changes: 1.3 >1.4 Add volume (bottom cone+cilinder) in liters and in cubic inches and put it as 3D text to top of the tank
(note volume is "real cilindrical" volume of bottom cone+cilinder, not depenst on segments, so it is not accurate if tank is eg. 4 segment)
Now the main Tank group is named and splitted to "pieces" of named groups
The initial values of inputbox is "mm"... sorry
Edit05: Post organized, old verions packed separately, just for reference.
Edit06: Changes: 1.4 >1.5 Place the tank(s) as componet wherever you want. Volume unit (for 3D text) can be selected from imputbox, and only one (or non) volume text displayed (liter, m3, inch3, gallon, gallon(uk) )
Toolbar & button added
0
Last edited by dezmo on Thu Oct 11, 2012 2:38 pm, edited 8 times in total.

dezmo 
 

Re: Make Tank 1.0 (beta)

Postby thomthom » Wed Sep 19, 2012 11:14 am

Welcome! And thanks for sharing! :)

I recommend you read this article I wrote about SketchUp plugin developement: http://www.thomthom.net/thoughts/2012/0 ... velopment/

It described how you can build plugins to avoid potential clashes with other plugins. I saw the code and noticed you did not have your methods in a namespace module which might cause potential clashes.
1
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: Make Tank 1.0 (beta)

Postby dezmo » Wed Sep 19, 2012 11:25 am

Thanks for the link. I'll go to read and might change the code accordingly...:-)
0

dezmo 
 

Re: [Plugin] Make Tank 1.0 (beta)

Postby raineysky » Fri Sep 21, 2012 1:13 am

Dezmo,

This plugin looks very useful. I hope you will find the time to develop it further. Can imperial units be used?

Thanks,

Paul
0

raineysky 
 

Re: [Plugin] Make Tank 1.2 (beta)

Postby Gaieus » Fri Sep 21, 2012 7:56 am

Hi Dezmo,

I see you keep editing your post (developing/reattaching the plugin?) which keeps it bumbed back to the moderation queue. :)

All right, next time it will appear instantly as I took you out of the "newly registered members" usergroup.

Are you Hungarian, by the way (as you are in that usergroup, too)
0
User avatar
Gaieus 
 

Re: [Plugin] Make Tank 1.0 (beta)

Postby dezmo » Fri Sep 21, 2012 7:57 am

Hi,
I'm happy if you find it usefull. I did some changes for you, plase take a look!
In next version, I hope, I can implement some legs.. :roll:

raineysky wrote:Dezmo,

This plugin looks very useful. I hope you will find the time to develop it further. Can imperial units be used?

Thanks,

Paul
0
Man can do everything. Only a matter of time and money.

dezmo 
 

Re: [Plugin] Make Tank 1.2 (beta)

Postby kwistenbiebel » Fri Sep 21, 2012 7:59 am

who else was thinking battle tanks before accessing thread?
0

kwistenbiebel 
 

Re: [Plugin] Make Tank 1.2 (beta)

Postby dezmo » Fri Sep 21, 2012 8:09 am

Hi Csaba,
I'm sorry about always changing my post, but somehow need to correct my mistakes... :-)
And yes, I'm Hungarian, currently working in Germany, without kowing german (and ruby) language. :P Both in progress...

Gaieus wrote:Hi Dezmo,

I see you keep editing your post (developing/reattaching the plugin?) which keeps it bumbed back to the moderation queue. :)

All right, next time it will appear instantly as I took you out of the "newly registered members" usergroup.

Are you Hungarian, by the way (as you are in that usergroup, too)
0
Man can do everything. Only a matter of time and money.

dezmo 
 

Re: [Plugin] Make Tank 1.2 (beta)

Postby dezmo » Fri Sep 21, 2012 8:13 am

kwistenbiebel wrote:who else was thinking battle tanks before accessing thread?


:) Looks like I've problem with my English as well...!? :roll:
0
Man can do everything. Only a matter of time and money.

dezmo 
 

Re: [Plugin] Make Tank 1.2 (beta)

Postby Gaieus » Fri Sep 21, 2012 8:28 am

dezmo wrote:...I'm sorry about always changing my post, but somehow need to correct my mistakes...

There's absolutely no problem with that - in fact, I am glad you "listen" to ThomThom as he knows what he is saying and does it helpfully.

It's just usually unusual for very new members to start with a plugin topic. Otherwise this is the "practice" here: plugin authors keep changing the very first post of the topic to keep the plugin up-to-date there.

So welcome! ;)
0
User avatar
Gaieus 
 

Re: [Plugin] Make Tank 1.3 (beta)

Postby Krisidious » Sat Sep 22, 2012 4:39 am

Pretty kool... I used to do tank inspection and this would have been awesome for it.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Make Tank 1.4 (beta)

Postby dezmo » Tue Sep 25, 2012 2:01 pm

New fuctions in first post.
Later I'm planning to revise/clear the code...(without scedule), any suggestions are welcome...
Happy sketching! :D
0
Man can do everything. Only a matter of time and money.

dezmo 
 

Re: [Plugin] Make Tank 1.4 (beta)

Postby thomthom » Tue Sep 25, 2012 2:04 pm

Do you need to provide all the older versions? It's a bit confusing to what file is the latest.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Make Tank 1.4 (beta)

Postby dezmo » Tue Sep 25, 2012 2:43 pm

thomthom wrote:Do you need to provide all the older versions? It's a bit confusing to what file is the latest.

Ok. Clarified... :roll:
0
Man can do everything. Only a matter of time and money.

dezmo 
 

Re: [Plugin] Make Tank 1.4 (beta)

Postby Krisidious » Tue Sep 25, 2012 5:51 pm

who else was thinking battle tanks before accessing thread?


<<<<< This guy was.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] Make Tank 1.4 (beta)

Postby mitcorb » Tue Sep 25, 2012 10:48 pm

Me, too. I guess because of those examples we have seen from time to time.
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] Make Tank 1.4 (beta)

Postby pbacot » Tue Sep 25, 2012 11:09 pm

I actually just made some tanks, something it never occured to me I'd need to model (there are some in the warehouse but didn't look like the ones I needed). But this plugin came a day or so late :lol: . Might have helped with the basic shapes, but what I ended up doing is scaling and re-using the main components as much as possible to save bytes.
0
MacOSX Mojave ShetchUp Pro v19 Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Make Tank 1.5 (beta)

Postby dezmo » Thu Oct 11, 2012 2:40 pm

Update in first post...
0
Man can do everything. Only a matter of time and money.

dezmo 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Arc, Breezeier and 11 guests

Visit our sponsors: