Author Topic: Rotating Earth  (Read 7220 times)

0 Members and 1 Guest are viewing this topic.

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Rotating Earth
« on: February 06, 2013, 10:52:25 PM »
Made a rotaing earth.
Downloaded the Map of World created by Visio guy at
http://www.visguy.com/2007/04/23/map-of-world/.
Pasted it around a sphare using freeware GIMP.
Saved as animation gif.
Separated images from animation gif.
Copied and Pasted on Visio drawing using my macro "TrimCircular"

If you download attatched Visio drawing, enable macro, and double-click the earth,
then the earth rotate just 1 time.

Please, enjoy.
« Last Edit: February 07, 2013, 12:53:55 AM by JuneTheSecond »
Best Regards,

Junichi Yoda
http://june.minibird.jp/

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1736
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Rotating Earth
« Reply #1 on: February 07, 2013, 11:59:28 AM »
Hey Junichi,

Very cool as usual. This might work well with fewer image-shapes, using the "film strip" technique:

Visio Film Strip Shapes: Hurray for Hollywood!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Rotating Earth
« Reply #2 on: February 08, 2013, 05:44:38 AM »
Thank you, Visio Guy.

It is great!
I am going to change my way to your "film strip" technique.

Thanks again.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Rotating Earth
« Reply #3 on: February 10, 2013, 03:02:09 AM »
Your "film strip" technique is excellent.

I tried your method.
1. I tried to fill a circle with film strip image.
    However I met a problem that custom fill
    pattern seems not support trimming operation of image.

2. I tried direct film strip jpg and png image to the Earth.
    but I had a problem of background.
    I wish the shape of the Earth is round to place
    at the center of rotating shapes that runs around the Earth.

Then, I revised my macro, "Rotate", so as to change the parameter of USE function.
It also reduced the number of shapes, but could not reduce the number images.

Here is my latest rotating Earth.
You can rotate the Earth by double-clicking the Earth or
manually change the angle by selecting items among shape data table.
And please enable macro.

Anyway thank you, Visio Guy.
   
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Rotating Earth
« Reply #4 on: February 12, 2013, 05:19:13 AM »
My rotating earth has another problem.
The problem is portability.
Custom fill pattern is not portable.
My rotating earth needs 12 fill patterns.
I could not found any magic to copy them.
Then I thought I had to write VBA macro to copy custom fill patterns.
Attatched stencil(vss file) has the macro that copies fill patterns
when you drop earth on the Visio drawing page.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Rotating Earth
« Reply #5 on: February 12, 2013, 05:25:16 AM »
The macro to copy fill patterns from stencil to opened drawing is simple.

Code
Sub DropStencilMaster()
    Dim I As Long
    Dim mst As Visio.Master
   
    For Each mst In ActiveDocument.Masters
        If mst.Name = "earth1" Then
            Exit Sub
        End If
    Next
   
    For I = 1 To 12
        ActiveDocument.Masters.Drop ThisDocument.Masters("earth" & I), 0, 0
    Next
End Sub


In this macro ActiveDocument is the drawing and ThisDocument is the stencil.
This macro is written in the stencil.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Rotating Earth
« Reply #6 on: February 12, 2013, 06:23:06 AM »
Attatched image is rotation Earth on Visio 2010.
Custom fill patterns in the stencil copied to the drawing by the macro above.
Best Regards,

Junichi Yoda
http://june.minibird.jp/

JuneTheSecond

  • Hero Member
  • *****
  • Posts: 1027
    • Visio Shapes, Stencils and Sample Drawings
Re: Rotating Earth
« Reply #7 on: February 13, 2013, 02:26:11 AM »
Here is the animation GIF that has rotating Earth at the center of orbiting Visio Guy.
Please click the image, and animation starts.
Best Regards,

Junichi Yoda
http://june.minibird.jp/