Pick Point in 3D : how to pick on linked files ?

Pick Point in 3D : how to pick on linked files ?

igor.barcelosC54YD
Enthusiast Enthusiast
154 Views
2 Replies
Message 1 of 3

Pick Point in 3D : how to pick on linked files ?

igor.barcelosC54YD
Enthusiast
Enthusiast

Hi, 

 

I have used the following solution for pick point in the 3D : 

https://thebuildingcoder.typepad.com/blog/2011/11/pick-a-point-in-3d.html

 

Ok, that's works fine if I have just one model but I can not select faces on linked files. 

Is there any workaround for this ? 

 

The solution provided below is limited because as it only takes on element class and not faces.

https://thebuildingcoder.typepad.com/blog/2020/07/selection-link-support-cancel-custom-export-multit...

 

Any help ? 

 

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

longt61
Advocate
Advocate
Accepted solution

I think the second link has almost everything you need. You can just get the geometry object from the reference and determine if it is a face.

Just modify the selection filter class to make T inherit from Face then add these 2 lines after you get the element from link file

var geo = e.GetGeometryFromReference(r);
return geo != null && geo is Face;

 

0 Likes
Message 3 of 3

igor.barcelosC54YD
Enthusiast
Enthusiast
0 Likes