hexagon logo

Using variables with Auto-Plane.

I've made a pretty simple VB script when measuring flat bars (click a button and send back an y-coordinate, hits/row and name). But can't get one thing to work:

Let's say I assign V1=16 and use V1 for hits/row on an Auto-Plane, it won't update until I change something manually. I can see the number 16 is there - both in the editing window and in F5 - but the plane won't use 16 hits/row. Why is that?

I have tried both .RefreshPart and .Redraw but nothing changed. Those were the only 2 commands I found in the manual that looked like they could work.
Parents
  • What?

    If you are using a variable as your X-coordinate, the hits/row won't update? It should use whatever value you have in V1 for hits/row, you won't see it as a number in the edit window but it should use 16...

    Bug?


    If using a variable as the X-coordinate of the first hit (not X of the actual plane) it won't update and use the correct hits/row, no. I can see the number's there but it won't be used.


    Got a bad fixture for this as it holds the flat bar in 3 locations. The height of 'em are only 30mm and this means I have to set the distance in the plane at around 25, and no matter what I do it will always hit the fixture somewhere. If I could only change the bottom row X-coord of the first hit it would work.

    Think I will have to do a bunch of planes and just use IF's. Not as neat tho Slight smile
Reply
  • What?

    If you are using a variable as your X-coordinate, the hits/row won't update? It should use whatever value you have in V1 for hits/row, you won't see it as a number in the edit window but it should use 16...

    Bug?


    If using a variable as the X-coordinate of the first hit (not X of the actual plane) it won't update and use the correct hits/row, no. I can see the number's there but it won't be used.


    Got a bad fixture for this as it holds the flat bar in 3 locations. The height of 'em are only 30mm and this means I have to set the distance in the plane at around 25, and no matter what I do it will always hit the fixture somewhere. If I could only change the bottom row X-coord of the first hit it would work.

    Think I will have to do a bunch of planes and just use IF's. Not as neat tho Slight smile
Children
No Data