Select Reroute Option of the Connector Shape in PHP

Aspose.Diagram - Select Reroute Option of the Connector Shape

To Select Reroute Option of the Connector Shape using Aspose.Diagram Java for Ruby, simply invoke SelectRerouteOption module. Here you can see example code.

PHP Code

 # Create instance of Diagram

$diagram=new Diagram($dataDir."Drawing.vsd");

\# Access a particular page

$page=$diagram->getPages()->getPage("Flow 1");

\# get a particular connector shape

$shape=$page->getShapes()->getShape(1);

\# set reroute option

$conFixedCodeValue=new ConFixedCodeValue();

$shape->getLayout()->getConFixedCode()->setValue($conFixedCodeValue->NEVER_REROUTE);

\# Save diagram

$saveFileFormat=new SaveFileFormat();

$diagram->save($dataDir."SelectRerouteOption.vdx", $saveFileFormat->VDX);

print "Seleted reroute option of the connector shape.".PHP_EOL;

Download Running Code

Download Select Reroute Option of the Connector Shape (Aspose.Diagram) from any of the below mentioned social coding sites: