C API, Scripting Interface, Python, Other Langs
 1-5  6-25  26-30

Previous
Next
 From:  Michael Gibson
10720.6 In reply to 10720.5 
Thanks Burr, I added a link to your post above on https://moi3d.com/wiki/Scripting .

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10720.7 In reply to 10720.6 
Sure!

Keeping Max in my heart.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10720.8 In reply to 10720.7 
Thank you Burr.

On Windows 11, the Flask icon was successfully added to the MoI icon file, as well as the API htm file to the ui directory, MoI 4.
Only the initial index API screen comes up after clicking on the flask. Selecting a factory does not show the factory details screen. Windows 11 says that a new app is needed.
The Microsoft store has 100 file viewers. Did not download any due to potential hacking. Is there a certain APP to download to access the subscreens?
Do the subscreens come up in Windows 10?


(Also tried Max's 318 kb html file. Had to use .html, not .htm. But still no subscreens.)
(External to MoI, the Edge browser opens the htm(l) files with subscreen access.)

- Brian

Some newer factories have documentation by Michael on the forum.
e.g. Network.
offset factory has more details from Michael on the forum, than D Morrill's API.

EDITED: 7 Jun 2022 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10720.9 In reply to 10720.8 
Hi Brian, in the launcher button try changing the onbuttonclick="" attribute to this instead:

onbuttonclick="moi.filesystem.shellExecute( moi.filesystem.getUIDir() + 'moi_ref\\index.htm' );"

That should open it up in the system web browser when you click it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10720.10 In reply to 10720.9 
Thank you Michael.

Your code was successful. Omitted the window resizing. Maximize/reset button in API screen changes window size, or drag. MoI 4 remembers the size.

- Brian

Do not know if some of the files of this modification should be in appdata?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10720.11 In reply to 10720.10 
Hi Brian,

re:
> Do not know is this modification should be in appdata?

You could put it there if you wanted. If you put it inside the appdata folder, change the script to call moi.filesystem.getAppDataDir() instead of moi.filesystem.getUIDir() .

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10720.12 In reply to 10720.11 
Thanks Michael.

Great API access addition by Burr.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  jeff (JSPRENGER)
10720.13 
Wow! Amazing responses from the community. I will sift through the docs and give this a go.

Michael,

I would like to say how much I like using MOI4. My work is in robotics modeling and simulation, and I find MOI is my quick go-to for creating simple parts and fixtures in 3D.
Among others, I've used SolidWorks, Fusion360, Rhino, SolverSpace, FreeCAD. Moi is, by far, the easiest and most intuitive to use with the seamless merging of 2D sketching and 3D construction tools for extrude, revolve and diff. Of course, I have a bunch of feature requests, but I can see that you're quite busy with your current load - so I'll hold off.

Thanks all for the help.

Jeff
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  jeff (JSPRENGER)
10720.14 In reply to 10720.13 
@BurrMan

I followed you instructions and now have the docs integrated. Thanks for providing that.
Image Attachments:
Size: 359.5 KB, Downloaded: 95 times, Dimensions: 1804x1204px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  jeff (JSPRENGER)
10720.15 
A quick update.

Here's my quick hack to add a new sub-panel that will hold docs and automation scripts for me.
(video attached)
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10720.16 In reply to 10720.15 
Cool UI result!
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10720.17 
Hey Brian,

Yeah, i discovered that here too. Michael had fixed it.

I also like the idea of moving it to the appdata directory!

So i will make the changes to my sidepane code, and when i am sure i have done it correctly, i will update my original post code example, so i don't lead anybody astray....

If you have already created that line properly, maybe put it here so i can copy and paste it???

[EDIT: I have changed my original post here to fix "code" error]

EDITED: 8 Jun 2022 by BURRMAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10720.18 In reply to 10720.8 
"""""""Some newer factories have documentation by Michael on the forum.
e.g. Network.
offset factory has more details from Michael on the forum, than D Morrill's API."""""""""

Yes. This doc is fairly old. It was derived from the old IDL file MoI had with it.

Alot has changed since then. But this doc is a great ""overview" so to speak. It has to be used with that understanding...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10720.19 In reply to 10720.17 
Hi Burr,

Your MoI4 sidepane modification is just right.

Note to others: The change is located at line 143 +/- of MoI4 sidepane.htm file, replacing pre-existing spaceholders td and /td.
Below History, as per Burr.
Windows 10 or 11, MoI4 files located below program files directory.

The moi_ref file now located in appdata directory.

For my version, I changed the name of the flask Icon from dmorrill.png to API_Icon.png, and the flask command button name from JavaScript ref to API ref. spacesaving
Totally unnecessary changes. Burr's code is just fine.

- Brian

EDITED: 8 Jun 2022 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10720.20 
Burr's API modification works fine in MoI 5 beta, May 22, 2022.

It took about 2 minutes to copy the Icon, and modify the MoI 5 beta sidepane htm file (line 143 in notepad++).

AppData was already set up for the mod.

- Brian

I wonder what sort of editor was used by D Morrill to create the API?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10720.21 In reply to 10720.20 
@Jeff - No worries. You're welcome

Brian,
David explained he wrote a script which extracted the data from the IDL (Then hand supplemented it to be more robust). My guess is he was such a heavy programmer, he just wrote it to do a "toc" setup with jQuery at some level to create the page. Whether he did it with the UI stuff or just all code, is unknown.

To be clear, this is all Davids work. I just grabbed it for local consumption back when he created it.

Because his site is defunct and Max's mirror has been taken from us, I shared it here.

Frenchy should copy the file and document this on his weebly also!!!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10720.22 In reply to 10720.21 
All that is very complex for me! :)

In any case I change the Max Links and put this API (Burrman) again in case of! :)
In a very rustic way before remake all your elaborate refinements!

+Moi's IDL (there no date on top page ? so this idl is for what version of MOI ?

https://moiscript.weebly.com/api-de-moi.html


And i must edit also the page of the French wiki...some headaches in perspective! :)

EDITED: 8 Jun 2022 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10720.23 In reply to 10720.22 
Hi Frenchy,
I wouldn't edit all your existing stuff.

Lets stay hopeful that Max returns!

This is the "offline version" from max's mirror. The original discussion was Brian and Max back when Max mirrored Davids docs....

So just a link to the post with an "offline version" tag, can help anyone that wants it...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Psygorn (DRILLBIT)
10720.24 
Hello All,

I have utterly unrelated question, so I apologize in advance!

Who was David C Morrill? And what happened to him?

Also I heard Max is back (but I cannot confirm it) is this info correct?

and a question for @Michael ;

With your help Sir; I shifted "Objects", "Types" and "Styles" tabs to the left side Is it possible for me to have Burr's Snapshot of David C Morrill there?

I am asking in advance before messing things up!

- Psygorn
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10720.25 In reply to 10720.24 
Drillbit,
The DMorrill documentation is a little outdated and was generated back in v3

Peer Pressure has worked on updating it and may be a better ref for you to add and use…

http://moi3d.com/forum/lmessages.php?webtag=MOI&msg=10857.1
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-5  6-25  26-30