OpenSCAD as ActiveX?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSCAD as ActiveX?

Troberg
Is there any project/fork which has the viewport of OpenSCAD as some kind of embeddable object (preferably ActiveX)?

Basically, what I'd like to do is to have a user control which I can use in my programs, which I could simply feed a script as a string, and have it drawn. The only user interface would be what's directly related to the view (zoom, pan, rotate, show edges et cetera) and all settings would simply be UI-less properties on the user control.

That would allow me to embed it into a program, have the program generate an object (from parameters, database, specialized GUI et cetera), and then have it drawn.

So, basically, the next level of the OpenSCAD Customizer, allowing me to create things I can put in the hands of ordinary users (or make things really easy for me when I'm feeling lazy).
tp3
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

tp3
Von: Troberg <[hidden email]>
> Is there any project/fork which has the viewport of OpenSCAD
> as some kind of embeddable object (preferably ActiveX)?
>
I did not see anything like that so far.

> Basically, what I'd like to do is to have a user control which
> I can use in my programs, which I could simply feed a script
> as a string, and have it drawn. The only user interface would
> be what's directly related to the view (zoom, pan, rotate,
> show edges et cetera) and all settings would simply be UI-less
> properties on the user control.
>
An interface to remote control actions does exist in a branch,
but that's currently only available via D-BUS which would
probably make it almost impossible to use on Windows (I'm not
sure if Qt does have D-BUS on Windows implemented). I don't
know what a native/usable Windows solution could use instead.

> So, basically, the next level of the OpenSCAD Customizer,
> allowing me to create things I can put in the hands of ordinary
> users (or make things really easy for me when I'm feeling lazy).
>
I do like the idea, but also have 2 questions

- Why ActiveX? That would definitely exclude any users on
  non-Windows systems.

- Does it need to be that specific so it must be a
  separate application? That always sounds like a great
  idea in the short run as it allows more freedom to do
  things, but that only applies until there are a reasonable
  number of users.

ciao,
  Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

kintel
Administrator
I can add these thoughts:

1) Qt does support activeX components through the ActiveQt framework: https://doc.qt.io/qt-5/activeqt-index.html
     Due to the platform-specific traction of ActiveX, it’s not very high on our list to go down that road ourselves though.

2) Just to clarify: Embedding such a component into an application doesn’t alleviate you from following the OpenSCAD license, so your entire application would still have to be open sourced with a GPL compatible license.

3) We’ve received multiple requests for an embeddable viewer over the years, so this has potential for wider use if we can establish the resources to make it happen.

4) As Torsten alluded towards, if you’re writing an app from scratch, why not simply write it in Qt? That would make such embedding a lot easier. You’d also acquire the experience to help working towards isolating OpenSCAD’s viewer component into something embeddable. ..plus you’ll be multi-platform ready.

Kind Regards,

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

Felipe Sanches
Would it be too ambitious to think of an emscripten build of OpenSCAD ?

2017-01-27 14:11 GMT-02:00 Marius Kintel <[hidden email]>:
I can add these thoughts:

1) Qt does support activeX components through the ActiveQt framework: https://doc.qt.io/qt-5/activeqt-index.html
     Due to the platform-specific traction of ActiveX, it’s not very high on our list to go down that road ourselves though.

2) Just to clarify: Embedding such a component into an application doesn’t alleviate you from following the OpenSCAD license, so your entire application would still have to be open sourced with a GPL compatible license.

3) We’ve received multiple requests for an embeddable viewer over the years, so this has potential for wider use if we can establish the resources to make it happen.

4) As Torsten alluded towards, if you’re writing an app from scratch, why not simply write it in Qt? That would make such embedding a lot easier. You’d also acquire the experience to help working towards isolating OpenSCAD’s viewer component into something embeddable. ..plus you’ll be multi-platform ready.

Kind Regards,

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

MathLover
This post has NOT been accepted by the mailing list yet.
In reply to this post by Troberg
You could run OpenSCAD on the command-line to generate an STL file and use an ActiveX to show that? That way, nobody would have to build a very specific componentn and the chance of finding a general 3D viewer is better.
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

kintel
Administrator
In reply to this post by Felipe Sanches

> On Jan 27, 2017, at 12:04, Felipe Sanches <[hidden email]> wrote:
>
> Would it be too ambitious to think of an emscripten build of OpenSCAD ?
>
It has been done - it used to be hosted at fabfabbers.com, but it didn’t make it.
There are still traces lying around, https://github.com/marcosscriven/openscad, https://github.com/marcosscriven/cgaljs

Emscripten has its own issues, mostly due to it not being an API for creating Javascript objects from the C++ side of things, so everything needs to be marshalled through a text-based format.

I’ve been experimenting with a pure Javascript approach. I think that would be preferrable; then just access the heavy number crunching done by CGAL over the Emscripten bridge. It’s going to be a major time sink though, so I’m not actively pursuing it at the moment.

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

Troberg
In reply to this post by tp3
> - Why Active X?

Well, it's simply because, at the moment, for me, it would be easiest. Other solutions would also work. My point is more the embeddable feature than any specific technology.

> - Does it need to be that specific so it must be a
>  separate application? That always sounds like a great
>  idea in the short run as it allows more freedom to do
>  things, but that only applies until there are a reasonable
>  number of users.

In my case, I've made an "overcoat app" to keep track of my projects. It has everything from material lists (I'm not 3D printing, I'm building the old style way), shopping lists, issues, outstanding questions, project descriptions, "seed measurements", work plans, experiences from the project and, of course, the math which drives the script generation and the script.

Out of pure laziness, it's made in Access and VB6 (it's been around for a while).

I could (and do) shell out OpenSCAD, but it would be neater to have it more self contained.
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

Troberg
In reply to this post by kintel
> 2) Just to clarify: Embedding such a component into an application doesn’t alleviate you from following the OpenSCAD license, so your entire application would still have to be open sourced with a GPL compatible license.

I know that, but, in m case, it's just for me, and maybe a friend or two, so it won't be a problem. I have no plans to productify it.

> 4) As Torsten alluded towards, if you’re writing an app from scratch, why not simply write it in Qt? That would make such embedding a lot easier. You’d also acquire the experience to help working towards isolating OpenSCAD’s viewer component into something embeddable. ..plus you’ll be multi-platform ready.

I already have my application, and would prefer not to rewrite it.

That said, any technology that's at least somewhat standard would be workable, most others could be done by encapsulating it.

In fact, once the interface is specified and the code partitioned as needed (which probably is already more or less done internally anyway), encapsulating that object in any embedding technology would probably be fairly simple.
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD as ActiveX?

jdawgaz
I would hope not (at least not ActiveX). That is a windows ONLY solution, and OpenSCAD is cross platform.


--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Openscad developer

The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov


On Sat, Jan 28, 2017 at 2:42 AM, Troberg <[hidden email]> wrote:
> 2) Just to clarify: Embedding such a component into an application doesn’t
alleviate you from following the OpenSCAD license, so your entire
application would still have to be open sourced with a GPL compatible
license.

I know that, but, in m case, it's just for me, and maybe a friend or two, so
it won't be a problem. I have no plans to productify it.

> 4) As Torsten alluded towards, if you’re writing an app from scratch, why
> not simply write it in Qt? That would make such embedding a lot easier.
> You’d also acquire the experience to help working towards isolating
> OpenSCAD’s viewer component into something embeddable. ..plus you’ll be
> multi-platform ready.

I already have my application, and would prefer not to rewrite it.

That said, any technology that's at least somewhat standard would be
workable, most others could be done by encapsulating it.

In fact, once the interface is specified and the code partitioned as needed
(which probably is already more or less done internally anyway),
encapsulating that object in any embedding technology would probably be
fairly simple.



--
View this message in context: http://forum.openscad.org/OpenSCAD-as-ActiveX-tp20249p20256.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org