Author Topic: [VB script + Plugin] Bottom View  (Read 11883 times)

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6491
    • View Profile
    • Cambam V1.0 French Doc
[VB script + Plugin] Bottom View
« on: December 27, 2013, 19:12:47 pm »
Hello,

Here is a very short VB script that flip the view to a bottom view. (XY view from bottom)

Code: [Select]
' CamBam VBScript
' bottom view

sub main

dim c as Point3F = New Point3F(0,0,0)

View.ViewProjection.ViewXYPlane() 'top view (xy)

'rotate view 180° around X (1xPi radian) to get a bottom view
View.ViewProjection.RotateView(0,Math.PI,c)

end sub

Edited on 3/1/2014: use of Math.PI instead of a local variable.

++
David
« Last Edit: January 03, 2014, 17:54:30 pm by dh42 »

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1826
    • View Profile
    • pixelmaker
Re: [VB script] Bottom View
« Reply #1 on: December 28, 2013, 18:38:21 pm »
David,


Thank you

ralf

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6491
    • View Profile
    • Cambam V1.0 French Doc
Re: [VB script + Plugin] Bottom View
« Reply #2 on: December 29, 2013, 17:53:37 pm »
Hello Ralf,

And my very first plugin  ;D

It does the same, of course, and the menu item is located in the View menu.

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #3 on: December 29, 2013, 18:09:46 pm »
WHAT?  No source!  Aw... :-\

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

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6491
    • View Profile
    • Cambam V1.0 French Doc
Re: [VB script + Plugin] Bottom View
« Reply #4 on: December 29, 2013, 18:23:22 pm »
Hello Lloyd  ;)

All the files (not sure they are all useful)

(Visual Basic 2010 express)

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #5 on: December 29, 2013, 18:48:53 pm »
Thank you David.  I WILL make use of the knowledge in there!

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

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6491
    • View Profile
    • Cambam V1.0 French Doc
Re: [VB script + Plugin] Bottom View
« Reply #6 on: December 29, 2013, 18:56:49 pm »
Maybe a first plugin in C# before the beginning of 2014 ?  :D :D

You have VB .net installed too ?

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #7 on: December 29, 2013, 20:48:57 pm »
Maybe a first plugin in C# before the beginning of 2014 ?  Cheesy Cheesy

You have VB .net installed too ?
---------
That's my goal, even if it's a useless "demo" plugin.

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

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1826
    • View Profile
    • pixelmaker
Re: [VB script + Plugin] Bottom View
« Reply #8 on: December 29, 2013, 21:25:30 pm »
Thank you David for the plugin.
Is it possible to make a icon in to the toolbar?


ralf

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6491
    • View Profile
    • Cambam V1.0 French Doc
Re: [VB script + Plugin] Bottom View
« Reply #9 on: December 29, 2013, 21:40:37 pm »
Thank you David for the plugin.
Is it possible to make a icon in to the toolbar?


ralf

 ;D yes, certainly, but I do not know yet how to do ... for a future release ;)

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #10 on: December 30, 2013, 13:03:35 pm »
See now down in Feature Requests:  Bottom View in C# and in the View Toolbar.

<G>
LLoyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6491
    • View Profile
    • Cambam V1.0 French Doc
Re: [VB script + Plugin] Bottom View
« Reply #11 on: December 30, 2013, 14:58:25 pm »
WHAT?  No source!  Aw... :-\

LLoyd


Bis  ;D ;D ;D ;D

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #12 on: December 30, 2013, 16:10:30 pm »
Hah, hah!  I did that on purpose to see how long it would take you to react! <G>

Here.

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

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #13 on: December 30, 2013, 18:50:21 pm »
No translation, yet, but I changed the dumb "BOTM" text to an icon.

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

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8452
    • View Profile
Re: [VB script + Plugin] Bottom View
« Reply #14 on: December 30, 2013, 19:01:49 pm »
Oh, and David,

On this:
Maybe a first plugin in C# before the beginning of 2014 ?  Cheesy Cheesy
--

YES!

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