<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Collect elements from link document in view of host document in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9444890#M35410</link>
    <description>&lt;P&gt;It worked. But i have to CreateTranslation by Z direction to move the VirtualLinkSolid to Level 3 (active associated level of the active plan).&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 14:06:34 GMT</pubDate>
    <dc:creator>kiencent94</dc:creator>
    <dc:date>2020-04-15T14:06:34Z</dc:date>
    <item>
      <title>Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423131#M35394</link>
      <description>&lt;P&gt;Hello, i m trying to collect elements from link document in active view (plan view).&lt;/P&gt;&lt;P&gt;I create a solid from Cropbox ' s Bounding Box of Active View, then i used&amp;nbsp;ElementIntersectsSolidFilter to collect elements which intersect with this solid&lt;/P&gt;&lt;P&gt;My code worked with model without adjust N/S E/W elevation.&lt;/P&gt;&lt;P&gt;But not working with model already adjusted N/S E/W elevation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;public static Solid CreateSolidFromBBox(this Autodesk.Revit.DB.View planView)
        {
            var inputBb = planView.get_BoundingBox(null);
            Autodesk.Revit.DB.Plane planePlanView = planView.SketchPlane.GetPlane();
            Autodesk.Revit.DB.PlanViewRange viewRange = (planView as Autodesk.Revit.DB.ViewPlan).GetViewRange();
            double cutPlaneHeight = viewRange.GetOffset(Autodesk.Revit.DB.PlanViewPlane.CutPlane);
            XYZ pt0 = PlaneUtil.ProjectOnto(planePlanView, new XYZ(inputBb.Min.X, inputBb.Min.Y, inputBb.Min.Z));
            XYZ pt1 = PlaneUtil.ProjectOnto(planePlanView, new XYZ(inputBb.Max.X, inputBb.Min.Y, inputBb.Min.Z));
            XYZ pt2 = PlaneUtil.ProjectOnto(planePlanView, new XYZ(inputBb.Max.X, inputBb.Max.Y, inputBb.Min.Z));
            XYZ pt3 = PlaneUtil.ProjectOnto(planePlanView, new XYZ(inputBb.Min.X, inputBb.Max.Y, inputBb.Min.Z));
            
            Line edge0 = Line.CreateBound(pt0, pt1);
            Line edge1 = Line.CreateBound(pt1, pt2);
            Line edge2 = Line.CreateBound(pt2, pt3);
            Line edge3 = Line.CreateBound(pt3, pt0);

            List&amp;lt;Curve&amp;gt; edges = new List&amp;lt;Curve&amp;gt;();
            edges.Add(edge0);
            edges.Add(edge1);
            edges.Add(edge2);
            edges.Add(edge3);
            CurveLoop baseLoop = CurveLoop.Create(edges);
            List&amp;lt;CurveLoop&amp;gt; loopList = new List&amp;lt;CurveLoop&amp;gt;();
            loopList.Add(baseLoop);
            Solid preTransformBox = GeometryCreationUtilities.CreateExtrusionGeometry(loopList, XYZ.BasisZ, cutPlaneHeight);

            var rliTf = FormData.Instance.SettingView.Setting.RevitLink.GetTransform().Inverse;
            Solid transformBox = SolidUtils.CreateTransformed(preTransformBox,rliTf * inputBb.Transform);

            return transformBox;

        }&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;public virtual IEnumerable&amp;lt;Element&amp;gt; InstanceElementsInViewRvL
        {
            get
            {
                if(RevitLinkDocument != null &amp;amp;&amp;amp; instanceElementsInViewRvL == null)
                {
                    var bbActiveView = ActiveView.get_BoundingBox(null);
                    var solidActivew = ActiveView.CreateSolidFromBBox();
                    var solidIntersecFil = new Autodesk.Revit.DB.ElementIntersectsSolidFilter(solidActivew);
                    instanceElementsInViewRvL = new FilteredElementCollector(RevitLinkDocument)?.WhereElementIsNotElementType()
                        .WherePasses(solidIntersecFil);

                }
                return instanceElementsInViewRvL;
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;I need some help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Kien&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 14:43:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423131#M35394</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-05T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423153#M35395</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what this line does:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;var rliTf = FormData.Instance.SettingView.Setting.RevitLink.GetTransform().Inverse;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FormData.Instance.SettingView.Setting.RevitLink ? unkown object.&lt;/P&gt;&lt;P&gt;I assume it's a reference to the RevitLinkInstance?, try using the GetTotalTransform&amp;nbsp;instead of GetTransform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe that that helps?&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 15:14:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423153#M35395</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-04-05T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423688#M35396</link>
      <description>&lt;P&gt;Simple question, why is your linked model not using the shared coordinate from your host model then?? wouldn't it cause any discrepancy if you arent using shared coordinates??&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 01:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423688#M35396</guid>
      <dc:creator>junkang.lau</dc:creator>
      <dc:date>2020-04-06T01:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423707#M35397</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FormData.Instance.SettingView.Setting.RevitLink = Link Doucument (When i pick a link document, it s will be save at&amp;nbsp;FormData.Instance.SettingView.Setting.RevitLink). Then i get inverse matrix&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 02:37:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423707#M35397</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-06T02:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423723#M35398</link>
      <description>&lt;P&gt;Thank for your reply&lt;/P&gt;&lt;P&gt;My link model has used share coordinate from host model already. U can see the picture below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/750219iDD559B55C863067E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 02:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9423723#M35398</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-06T02:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9426281#M35399</link>
      <description>&lt;P&gt;I need some help please!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 03:23:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9426281#M35399</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-07T03:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9426286#M35400</link>
      <description>&lt;P&gt;Since you already got the bounding box and link document, why not use&amp;nbsp;&lt;A href="https://www.revitapidocs.com/2018.2/1fbe1cff-ed94-4815-564b-05fd9e8f61fe.htm" target="_blank" rel="noopener"&gt;BoundingBoxIntersectsFilter Class&lt;/A&gt;?? That way you wouldnt need to create a new solid which requires you to translate your geometry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: BUT if you really want to stick with your solid creation for whatever the reason is, I think the problem will be instead of using &lt;A href="https://www.revitapidocs.com/2018.2/50aa275d-031e-ce19-9cfd-18a7a341ed19.htm" target="_blank" rel="noopener"&gt;GetTransform() method&lt;/A&gt;, use &lt;A href="https://www.revitapidocs.com/2018.2/8c8aff2b-5ff9-e43a-3b5c-308cd0174f1f.htm" target="_blank" rel="noopener"&gt;GetTotalTransform() method&lt;/A&gt;.&amp;nbsp;The GetTotalTransform() method will return the transform that includes true north, whereas the GetTransform() method doesnt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIP: use the transform of the link instance to transform the solid in the host model then pass through your solid intersect filter collector&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 03:35:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9426286#M35400</guid>
      <dc:creator>junkang.lau</dc:creator>
      <dc:date>2020-04-07T03:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9427338#M35401</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;i ve try the both way as u told, but it was not working too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:43:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9427338#M35401</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-07T13:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9428119#M35402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done some testing, it seems if the view from which the boundingbox is taken has Orientation set to "True North" it's generates another boundingbox. If the view is set to "Project North" it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the view set to "True North" (and if it's not 0), try setting it to "Project North", see if it now selects the correct elements in the link. If this works also that the Project North rotation into account for those views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps. In my apps I use the outline of the view's cropbox and not the boundingbox.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:35:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9428119#M35402</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-04-07T17:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9432383#M35403</link>
      <description>&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;The orientation of active view set to Project North&lt;/P&gt;&lt;P&gt;Please see pictures below: My ActiveView is RedBox, Master Plan is BlackBox, When i use transform of link model to create transformed solid, the results return elements in BlueBox.&lt;/P&gt;&lt;P&gt;I dont understand clearly about transform in revit, but i think with this result and your knowledge about transform, u can help me to collect exactlly elements in RedBox.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="123.png" style="width: 846px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/751928i61336DC50211F8E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="123.png" alt="123.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="321.png" style="width: 742px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/751927iFD2F7BFCEB4B290E/image-size/large?v=v2&amp;amp;px=999" role="button" title="321.png" alt="321.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks a lot,&lt;/P&gt;&lt;P&gt;Kien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 13:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9432383#M35403</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-09T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9432564#M35404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the test I did I just used the boundingbox min and max point directly to create the solid.&lt;/P&gt;&lt;P&gt;For floorplans I never use the sketchplane (i could been set to something else besides the level itself)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So create the pt0, pt2 etc from the boundingbox min/max.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;xyz pt0 = inputBb.min
xyz pt1 = New XYZ(inputBb.max.X, inputBb.min.Y, inputBb.min.Z)
xyz pt2 = New XYZ(inputBb.max.X, inputBb.max.Y, inputBb.min.Z)
xyz pt3 = New XYZ(inputBb.min.X, inputBb.max.Y, inputBb.min.Z)

double solidheight = inputBb.max.Z - inputBb.min.Z&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, I would expect the SolidBox of a moved linked document to display somewhere else.&lt;/P&gt;&lt;P&gt;See if the difference in boxes is thesame as the offset of the link?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use directshape to create a 3D box (keep in mind the Box for the link SHOULD be offset if the link is offset!)&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Put this inside a transaction!
DirectShape ds = DirectShape.CreateElement(doc, new ElementId(BuiltInCategory.OST_GenericModel));
ds.ApplicationId = "Test";
ds.ApplicationDataId = "testBox";
List&amp;lt;GeometryObject&amp;gt; GeoList = new List&amp;lt;GeometryObject&amp;gt;();
GeoList.Add(VirtualLinkSolid); // &amp;lt;-- the solid created for the intersection can be used here
ds.SetShape(GeoList);
ds.SetName("ID_testBox");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;- Michel&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 14:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9432564#M35404</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-04-09T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9434722#M35405</link>
      <description>&lt;P&gt;i ve done the test as u told, the SolidBox 's location is the same as my previous post. Redbox is my active view, and the DirectShape was created at BlueBox. I dont know how to move it to redbox, i have tried to use ActiveView Transform for the SolidBox but it s not working&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="321.png" style="width: 742px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/752408iAD9B0A44BA2DB27F/image-size/large?v=v2&amp;amp;px=999" role="button" title="321.png" alt="321.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 14:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9434722#M35405</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-10T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9434895#M35406</link>
      <description>&lt;P&gt;Could you post the Host and Link file?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 15:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9434895#M35406</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-04-10T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9435834#M35407</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1-Qr4VRUleXVawQVRcVulG7ZZIS-jgZ1z?usp=sharing" target="_blank"&gt;https://drive.google.com/drive/folders/1-Qr4VRUleXVawQVRcVulG7ZZIS-jgZ1z?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your supporting&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 02:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9435834#M35407</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-11T02:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9436070#M35408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked at it, and at first it works correctly, but not in callouts in combination of GetBoundingBox.&lt;/P&gt;&lt;P&gt;When i use the cropboundary as curve (View.GetCropRegionShapeManager &amp;gt; GetCropShape), and correct the Z-coordinat of the shape. (I only used the CutLevelOffset and the Z of the shape=level in this case.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the reduced code for creating the solid for the active view and for the link&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// Creation of intersecting solid box for active view (ONLY FLOORPLAN!)
ViewPlan vp = ((ViewPlan)(doc.ActiveView));
PlanViewRange PVR = vp.GetViewRange();
double CutOffset = PVR.GetOffset(PlanViewPlane.CutPlane);
ViewCropRegionShapeManager CR = vp.GetCropRegionShapeManager;
IList&amp;lt;CurveLoop&amp;gt; Crops = CR.GetCropShape;
Solid VirtualSolid = GeometryCreationUtilities.CreateExtrusionGeometry(new CurveLoop[] {Crops.First}, XYZ.BasisZ, CutOffset);

// Creation of the intersecting solid box for the link (in this case almost in origin)
RevitLinkInstance LinkInst = ((RevitLinkInstance)(doc.GetElement(new ElementId(2699682))));
Solid VirtualLinkSolid = SolidUtils.CreateTransformed(VirtualSolid, LinkInst.GetTotalTransform.Inverse);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below the result for the Callout "F3 - COLUMNS AND WALL CALLOUT PLAN - Callout 05 Copy 1"&lt;/P&gt;&lt;P&gt;For the screengrab i disabled the Crop for the Callout, the boundary is still visible, and only elements in/through crop is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ps. Can't you use dependent views instead of the callouts, and you will also need to filter the elements based on the view's settings (or only structural columns needed?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Callout selection in 3D" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/752656iA083754F92D26B84/image-size/small?v=v2&amp;amp;px=200" role="button" title="Callout_result2.PNG" alt="Callout selection in 3D" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Callout selection in 3D&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Callout selection" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/752655i3AC4D9115661B93A/image-size/small?v=v2&amp;amp;px=200" role="button" title="Callout_result1.PNG" alt="Callout selection" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Callout selection&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 09:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9436070#M35408</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2020-04-11T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9439287#M35409</link>
      <description>&lt;P&gt;Thank you very much, i must finish some works so i have not tested your solution right now, i will test in the next few days.&lt;/P&gt;&lt;P&gt;Thankyou anyway&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 13:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9439287#M35409</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-13T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9444890#M35410</link>
      <description>&lt;P&gt;It worked. But i have to CreateTranslation by Z direction to move the VirtualLinkSolid to Level 3 (active associated level of the active plan).&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:06:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9444890#M35410</guid>
      <dc:creator>kiencent94</dc:creator>
      <dc:date>2020-04-15T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9481109#M35411</link>
      <description>&lt;P&gt;Perhaps you could use the customer exporter API for this?&amp;nbsp; In Revit 2019 and earlier,&amp;nbsp; the CustomExporter API only worked for 3D views.&amp;nbsp; But as of 2020 it supports 2D views as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/07/graphics-pipeline-custom-exporter.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2013/07/graphics-pipeline-custom-exporter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/08/determining-absolutely-all-visible-elements.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2013/08/determining-absolutely-all-visible-elements.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 21:59:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/9481109#M35411</guid>
      <dc:creator>MattKincaid</dc:creator>
      <dc:date>2020-04-29T21:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/13313647#M35412</link>
      <description>&lt;P&gt;What if instead of a plan view, we were to work in a 3D view? How can we collect elements of a link that are visible in the current view?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 01:00:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/13313647#M35412</guid>
      <dc:creator>jeanleocondori97</dc:creator>
      <dc:date>2025-02-12T01:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Collect elements from link document in view of host document</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/13313725#M35413</link>
      <description>&lt;P&gt;That's what this solution does.&lt;BR /&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2013/08/determining-absolutely-all-visible-elements.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://thebuildingcoder.typepad.com/blog/2013/08/determining-absolutely-all-visible-elements.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It works with both 3D views and Plan Views.&amp;nbsp; If you only need elements from a particular link, you could add some logic to the OnLinkBegin method to filter out elements from the other links.&amp;nbsp; Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 02:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collect-elements-from-link-document-in-view-of-host-document/m-p/13313725#M35413</guid>
      <dc:creator>matthew_kincaidTPW6Y</dc:creator>
      <dc:date>2025-02-12T02:25:00Z</dc:date>
    </item>
  </channel>
</rss>

