Hi Everyone!
I have a question about function in smartpart script. My script creates three geometries. I would like to finally create one solid created from these three. There is any posibility to make it? Something like boolean functions, just from the script level. I dont want the lines creating solids (phases) to be displayed in the model. I want one solid to be shown as a whole. Does anyone know how to do it? Is it possible to command to the script?
Thanks for you help
- Forum
- CAD Parametric Modelling
- PythonParts
Combine the solids in SmartPart
Hilfreichste Antwort anzeigen Hilfreichste Antwort verbergen
Did you use GROUP_PLACE to place the group you created?
All the geometry you define within GROUP.. GROUP_END is invisible until you place it.
If that's not the problem feel free to attach the SMT-file and I have a look.
GEA Arquitectos S.L.P.
Calle Gerardo Diego 6A | 41013 Sevilla | Spain
Hello!
In the Smartpart Script language you con use GROUP functions to create boolean objects:
Create your base solids with
GROUP
...code...
GROUP_END
and then use GROUP_UNION or GROUP_DIFF in combination with GROUP_PLACE to create the boolean object.
Regards,
STefan
GEA Arquitectos S.L.P.
Calle Gerardo Diego 6A | 41013 Sevilla | Spain
Thank you Stefan for your help! However, I have a problem using this function. Please look at the attachment. Why is this happening?
Anhänge (1)
Did you use GROUP_PLACE to place the group you created?
All the geometry you define within GROUP.. GROUP_END is invisible until you place it.
If that's not the problem feel free to attach the SMT-file and I have a look.
GEA Arquitectos S.L.P.
Calle Gerardo Diego 6A | 41013 Sevilla | Spain
No, I didnt use this. Actually there was a problem here. Thank you
I have one more question - Is it possible to use the "group_diff", to cut off (and delete) a solid created from another "group_diff"? I tried and unfortunately I didnt achieve the expected effect. Maybe I miss some command in the code.
Anhänge (1)
Hi!
First I think there is a syntax error in your code, line 47.
Try it without the quotation marks for "belka", like this:
kujan = GROUP_DIFF ( belka, "kostki")
Then I understand, that if you only want ONE solid as a result of your boolean operation, you should only use GROUP_PLACE once, at the end of the script and delete lines 31 and 45.
Regards,
Stefan
GEA Arquitectos S.L.P.
Calle Gerardo Diego 6A | 41013 Sevilla | Spain
Hi Stefan,
It works! Thank you very much