Volume Plugin

This topic has been viewed 8045 times and has 15 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
k005
Posts: 60
Joined: Sat Aug 06, 2022 1:23 pm
Country: TURKEY

Re: Volume Plugin

Post by k005 »

I compiled it again. I copied it to the plugin folder. I ran sweethome3d. But it crashed... when I deleted the volumePlugin I created, it popped up.

I'm making a mistake on a small point, but I haven't found it yet.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Volume Plugin

Post by Puybaret »

A JAR file is actually just a ZIP file. Could you list here its content with a ZIP utility?
Emmanuel Puybaret, Sweet Home 3D creator
k005
Posts: 60
Joined: Sat Aug 06, 2022 1:23 pm
Country: TURKEY

Re: Volume Plugin

Post by k005 »

I am adding my work that caused the lock by archiving it. The compiled jar file is also included.


https://www.dosya.tc/server38/u4bxxl/Vo ... n.rar.html

*****************************************************************





Actually, I just need an icon-shaped starter frame that is placed in the tools menu for now and added to the toolbar. like the frame I gave below.

how should i run it from Sweet Home. I will develop it later.

this will be the map to me...


Thank you.

Image
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Volume Plugin

Post by Puybaret »

Your plug-in is correct but you compiled it with a more recent version of Java.
In the properties of your project, change the Compiler compliance level to 1.8.
Emmanuel Puybaret, Sweet Home 3D creator
k005
Posts: 60
Joined: Sat Aug 06, 2022 1:23 pm
Country: TURKEY

Re: Volume Plugin

Post by k005 »

Ok. Thank you very much. Worked.

***

Can you send a sample project like in my second question?

I can also go through the volumePlugin... but it has menu placement. There is no toolbar!
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Volume Plugin

Post by Puybaret »

You could use the method [font=courier new]showInputDialog[/font] in JOptionPane class (see tutorial here).
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest