Author Topic: ACA/MEP Connection Problem  (Read 1307 times)

0 Members and 1 Guest are viewing this topic.

MexicanCustard

  • Swamp Rat
  • Posts: 705
ACA/MEP Connection Problem
« on: May 01, 2013, 11:19:09 AM »
It would seem that in order to use any of the following methods:
Code: [Select]
var a = ConnectionManager.GetAllConnectedObjects(member.ObjectId);
var b = member.GetObjectsAtConnectionComponent(node);
var c = member.GetConnectedObjectsAtLayoutNode(node.NodeId);
var d = member.GetConnectedObjectsAtPoint(node.Point);
var e = member.GetConnectedObjectsClosestToPoint(node.Point);
You must have the document open in the Editor.  It doesn't have to be the active document just has to be in the DocumentManager.  I tried setting HostApplicationServices.WorkingDatabase but still null results.  I couldn't get anything back in the ObjectIdCollection any other way.  Has anyone found a way to find a connected object without loading the Database into the Editor?
Revit 2019, AMEP 2019 64bit Win 10

MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: ACA/MEP Connection Problem
« Reply #1 on: May 02, 2013, 01:09:31 PM »
Bump!

Jeff?  Just looking for a way to find the connected object without opening the drawing in the editor.
Revit 2019, AMEP 2019 64bit Win 10