How to set connector routing via Aspose methods to avoid overlap

Hi,

When Aspose generated vsdx has overlapping connectors, then from Visio if we opt-
Design -> Page Setup -> Layout And Routing
Set Routing: Separate equal to 'All lines’
then the connector overlap is fixed.

We tried to replicate the above via Aspose methods, so we used-

diagram.getPages().getPage(0).getPageSheet().getPageLayout().getLineAdjustFrom().setValue(LineAdjustFromValue.ALL_LINES);

This sets the above value of Routing: Separate to ‘All lines’ but has no effect on the generated vsdx - the connectors are still overlapping.

How can the same be achieved using Aspose methods?
or how can we set layout/routing in such a way as to avoid connector overlaps?

PFA test case.
ConnectorRoutingToAvoidOverlap.zip (153.1 KB)

Thanks,
Astha

@asthac,
We can see in the output VSDX that the Separate property is equal to “All lines”, but the connecting lines are not being separated. After selecting/applying any other option from the Separate property drop box, and then re-selecting/applying ‘All lines’, all connecting lines are being separated. It has been logged under the ticket ID DIAGRAMJAVA-50530 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Best Regards,
Imran Rafique

Hi @imran.rafique

I have prioritized our pendings issues-

Critical Issues - These are blockers for us:

  • (Released in 17.7 but reopened again) DIAGRAMJAVA-50511: Misplaced connector text
  • DIAGRAMJAVA-50530: When ‘Separate’ property is equal to ‘All lines’, the connecting lines are not being separated.

High Priority:

  • DIAGRAMJAVA-50533: Connectors are not connecting properly to On-page reference shape
  • DIAGRAMJAVA-50524: Issue of text wrapping in case of dynamic shapes
  • DIAGRAMJAVA-50525: Problem of the missing width formula of the shapes
  • DIAGRAMJAVA-50529: Maintain Text Transform section formulae.
  • DIAGRAMJAVA-50507: Values for ‘Text transform’ section (text overflow)

Medium Priority:

  • (Released in 17.6 but reopened again) DIAGRAMJAVA-50500: Aspose generated vsdx file does not allow resizing of new manually added shape via Visio
  • DIAGRAMJAVA-50520: Overlapping connectors.
  • DIAGRAMJAVA-50516: problem when connecting from bottom to right (Identified in testing DIAGRAMJAVA-50512) (Connector Crossing Shapes)
  • DIAGRAMJAVA-50497: Output VSDX - incorrect layout of all connecting lines
  • DIAGRAMJAVA-50527: Connector is not touching the shape’s boundary while connecting
  • DIAGRAMJAVA-50517: Problem of larger decision shape when large text (Identified in testing DIAGRAMJAVA-50515)
  • DIAGRAMJAVA-50514: Output VSDX - vertical border lines of the predefined process box are thick (Fixed shape) (Not visible in 17.7)
  • (Released in 17.7 but reopened again) DIAGRAMJAVA-50508: Output VSDX - the text overflow when adding multi-line text.
  • DIAGRAMJAVA-50521: incorrect layout of the connector line -Not creating a loop
  • DIAGRAMJAVA-50526: Problem of not getting a colored connector on any page except the 1st page. (Getting color when setting value instead of formula)
  • DIAGRAMJAVA-50522: Text is out of shape when exported as PNG

Looking forward to the fixes.

Thanks,
Astha

@asthac,
Thank you for prioritization of issues. We have prioritized tickets in our issue tracking system.

Best Regards,
Imran Rafique

@imran.rafique

We have tested the issues mentioned in Aspose.Diagram 17.8.0 Release Notes using 17.8 API. We have reported problems on your forum. On the basis of that some new issues created and some reopened.
We have again prioritized list of our pending issues after 17.8 testing-

Critical Issues:

  • DIAGRAMJAVA-50540: Connectors are not connecting properly to On-page reference shape
  • DIAGRAMJAVA-50530: When ‘Separate’ property is equal to ‘All lines’, the connecting lines are not being separated.
  • DIAGRAMJAVA-50543 : All Dynamic connector issues.

High Priority:

  • DIAGRAMJAVA-50542 : Connector crossing shapes.
  • DIAGRAMJAVA-50524: Issue of text wrapping in case of dynamic shapes
  • DIAGRAMJAVA-50544 : Width formula of Decision shape is not maintained.
  • DIAGRAMJAVA-50527: Connector is not touching the shape’s boundary while connecting (Fixed and expected in 17.9)

Medium Priority:

  • (Released in 17.7 but reopened again)* DIAGRAMJAVA-50508: Output VSDX - the text overflow when adding multi-line text.
  • DIAGRAMJAVA-50521: Incorrect layout of the connector line (Not creating a loop) (Reopened)
  • DIAGRAMJAVA-50541: Misplaced text of the dynamic connector
  • DIAGRAMJAVA-50526: Problem of not getting a colored connector on any page except the 1st page. (Getting color when setting value instead of formula)
  • DIAGRAMJAVA-50522: Text is out of shape when exported as PNG (Reopened)

Non-Issues:

  • DIAGRAMJAVA-50514: Output VSDX - vertical border lines of the predefined process box are thick (Fixed shape) (Not visible in 17.7and 17.8)
  • DIAGRAMJAVA-50485: Add support of auto spacing shapes in Visio

Looking forward for fixes.

Thanks,
Astha

@asthac,
We have prioritized issues as per the recent list. We will keep you informed regarding any available updates.

@asthac,
In reference to the ticket ID DIAGRAMJAVA-50521, please download and try the latest Hotfix version: Aspose.Diagram for Java 17.8.1.

@imran.rafique

We have tested issues with 17.9 and we have updated our prioritized list of issues.

Critical Issues:

DIAGRAMJAVA-50550: Shape Transfrom formula of Dynamic Connector are not maintained.
DIAGRAMJAVA-50530: When ‘Separate’ property is equal to ‘All lines’, the connecting lines are not being separated.
DIAGRAMJAVA-50549: Dynamic Connector Issues

High Priority:

DIAGRAMJAVA-50548: Connector crossing shapes
DIAGRAMJAVA-50524: Issue of text wrapping in case of dynamic shapes.
DIAGRAMJAVA-50544: Width formula of Decision shape is not maintained.

Low Priority:

DIAGRAMJAVA-50508: Output VSDX - the text overflow when adding multi-line text.
DIAGRAMJAVA-50541: Misplaced text of the dynamic connector.
DIAGRAMJAVA-50526: Problem of not getting a colored connector on any page except the 1st page. (Getting color when setting value instead of formula)

Looking forward for fixes.

Thanks,
Astha

@asthac,
Thank you for prioritizing tickets. The linked ticket IDs DIAGRAMJAVA-50550 and DIAGRAMJAVA-50548 have been fixed and will be included in the next version 17.10 of Aspose.Diagram for Java API. We will let you know once the new version is published.

In reference to the ticket ID DIAGRAMJAVA-50524, the text is being wrapped due to this line of code: .append("<Line:285.00 to 286.00>,\n") (it has an enter key). If there is any other issue, then kindly highlight with the help of a snapshot.

Hi @imran.rafique,

We are using Aspose.Diagram Java 17.7.0 for our product. We have performed whole testing of our product on this version. During testing we realized that we are getting overlapping shapes when there is large text in process shape. In the investigation we found that it is due to missing shape transform width formula.

We have raised issue (DIAGRAMJAVA-50525: Problem of the missing width formula of the shapes) for this after 17.7.0 testing and is fixed in latest versions of Aspose.Diagram for Java. But we dont want to upgrade our product on latest versions for now as we have other issues in latest versions.

We tried to resolve problem by calling API method to set formula.

shape.getXForm().getWidth().getUfe().setF(“FORMULA”);

But even after calling this method formula is not maintained.

Is there any solution to fix this problem in 17.7.0. If there is no option other than switching it to latest version then Can you provide a bug fix version of 17.7.0 with just fix of DIAGRAMJAVA-50525.

We are looking forward for positive response.

Thanks,
Astha

@asthac,
We are afraid that there is no other way to set the formula of the Width and we do not provide separate fixes in the old code bases. In order to resolve this issue, you need to upgrade the version. You may not upgrade API to the latest version due to the other unresolved issues, but you can upgrade to the next version 17.8.

The issues you have found earlier (filed as DIAGRAMJAVA-50526) have been fixed in Aspose.Diagram for Java 19.1.