Welcome to MSDN Blogs Sign in | Join | Help

A Preview of Embedding IronPython into Visio 2007

Screenshot below should make it clear that it's possible to add an embedded IronPython commandline into Visio 2007.

 

image

The script in the window is here:

c = Isotope.Color.RGBColor( 1, 0.7, 0.3 )
print c.ToSystemDrawingColor()
shape = visio.ActivePage.DrawRectangle( 0,0, 2, 2)
AutoVisio.VisioLib.SetFillColor( shape, c.ToSystemDrawingColor() )

The output is the orange square.

This is stage 1 in my side project of providing a NodeBox-like experience to Visio.

I'll post the source once the overall user experience is better. (It turns out a multi-line TextBox is not he best IDE experience.)

Published Saturday, July 07, 2007 11:02 PM by saveenr

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Visio Guy » Blog Archive » Interesting Blog With Cool Visio Topics

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker