Author Topic: GetBlockReferenceIds not returning MLeader blocks in 2016  (Read 1276 times)

0 Members and 1 Guest are viewing this topic.

MexicanCustard

  • Swamp Rat
  • Posts: 705
GetBlockReferenceIds not returning MLeader blocks in 2016
« on: January 18, 2016, 08:03:28 AM »
Code - C#: [Select]
  1. var positionBox = (BlockTableRecord)tr.GetObject(bt["POSITION_BOX"], OpenMode.ForRead);
  2. var labelIds = positionBox.GetBlockReferenceIds(true, false);

"POSITION_BOX" is a block we use in a MLeader.  Before 2016 GetBlockReferenceIds() would return the ObjectIds of all the BlockReferences inside the MLeaders in the drawing DB.  This doesn't seem to be working in 2016.  Anyone else know of this happening? 
Revit 2019, AMEP 2019 64bit Win 10