Ilogic to supress individual welds?

Ilogic to supress individual welds?

patrick3HNXX
Enthusiast Enthusiast
192 Views
2 Replies
Message 1 of 3

Ilogic to supress individual welds?

patrick3HNXX
Enthusiast
Enthusiast

I have a weldment that has different configurations and would like to be able to suppress or at least turn off visibility for individual weld features, not the whole tree. Is this possible?

 

 

0 Likes
193 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @patrick3HNXX.  That is a new one.  I see that we can suppress individual welds manually, but the individual weld API objects (code representation) do not have a Suppress method or a Suppressed property.  Therefore I can only guess that we would need to use the WeldmentComponentDefinition.SuppressFeatures method to suppress them.  I have never tried it before though.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

WCrihfield
Mentor
Mentor

That SuppressFeature method wants us to supply an ObjectCollection into it, which specified which features to suppress.  However, I have tried adding a Weld object, and a WeldBead object into that collection, and instead of suppressing those objects, it throws an error.  I also tried supplying WeldsComponentDefinition.Occurrences.Item(1) (a ComponentOccurrence type object), but there were none, even though I have some welds in the weldment type assembly at the time, so that route is not working either.  I know that the command that gets executed when we choose the SuppressFeature option is "AssemblySuppressFeatureCtxCmd", so my next thought would be to add either a Weld object, or a WeldBead object to the Document.SelectSet, using its Select method, then execute that command.  That is not an ideal way to do it, but is the only way I can think of right now.  Maybe someone else has tried to do this before.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes