Add Support of Dynamic Grids and Connection Points in Ruby

Aspose.Diagram - Add Support of Dynamic Grids and Connection Points

To Add Support of Dynamic Grids and Connection Points using Aspose.Diagram Java for Ruby, simply invoke AddDynamicGridsAndConnectionPoints module. Here you can see example code.

Ruby Code

 data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'

\# Create instance of Diagram

diagram = Rjb::import('com.aspose.diagram.Diagram').new(data_dir + "Drawing.vsd")

\# get window object by index

window = diagram.getWindows().get(0)

\# check dynamic grid option

window.setDynamicGridEnabled(1)

\# check connection points option

window.setShowConnectionPoints(1)

\# Save as VDX

diagram.save(data_dir + "AddDynamicGridsAndConnectionPoints.vsx", Rjb::import('com.aspose.diagram.SaveFileFormat').VSX)

puts "Added Support of Dynamic Grids and Connection Points in the Visio Drawings."

Download Running Code

Download Add Support of Dynamic Grids and Connection Points (Aspose.Diagram) from any of the below mentioned social coding sites: