SpaceClaim Scripting with Facets

NickFL
NickFL Member Posts: 8
First Anniversary Name Dropper First Comment
**

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?

Tagged:

Best Answer

  • Gabriel Messager
    Gabriel Messager Member, Employee Posts: 63
    5 Answers Second Anniversary 10 Comments 5 Likes
    ✭✭✭✭
    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?

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 325
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    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.

  • NickFL
    NickFL Member Posts: 8
    First Anniversary Name Dropper First Comment
    **

    Thank you for your time gentlemen. In trying to recreate the problem on a smaller model I came across the options.Cap = True under the FaceSplit. 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.