Section plane in scan essentials

Is there a way to toggle on and of using ruby the box of points cloud associated to a section plan ?

Hi,
You can use SUPCP::enableClippingBox(entity, true/false) to switch on/off a clipping box.
Note that there is no current official API for Scan Essentials so this might change in the future.
Out of curiosity, why would you need it ?
Sorry I misunderstood. I though you were talking about clipping boxes (zone de coupe) and not the section planes (boîte de coupe). I must admit the french terms are really close :sweat_smile:
Then I guess SUPCP::enableSectionBox(true/false) should be what you’re looking for.
For SUPCP::enableClippingBox(entity, true/false), entity corresponds to the associated clipping box.
Once again, there is no API for Scan Essentials for now so this might change.
I’ll see what I can do for next release.
Best,
YS

Thank you for your answer; what should i write in place of ‘entity’?
I tried this
SUPCP::enableClippingBox(entity, true)
but it gave me an error message

The clipping box I was thinking of is the one that shows a slice of point cloud close to a section plane

this feature is important for me because it shows only the points that are close to the scaffolding line i design; it is explained here:

https://skpmtx.blogspot.com/2021/12/trimble-scan-essentials.html

everytime i open a model related to a points cloud, i have to activate the clipping box through this window

i wish i could do it through coding

Sorry I misunderstood. I thought you were talking about clipping boxes (zone de coupe) and not the section planes (boîte de coupe). I must admit the french terms are really close :sweat_smile:
Then I guess SUPCP::enableSectionBox(true/false) should be what you’re looking for.
For SUPCP::enableClippingBox(entity, true/false), entity corresponds to the associated clipping box.
Once again, there is no API for Scan Essentials for now so this might change.
I’ll see what I can do for next release.
Best,
YS

I tried:
SUPCP::enableSectionBox(true)
, but got an error
#<NoMethodError: undefined method enableSectionBox' for SUPCP:Module> (eval):1:in
SketchUp:in `eval’
=> nil

Thank you anyway for taking the time to answer, hopefully the API shall be extented to scan essentials functions

You’re right, this is not accessible in 2025 version for now.
I agree that SE extensions should be accessible through API but this require some work. Could you list the functionnalities that you’d like to have in the API so that next version is better on this point ?

the feature i use the most is the one related to section plan, that is why i asked the question; but another feature i would find useful is giving a name to clipping boxes


they all have the same name, so i have to try them one by one to decide which one i want to recover

1 Like

Good remark. There is no possibilities for now to rename them but we’ll see if it can be added both directly or through api.
Thanks,
YS

In fact there is a way. If you rename the clipping box (the sketchup entity). It should work. So it’s already accessible, just a bit hidden…

yes, i tried, it works

activate layer ‘point cloud clipping box’

select a clipping box and change the name of the instance in the info panel

thank you for the information