Script or something like it to make a slot
 1-16  17-31

Previous
Next
 From:  fcwilt
9876.17 In reply to 9876.13 
Hi,

Well it would seem to belong there with the Circle command Yes? No?

Frederick
  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
9876.18 In reply to 9876.16 
Hi Tudor,

re:
> by side panel I understand as object browser panel or commandUi panel

If you set up the script mentioned above (http://kyticka.webzdarma.cz/3d/moi/#MaximizeViewport)
on a shortcut key, then it would be possible to maximize and unmaximize viewports without using
any other UI.

If you mean you want some way to hide all the regular UI panels, try this one:
http://kyticka.webzdarma.cz/3d/moi/#FullScreen

If neither of those is correct I will need more details about what you're trying to do.

- 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:  Michael Gibson
9876.19 In reply to 9876.17 
Hi Frederick, so the little clusters of related commands like the circles is called a "command set".

There are 2 files that make up a command set, one is a .htm file for the UI and the other is an .xml file that lists the commands in it.

For the circles these are the files Circles.htm and Circles.xml which you can find in the commands folder inside MoI's install folder.

Edit the Circles.xml file by adding in an entry for "slot", like this:

<commandset>
   <command>circle</command>
   <command>circlediameter</command>
   <command>circle3pt</command>
   <command>circletangent</command>
   <command>slot</command>
</commandset>

Edit the Circles.htm file by by putting in a command button like this:

<html>
   <body class="CommandSetBody">
      <moi:CommandButton icon="moi://ui/icons/CircleCenterIcon.png" command="circle"><moi:Text textid="CircleCenter"></moi:CommandButton>
      <moi:SmallSpacer />
      <moi:CommandButton icon="moi://ui/icons/CircleDiameterIcon.png" command="circlediameter"><moi:Text textid="CircleDiameter"></moi:CommandButton>
      <moi:SmallSpacer />
      <moi:CommandButton icon="moi://ui/icons/Circle3ptIcon.png" command="circle3pt"><moi:Text textid="Circle3pt"></moi:CommandButton>
      <moi:SmallSpacer />
      <moi:CommandButton icon="moi://ui/icons/CircleTangentIcon.png" command="circletangent"><moi:Text textid="CircleTangent"></moi:CommandButton>

      <moi:SmallSpacer />
      <moi:CommandButton icon="moi://ui/icons/SlotIcon.png" command="slot">Slot</moi:CommandButton>

   </body>
</html>

Then the last thing is to create a bitmap image for button, that should be a 64x64 pixel sized PNG file named SlotIcon.png which goes in the /ui/icons directory.


With that set up you should then have a 5th entry for "Slot" added into the Draw curve > Circles command set.

You will need to repeat this process with installs for new versions.

- Michael

EDITED: 11 Jul 2020 by MICHAEL GIBSON

  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:  fcwilt
9876.20 In reply to 9876.19 
Hi Michael,

I truly appreciate your help and guidance.

You've created an amazing program and your willingness to help add to it's functionality is even more amazing.

Frederick
  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:  nameless
9876.21 In reply to 9876.20 
This forum needs a way to "like" or "love" or "approve" a post, or thank the user for posting in some way :)

The Slot command is amazing Michael, it definitely deserves an icon!

EDITED: 14 Jul 2020 by NAMELESS

  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:  Mik (MIKULAS)
9876.22 In reply to 9876.20 
Hi Michael,

slot script is very useful. Would it be possible to have an option diameter instead of radius as an input? It is not necessary, but helpful for users, who have set "diameter" as a default in moi.ini file:)

Thank you.
Mik
  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
9876.23 In reply to 9876.22 
Hi Mik, I've updated the script in the post above to have a radius/diameter toggle and to use diameter by default if you've set the option in moi.ini .

Please let me know if it isn't working as expected.

- 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:  Mik (MIKULAS)
9876.24 In reply to 9876.23 
It is absolutely perfect :-)
Thank you very much.
Mik
  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:  nameless
9876.25 
:3
Image Attachments:
Size: 16.2 KB, Downloaded: 62 times, Dimensions: 255x249px
  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:  stefano (LIGHTWAVE)
9876.26 In reply to 9876.25 
Great thread and a tool with some mileage for me...

Say I create 50 different slots and these are done from some lists of standard slot sizes from different sheet metal suppliers. Its these guys who do cnc 'punching' where a slot is a standard tool.

What would be best way of organising a library of these 'objects'
(ideally by supplier) so they could be pulled into any drawing?

I presume using object libraries (e.g via max's customui script) might be the way to go. They seem to be externally referenced but I am not sure if I can create sub folders (by supplier) or search for these ¿

EDITED: 6 Sep 2020 by LIGHTWAVE

  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
9876.27 In reply to 9876.26 
Hi Stefano, you can store them in whatever directory structure you like and when you want to insert one if you use the ImportPart command (right-click on File > Import), that will allow you to pick the filename and also let you position it immediately as well.

- 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:  stefano (LIGHTWAVE)
9876.28 In reply to 9876.27 
Thanks Michael will get some object folders organised to start with.
For a few minutes was thinking maxs 'object library' became core functionality in v4, then realised, previously put stuff in %apps/. Must have been future proofing :0). Anyway understood all that now.
Good to be onboard...

Tested V4 DxF layers on import, its great great.
Stefano
  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
9876.29 In reply to 9876.28 
Hi Stefano, also the next beta adds read and write of dimensions for DXF format as well.

- 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:  stefano (LIGHTWAVE)
9876.30 In reply to 9876.29 
Sounds very promising.

If i have a specific feature request re: dimensions
do you want it on that on the pinned "v4" thread?
  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
 From:  Michael Gibson
9876.31 In reply to 9876.30 
Hi Stefano, you can post it either here or over there, either is fine.

- 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
 

Reply to All Reply to All

 

 
 
Show messages:  1-16  17-31