Author Topic: Parent Xref Node  (Read 1846 times)

0 Members and 1 Guest are viewing this topic.

TJK44

  • Guest
Parent Xref Node
« on: March 27, 2012, 11:15:16 AM »
Is there a way to get the status of an XrefGraphNode's parent? When looking at the attachment I want to get the status of 000133-24-01 - SUR DECK when I create an instance of an xrefgraphnode with one of its children.

There doesn't appear to be any XRefGraphNode property for parent. Here is the code I am using which I think is the correct way to start.

Code: [Select]
Dim DocDbXrGraph As XrefGraph = db.GetHostDwgXrefGraph(False)
Dim XrGraphNode As XrefGraphNode = DocDbXrGraph.GetXrefNode(btr.ObjectId)

Thanks,
Ted

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: Parent Xref Node
« Reply #1 on: March 27, 2012, 12:37:32 PM »
Hi,

a Graph isn't structured as a Tree.



In a graph, ther're 'in' and 'out' nodes. A has 3 'out' nodes, C has 3 'in' nodes but there's only ontry for C in the Graph..

You can find here some methods to get a tree structure form an XrefGraph.

<Edit: repaired broken link>
« Last Edit: March 28, 2012, 12:56:37 AM by gile »
Speaking English as a French Frog

TJK44

  • Guest
Re: Parent Xref Node
« Reply #2 on: March 27, 2012, 01:43:09 PM »
Thanks gile... That makes sense why properties aren't there that I would have expected to see.

StykFacE

  • Guest
Re: Parent Xref Node
« Reply #3 on: March 27, 2012, 02:35:35 PM »
My apologies up front for the hijack. I have never seen XREF's in the Xref Manager be able to sort hierarchical in a way like the screenshot shows. Is this a custom program you've developed or is this an OOTB feature? This would be HIGHLY beneficial in my line of work, especially for a few current jobs that are XREF nightmares.

Thanks in advance!! :)

- Tannar

TJK44

  • Guest
Re: Parent Xref Node
« Reply #4 on: March 27, 2012, 04:09:58 PM »
Click this icon in the xref manager... (see attachment)

StykFacE

  • Guest
Re: Parent Xref Node
« Reply #5 on: March 27, 2012, 04:44:12 PM »
You have got to be kidding me. This has been there all along? Ugh... haha man just when you thought you knew it all. So so simple.... thanks for the tip!!

 :kewl:

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Parent Xref Node
« Reply #6 on: March 27, 2012, 06:20:38 PM »
Tree view is a beautiful thing, especially when you have multiple nested XREFs.  Its pretty nice for finding duplicate references ie. "Why won't this detach!?!".
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}