Hello Professor:
I want to set the point or line or face color or visible, so i must find the item . How do i work?
Thanks!
Best wishes!
Hello Professor:
I want to set the point or line or face color or visible, so i must find the item . How do i work?
Thanks!
Best wishes!
Please see my response in an older post using a selection:
You can further expand it to:
if (selection.getFaceEntity() != null) {
let faceIndex = selection.getFaceEntity().getCadFaceIndex();
//add your code...
}
if (selection.getLineEntity() != null) {
let lineId = selection.getLineEntity().getLineId();
//add your code...
}
if (selection.getPointEntity() != null) {
let pointId = selection.getPointEntity().getPointId();
//add your code...
}