TBC Macros and Extensions

 View Only
Expand all | Collapse all

what's the best way to get a list of all point cloud regions, or any other object type from the project/concordance

  • 1.  what's the best way to get a list of all point cloud regions, or any other object type from the project/concordance

    Posted 2 days ago

    Without looping through the whole project or using a hidden XAML element.

    For point cloud regions I'm currently exploiting a hidden

        <Wpf:ComboBoxEntityPicker x:Name="cloudhelper" Visibility="Hidden"/>

    and set its filter to

            self.cloudhelper.FilterByEntityTypes = Array[Type]([clr.GetClrType(ExposedPointCloudRegion), clr.GetClrType(DefaultExposedPointCloudRegion)])

    That way I'll always have an UpToDate serial number list at my disposal

    self.cloudhelper.EntitySerialNumbers


    ------------------------------
    Ronny Schneider
    ------------------------------


  • 2.  RE: what's the best way to get a list of all point cloud regions, or any other object type from the project/concordance

    Posted 14 hours ago

    Try something like?

    IExposedPointCloudRegionContainer container = ExposedPointCloudRegionContainer.GetInstance(lProject);
    var regions = regionContainer.OfType<IExposedPointCloudRegion>();


    ------------------------------
    Bryce Haire
    ------------------------------



  • 3.  RE: what's the best way to get a list of all point cloud regions, or any other object type from the project/concordance

    Posted an hour ago

    Thanks Bryce,

    for most of the other containers the method is called "Provide".

    I'll keep an eye out for it.



    ------------------------------
    Ronny Schneider
    ------------------------------