none
SmartArtNodes.Item: What is a valid index string value? RRS feed

  • Question

  • The Help for the SmartArtNodes.Item method states:

    "Specifies either an integer representing the index or a string representing the location of the SmartArtNode object."

    http://msdn.microsoft.com/en-us/library/ff864686.aspx

    I've tried everything I can think of, but I'm not able to figure out what "a string representing the location of the SmartArtNode object" might be.

    It doesn't appear to be the GUID of the node (as stored in the Open XML). Every XPath type of thing I could think of doesn't work.

    Addressing these nodes according to their locational integer index seems extremely inefficient. In order to find a specific node it seems to be necessary to loop the entire collection. There must be a better way?


    Cindy Meister, VSTO/Word MVP
    Tuesday, August 30, 2011 4:11 PM
    Moderator

All replies

  • Hi Cindy,

    I also have tried to find the string which can represent the location of the SmartArtNode and also failed. I have helped you consult other engineers about this via email. There might be some delay about the response. Appreciate your patience.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, September 1, 2011 3:07 AM
  • Thank you very much, Bruce :-) You can be certain I'll be waiting for the result!
    Cindy Meister, VSTO/Word MVP
    Thursday, September 1, 2011 1:24 PM
    Moderator
  • Hi Cindy,

    I have sent the email to consult about the problem, but I haven't got the feedback. I will go on consulting about this. Appreciate your patience.

    Best Regards, 


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, September 12, 2011 7:05 AM
  • Hi Bruce

    Hah! I was thinking about this yesterday and wondering if it had gotten lost. Thanks for the update :-)


    Cindy Meister, VSTO/Word MVP
    Monday, September 12, 2011 7:39 AM
    Moderator
  • Hi Cindy,

    I got the response from one expert who believe that the index argument is supposed to be an interger, and it should be the error of the document metioned about the string.

    I just wanted to add a comment to the document but I have found that you have added a comment at the bottom. I think the document team may correct later on.

    Best Regards, 


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    • Edited by Bruce Song Tuesday, September 13, 2011 8:16 AM
    Tuesday, September 13, 2011 8:15 AM
  • Thank you, Bruce :-)

    In that case, this is really too bad. If we could at least access the Name property of the individual shapes that make up the SmartArt graphic that would be something. Or if the nodes had a Tag property. Something...

    Are you able to formulate a suggestion to the responsible Office team about providing a better way to address the individual SmarArtNodes in a SmartArt object? Some kind of XPath navigation would be ideal, given the way this object model is constructed. But anything would be better than having to "walk" things using For Each loops.


    Cindy Meister, VSTO/Word MVP
    Tuesday, September 13, 2011 9:41 AM
    Moderator
  • Hi Cindy,

    I will help you to submit a CFA(customer feedback analysis)  to the product team from our internal channel. They will evaluate it seriously and make desicison whether to add the feature. As the result, they will not response quickly, you may need to wait for a period of time. Appreciate your patience.

    Best Regards,


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, September 14, 2011 4:02 AM
  • Thank you, Bruce :-)
    Cindy Meister, VSTO/Word MVP
    Wednesday, September 14, 2011 5:51 AM
    Moderator
  • Hi Bruce

    IT's been almost a year now... Should I still be waiting patiently :-)?


    Cindy Meister, VSTO/Word MVP

    Tuesday, August 21, 2012 5:09 PM
    Moderator