Get and change active Survey Point

Get and change active Survey Point

l.virone
Enthusiast Enthusiast
313 Views
2 Replies
Message 1 of 3

Get and change active Survey Point

l.virone
Enthusiast
Enthusiast

Hello everyone,

 

Is this a way to get the list of survey point and select another to make it "active" ?

It's the process we have in Revit in the "manage" tabs.

lvirone_0-1663232992072.png

 

Tks !

 

0 Likes
Accepted solutions (1)
314 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @l.virone ,

 

Are you looking for this?

ProjectLocation required_project_location = null;

ProjectLocationSet projectLocationSet=doc.ProjectLocations;
foreach(ProjectLocation projLocation in projectLocationSet)
   {
     if(projLocation.Name== "Your Site Name")
       {
         required_project_location = location;
         break;
        }
    }              
               
doc.ActiveProjectLocation = required_project_location;

Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

l.virone
Enthusiast
Enthusiast

Exactly ! Thank you very much !