solid body names not found by ilogic.

solid body names not found by ilogic.

GeertvanderHeide
Advocate Advocate
244 Views
2 Replies
Message 1 of 3

solid body names not found by ilogic.

GeertvanderHeide
Advocate
Advocate

i have a part with multiple bodies that i can turn on or off with ilogic. 

after turning bodies on or off i want to change de supression/ visibility state of the depending features. 

i got this al in code, but noticed something went wrong when creating a new feature. 

after some logging i found out that ilogic doesn't find all the body names.

All bodies are made excectly the same (extrude feature) and turning them on or off also works fine. 

no idea how this is possible, please help.

GeertvanderHeide_0-1674469362244.pngGeertvanderHeide_1-1674469374347.png

For Each oBody As SurfaceBody In ThisDoc.Document.componentdefinition.surfacebodies
	Logger.Info("    " & oBody.Name)
Next

 

0 Likes
Accepted solutions (1)
245 Views
2 Replies
Replies (2)
Message 2 of 3

vpeuvion
Advocate
Advocate
Accepted solution

Hi, 

Don't the solids that are found have all their features hidden?

Example : 

vpeuvion_0-1674471763444.png

In my case the solid 1.5 is not listed.

Vincent.

0 Likes
Message 3 of 3

GeertvanderHeide
Advocate
Advocate

Thank You! never thought of that posibility. 

Guess i have to rewrite some code to change the order then..

0 Likes