none
SmartArt Constraints: default value for connDist (connection distance)? RRS feed

  • Question

  • I have some SmartArt embedded into a Excel2007 document where the root layout-node has following two constraints defined;

        <dgm:constr type="connDist" />

        <dgm:constr fact="0.45" for="ch" refType="connDist" type="w" />

    So, the first constraint defines the "connDist" type, which the specs describe as "Specifies the connection distance", and the second constraint adjusts the layout-children's width to be 0.45*connDist. Now the question is what exact value is assigned to connDist at the first constraint and then applied to the width at the second constraint? What is the magic default value "connDist" gets (same question is also valid for lMargin,tMargin,rMargin and bMargin)? It cannot be inherited like top,left,width and height are since there are no parent values defined for them. Also it cannot be zero else the width would be zero too (and with it the circle that should be displayed). So, somehow some magic default value is applied to them but the specs are missing any details what those default values are.

    Looking forward to an useful answer and with lot of thanks in advance, your

    Sebastian Sauer

    p.s. the related Excel2007 document where those both lines are defined is the first attached document at https://bugs.kde.org/show_bug.cgi?id=239622

     

    Monday, September 20, 2010 10:34 AM

Answers

  • Sebastian,   

    When no value is explicitly set for connDist, it will be set by SmartArt to the length between the begin point and the end point. For other constraints, defaults are set as follows:

     

     

    Constraint

    Default value

    connDist

    Distance between connector’s begin and end points

    lMarg

    primFontSz * 0.4

    rMarg

    primFontSz * 0.42

    tMarg

    primFontSz * 0.56

    bMarg

    primFontSz * 0.60

    primFontSz

    36


    Does this answer your question?

    Dominic Salemno
    Escalation Engineer
    Open Specifications

    • Proposed as answer by King Salemno Friday, October 8, 2010 3:55 PM
    • Marked as answer by King Salemno Thursday, October 14, 2010 2:16 AM
    Friday, October 8, 2010 3:46 PM
  • Dominic,

    seems the answer is related to the used layout algorithm. For example for the snake layout algorithm the paddings are defined at http://msdn.microsoft.com/en-us/library/dd439436(v=office.12).aspx . So, that maybe answers my question already. Thanks!

     

    • Marked as answer by King Salemno Wednesday, October 27, 2010 5:59 PM
    Tuesday, October 26, 2010 8:09 PM

All replies

  • Hi Sebastian,

     

    Someone from my team will contact you shortly to follow up on this request.

     

    Thanks and regards,

     


    SEBASTIAN CANEVARI - MSFT Escalation Engineer Protocol Documentation Team
    Monday, September 20, 2010 4:27 PM
  • sebastian,

    i am the engineer who has taken ownership of your issue. i am currently researching this and will update you as things progress.

    dominic salemno
    escalation engineer
    open specifications

    Wednesday, September 22, 2010 5:38 PM
  • sebastian,

    i am still investigating this.

    dominic salemno
    escalation engineer
    open specifications

     

    Monday, October 4, 2010 9:16 PM
  • Sebastian,   

    When no value is explicitly set for connDist, it will be set by SmartArt to the length between the begin point and the end point. For other constraints, defaults are set as follows:

     

     

    Constraint

    Default value

    connDist

    Distance between connector’s begin and end points

    lMarg

    primFontSz * 0.4

    rMarg

    primFontSz * 0.42

    tMarg

    primFontSz * 0.56

    bMarg

    primFontSz * 0.60

    primFontSz

    36


    Does this answer your question?

    Dominic Salemno
    Escalation Engineer
    Open Specifications

    • Proposed as answer by King Salemno Friday, October 8, 2010 3:55 PM
    • Marked as answer by King Salemno Thursday, October 14, 2010 2:16 AM
    Friday, October 8, 2010 3:46 PM
  • Yes, this answers the question and produces much better results now. Lot of thanks! Meanwhile I did run into "begPad" and "endPad" which the specs describe as "Specifies the beginning padding" and "Specifies the end padding". But just like with the margin there are no informations what the default values are / how they are calculated. Should I open a new question for that?
    Monday, October 25, 2010 3:43 PM
  • Sebastian,

    I will investigate this for you.

    Dominic Salemno
    Escalation Engineer
    Open Specifications

    Tuesday, October 26, 2010 2:46 PM
  • Dominic,

    seems the answer is related to the used layout algorithm. For example for the snake layout algorithm the paddings are defined at http://msdn.microsoft.com/en-us/library/dd439436(v=office.12).aspx . So, that maybe answers my question already. Thanks!

     

    • Marked as answer by King Salemno Wednesday, October 27, 2010 5:59 PM
    Tuesday, October 26, 2010 8:09 PM
  • Sebastian,

    Thank you for sharing this information with the community.

    Dominic Salemno
    Escalation Engineer
    Open Specifications

    Wednesday, October 27, 2010 5:59 PM