Author Topic: Plugin to visually link MOPs and geometry  (Read 13673 times)

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Plugin to visually link MOPs and geometry
« on: September 01, 2018, 15:17:53 pm »
Small and dumb, but really useful.

Click on the new Show Links icon on view toolbar or choose View->Show links.

Drawing tree entries will shift right revealing space for link arrows.  Now click on the arrows (or arrows space) to choose link source.

If geometry object is clicked, mops and parts using this geometry are shown.
If Layer is clicked, all objects from layer used in mops are shown + affected mops and parts.
If MOP is clicked, assigned objects and their layers are shown
If Part is clicked, all objects used in contained mops are shown + layers.
Layers and Machining may be clicked too, showing the links for all layers or all parts.

The boundaries ids for 3dprofile mops are treated as primitives and linked too.

If link source is MOP/Part, they would be checked for link errors.
If there are any missing primitives or no primitives assigned, a little warning exclamation sign would be drawn next to the link.

Plugin is click-driven and will update links only after a click, so it won't notice any changes in objects/mops including addition and deletion. In some cases (calling undo or loading new file) CB will regenerate the tree completely, forcing it to lose all arrows. Just click to redraw, it is easy )
« Last Edit: September 18, 2018, 17:17:51 pm by jk »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7400
    • View Profile
    • Cambam V1.0 French Doc
Re: Plugin to visually link MOPs and geometry
« Reply #1 on: September 01, 2018, 15:22:58 pm »
Hello

Nice idea !

Ah ! .. I have a lot of plugins to update/add to the web site ...

Is it working on both 0.98 and 1.0 ?

++
David

Offline jim1108

  • Droid
  • **
  • Posts: 86
    • View Profile
Re: Plugin to visually link MOPs and geometry
« Reply #2 on: September 01, 2018, 17:43:36 pm »
Great idea.
 
I have just tried it out on version 1.0 with one of my larger .cb files that contain many layers, parts, and mop's and it works fine.


This plug-in is extremely helpful when you have a large drawing with different layers and many mop's.

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Plugin to visually link MOPs and geometry
« Reply #3 on: September 01, 2018, 17:50:05 pm »
Great idea. Thank you for this.
My 2ยข

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7400
    • View Profile
    • Cambam V1.0 French Doc
Re: Plugin to visually link MOPs and geometry
« Reply #4 on: September 01, 2018, 17:58:49 pm »
Hello

maybe I do something wrong, but it seems it is not working for me ...

https://www.screencast.com/t/KedNt2qZ


Quote
Is it working on both 0.98 and 1.0 ?

And I reply to my question ... only for V1.0

++
David

edit:

oops, "Click to the left of the MOP/Part/Layer/Object in the tree and see link arrows."

works !! sorry
« Last Edit: September 01, 2018, 18:05:52 pm by dh42 »

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: Plugin to visually link MOPs and geometry
« Reply #5 on: September 04, 2018, 00:25:27 am »
Updated first post with version 1.1.0.

The boundaries ids for 3d profile are linked too.
Added error checking for absent primitives.
Links may be hidden now to reduce visual noise )

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7400
    • View Profile
    • Cambam V1.0 French Doc
Re: Plugin to visually link MOPs and geometry
« Reply #6 on: September 04, 2018, 21:48:49 pm »
Yes, very useful the link for 3D profile boundaries ..

added to the website  ;)

++
David

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4475
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Plugin to visually link MOPs and geometry
« Reply #7 on: September 05, 2018, 14:58:36 pm »
I will have to try this TODAY.  I work with files that have dozens of MOPs and often several dozen (or more) geometry elements.  This could be VERY useful when refining the last details of a job. 

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: Plugin to visually link MOPs and geometry
« Reply #8 on: September 05, 2018, 16:11:53 pm »
... still not completely satisfied with the method of toggling show/hide for links.

Now I thinks the better way is to add Links icon to the view toolbar and maybe 'Show Links' to the view menu.
This way it will behave the same as grid and axis toggles. A bonus for the UI consistency )

Gotta code it as soon as time allows.

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: Plugin to visually link MOPs and geometry
« Reply #9 on: September 06, 2018, 16:26:52 pm »
First post updated with the version 1.2.0

Now the links are shown/hidden via toolbar icon or view menu, similar to the Show grid and Show axis.

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4475
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Plugin to visually link MOPs and geometry
« Reply #10 on: September 06, 2018, 16:34:27 pm »
First post updated with the version 1.2.0

Now the links are shown/hidden via toolbar icon or view menu, similar to the Show grid and Show axis.

Nice.  I said I would check this out yesterday, but sadly I just didn't have he time.  I was headed out of the shop fairly late when I realized I hadn't checked it out yet.  I'll try very hard to check out the new version today. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4475
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Plugin to visually link MOPs and geometry
« Reply #11 on: September 06, 2018, 17:58:49 pm »
I still haven't sat down and tried this plugin, but I wanted to ask.  Does it show a link or association with secondary geometry elements?

For example when you select a 3D MOP the 3D mesh turns red (by default), but it doesn't indicate any selected shapes geometry used to constrain the operation.  I always thought it would be good if the primary mesh turned red, and the selected shapes turned white or black. 
 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: Plugin to visually link MOPs and geometry
« Reply #12 on: September 06, 2018, 18:27:40 pm »
Bob, it makes no distinction of primary ids and 3d boundaries ids and shows links for them both.

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4475
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Plugin to visually link MOPs and geometry
« Reply #13 on: September 06, 2018, 21:53:27 pm »
I finally installed and tried it.  I don't think clutter will be an issue.  Its actually kind of subtle compared to some features.  I was able to turn it on and off using the top tool bar icon, but I didn't get the other method of turning it on or off. 

Its nice that you can be broad or narrow in scope of usage as well.  From all layers to a single entity or from all operations to a single operation.  Nice. 

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4475
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Plugin to visually link MOPs and geometry
« Reply #14 on: September 07, 2018, 14:58:15 pm »
After playing with it some I see that it could be confusing and lead to some user errors since you now have two different indicators of geometry linked to operations.  The inherent one in CamBam and the Geolinks arrows. 

Its very useful, and I even made a short video showcasing its abilities, but after some thought I can see how it could be confusing to have one set of geometry lit up in red, and arrows pointing to unrelated geometry and operations. 

I will find this plug-in very useful, but I would not recommend that CamBam beginners install it. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com