Author Topic: "Snappy", more snap points for CamBam plugin  (Read 161641 times)

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #30 on: August 28, 2017, 00:50:47 am »
"On the same PC ?"

Yes, on the same PC with the SAME XP operating system, and the same .NET installs!

(That's partly why I am so confused!)

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7589
    • View Profile
    • Cambam V1.0 French Doc
Re: "Snappy", more snap points for CamBam plugin
« Reply #31 on: August 28, 2017, 01:06:44 am »
Yep, really strange  ??? ???

Did you try with a clove of garlic close to the PC  ;D

++
David

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #32 on: August 28, 2017, 09:53:09 am »
Snap points are not visible ; The mouse sticks (magnet) on the points when passing over it, exactly as with the built-in snap points.

++
David

I don't want to sound like whining but all other programs I use have a way to indicate a snap point. Like cursor shape change from arrow to cross or similar when hovering over such point.

Offline kvom

  • CNC Jedi
  • *****
  • Posts: 1614
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #33 on: August 28, 2017, 11:24:04 am »
Suggestion for an addition.  If two circles or arcs are selected, create snap points for a line tangent to both.

Hello

Already exists in Draw/plus/tangente ;)

http://www.atelier-des-fougeres.fr/Cambam/Aide/cad/Entities.htm#plus

++
David

I was aware that there was another way to do it, but why not put all the snap ops in one place?

I don't do much/any CAD in CB so my suggestion is just from a bystander.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #34 on: August 28, 2017, 12:30:59 pm »
Snap points are not visible ; The mouse sticks (magnet) on the points when passing over it, exactly as with the built-in snap points.

++
David

I don't want to sound like whining but all other programs I use have a way to indicate a snap point. Like cursor shape change from arrow to cross or similar when hovering over such point.

Snap point have never been indicated in CamBam
Filmed in Supermarionation

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #35 on: August 28, 2017, 12:31:41 pm »

I was aware that there was another way to do it, but why not put all the snap ops in one place?

I don't do much/any CAD in CB so my suggestion is just from a bystander.

With this plugin there is nothing to put anywhere.
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #36 on: August 28, 2017, 13:46:16 pm »
I'm _about_ to get my garlic out! 

Just to be clear, Snappy loads just fine in either version, but "more snaps" refuses in 0.9.8, and loads fine in 1.0???

XP, same system, same physical computer.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #37 on: August 28, 2017, 14:03:24 pm »
Ok, maybe I'm beating my head against the wall for nothing.

Snappy.dll runs OK on both versions.  I only need "snappy.dll" to get all the most-recent zoom-compatible extended snaps, right?  The old 'moresnaps.dll' is no longer needed?  And that's the one that won't load, anyway.

Also, on either of my versions of CB, I only get snap points at all if I'm in the 'active drawing mode' for one type of drawing object or another.  From a standpoint of practicality, that should be the only time I ever DO need them, but I want to make sure I'm understanding that correctly.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2680
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #38 on: August 28, 2017, 14:09:07 pm »
Snap point have never been indicated in CamBam
I know but I can have my dreams too :)

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #39 on: August 28, 2017, 14:10:43 pm »
lloyd,

moresnaps.dll is no longer needed if snappy installed.
And it was compiled for CB1.0 (NET 4), yes.

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #40 on: August 28, 2017, 14:26:27 pm »
Ok... all my questions but the one were answered, and that one is sort of 'obvious' to anyone who's used CB for CAD work.

Lloyd

"Pyro for Fun and Profit for More Than Fifty Years"

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #41 on: August 28, 2017, 14:47:19 pm »
Eddy, just a quick idea:

We could indicate if snap is in action by changing cursor, something like
ThisApplication.TopWindow.Cursor = is_snapping ? Cursors.Cross : Cursors.Default;

Though IMHO it is little too hacky to hook into the CB like this.

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #42 on: August 28, 2017, 14:54:48 pm »
I kind of like that idea.  For instance, when finding the snap for an arc-center, it's sometimes pretty 'iffy' to know for sure you're on it.  Changing the cursor momentarily while over a snap-point would be a nice addition.

I wouldn't 'hard-code' it to a cross, though.  Some folks might use that as their default.  I'd find out what the default is, then use anything other than that for the snap-points (except invisible, of course!).

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5332
  • Made in England
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #43 on: August 28, 2017, 15:08:09 pm »
Version 3 added to first post.

Should work with 0.9.8 and 1,0

Added "snap to intersections"

I have to say that took some sorting out and I'm not 100% with it yet.

Thanks jk, I'll have a play with the cursor idea.  ;)

I was thinking about a small form with check boxes located in the 'Plugins' menu. This would be used to enable/disable different snaps. i.e. centre, intersection, midpoint.
The main reason being that with a large file it takes time for the intersections to complete so it would be nice to disable them.

The algorithm for intersections goes like this;

If the cursor is just moving about, do nothing.
If the cursor is in an active edit mode, e.g. drawing, and it lands on top of a suitable entity (e.g. Pointlist is not suitable) then;

1. add all the suitable entities on the current active layer into a Shapelist
2. get all the intersections and add to a dictionary
3. step through the dictionary and find only the points that intersect the entity under the cursor
4. add those points to the snap list.
 
So it's like a dynamic method that adds the snap points 'just in time'.
I'm hoping that CamBam discards the snap points as jk described earlier otherwise they are going to mount up very quickly.  ???
« Last Edit: August 28, 2017, 15:33:16 pm by EddyCurrent »
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: "Snappy", more snap points for CamBam plugin
« Reply #44 on: August 28, 2017, 15:35:20 pm »
Hmmm... Eddy,
With this new version, it seems to be 'snapping to grid' any time you dwell over any drawn object (while in drawing mode).  It still snaps to the 'ordinary' snap-points, but ALSO snaps to the grid, even with that feature turned off.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"