Hi,
This runs in visio 2003 pro and I suspect it will also run in later versions.
attached files Molecule.vsd, Point .mdb, references.jpg
1/Place the vsd and mdb file in the same folder eg-> D:\Molecular
2/Open the visio file
3/Ensure the references are checked in the macro environment
4/Use the rotate left, rotate right, roll top and roll bottom keys to revolve the 8 coloured spheres.
Each sphere's co-ordinates (X,Y,Z) are located in underlying database table.
The concept is to automate the placement of the the co-ordinates onto the page and allow each sphere to move according to trig functions injected into the shapesheets.
When the rotation is halted, the macros determine which ball is in front of another based on their X,Y,Z co-ordinate and the perspective of the eye.
you may rotate the image using the toolbar buttons supplied or hold cntrl and left mouse button and then move the mouse left ,right, up, down.
use Reset button on toolbar to clear the spheres . Use then Draw button to reinstate the spheres
Hope it works for you !
cheers ;)
Cliff
attached is the jpeg to show the references used in the application
Wow, pretty cool. Worked fine on a Win 7, Visio 2007 machine.
My Win 7, Visio 2010/2013 didn't have Microsoft DAO 3.6 Object Library installed. I think the ADO stuff is newer, but I can never keep these things straight. (That's why I keep asking Al the same questions over and over :) )
attached wmv file showing how it works on my screen.
each coloured sphere, when selected, has X,Y Z custom property attributes which may be adjusted via the (shift & left mouse) or (shift & right mouse) or (ctrl & right mouse) and then move the mouse.
alternately you may adjust the database co-ordinates in the points table.
-> "Reset" and then -> "Draw" again.
The underlying database concept allows for the possibility of deciding front to back movement of screen shapes in the visio front end, via a sequel query on the database back end.
Alles ist Gut !
cheers
cliff
Love it!
Cliff, make 'em look like real balls:
Off-center Radial Fill Effect (http://www.visguy.com/2007/08/30/off-center-radial-fill-effect/)
Hi ,
I used this data driven concept to create a Visio Guy icon in 3D.
To date, the concept is using a database "backend" to refresh the Z order of the Visio shape"frontend".
This is a different to the approach of using the visio environment (shapesheets) and code to determine the Z order of shape on the page.
simple shapes are being used in this example.
to demonstrate on your machine.(macros must be enabled)
1/install the attached vsd and mdb files within the same folder on your machine
2/open the vsd file
3/click "Reset" on toolbar
4/click "Draw" on toolbar
5/use the rotation keys (up/down/left/right) on the custom toolbar suplied
hope it works for you
cheers
Ciff
BTW attached video of output and VBA references for this application
cheers
cliff
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 59 (
showintegrate_autoload, cache_get_data, integrate_pre_load, integrate_load_session, integrate_verify_user, cache_get_data, integrate_user_info, integrate_load_board, cache_get_data, integrate_board_info, cache_get_data, integrate_allowed_to_general, integrate_pre_load_theme, cache_get_data, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, cache_get_data, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 25 - 925KB. (
show/home/iw0lkfe3x6cq/public_html/vgforum/index.php, /home/iw0lkfe3x6cq/public_html/vgforum/Settings.php, /home/iw0lkfe3x6cq/public_html/vgforum/cache/db_last_error.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/QueryString.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Auth.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Errors.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Load.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Security.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Compat.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Db-mysql.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApi.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApiInterface.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/APIs/FileBased.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Charset.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/Metadata.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/QuickCheck.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Session.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Logging.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Class-BrowserDetect.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Printpage.php, (Current Theme)/Printpage.template.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/CaseUpper.php)
Memory used: 772KB.
Tokens:
post-login.
Cache hits: 7: 0.00137s for 22,302 bytes (
showget modSettings: 0.00060s - 19983 bytes, get known_languages: 0.00022s - 1277 bytes, get board_parents-0: 0.00015s - 2 bytes, get permissions:-1: 0.00011s - 50 bytes, get theme_settings-1: 0.00014s - 980 bytes, get log_online-update: 0.00012s - 10 bytes, get menu_buttons--1-english: 0.00003s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 9.
[Show Queries]