SpaceClaim Scripting with Facets
Hello everyone,
Background: I am working in SpaceClaim using API V23. I am staying on this version for now until I get the final report for my project finished before moving on to Discovery and R25 sometime in March/April.
I am trying to fill some small holes in my faceted body that were created when I cut it with a plane in my script. I can record the operation and it is executed correctly. If I simply excute this recorded code:
- # Facettierte Körperöffnungen füllen
- options = FacetFixHolesOptions()
- options.FillType = FillType.Cap
- options.FillRelationship = FillRelationship.Separately
- result = FacetFixHoles.FindAndFix(options)
- # EndBlock
The output (error) is given as: Der Wert darf nicht NULL sein. Parametername: source
Sorry it is in German, but basically means the value may not be zero. Does anyone have an ideas?
Best Answer
-
Hello @NickFL,
I can't reproduce your problem, your script is working well in my simple model.
Actually, I can get a similar error when I use FacetFixHoles.FixSpecific(selection, options)
Can you please share a model for me to reproduce the issue?0
Answers
-
Hello! Thanks for your post, Someone from the @AKD-Scripting-Team might be able to help. In the mean time, which function has the parameter
source
? It doesn't seem clear from the context you provided.0 -
Thank you for your time gentlemen. In trying to recreate the problem on a smaller model I came across the
options.Cap = True
under theFaceSplit
. I am not sure why I did not see or try it before, but it seems to work for the couple of cases I tried it on. I will continue to use it to see if it is robust enough for my needs.0