Feature Suppression

Feature Suppression

Anonymous
Not applicable
247 Views
2 Replies
Message 1 of 3

Feature Suppression

Anonymous
Not applicable
Hi

I am developing a routine, which suppresses, and usuppresses features in
different situations.
Is it possible to set all suppressions/unsuppressions before rebuilding the
model?

For i = 1 To oPartDef.Features.Count
For j = 1 To .NumSuppress
If .Suppress(j).Name = oPartDef.Features(i).Name Then
oPartDef.Features(i).Suppressed = .Suppress(j).isSuppressed
End If
Next
Next
oPartDoc.Rebuild
next
0 Likes
248 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
One way to do this is to move the end of part marker to the beginning of the
part, change the suppression state for the desired features, and then move
the marker back to the end of the part. You can reposition the end of part
marker using the PartComponentDefinition.SetEndOfPartToTopOrBottom method.
--
Brian Ekins
Developer Technical Services, Autodesk
Discussion Q&A: http://www.autodesk.com/discussion


"Michael Christoffersen" wrote in message
news:787791615FA7CA781EEAE9DE57911A8C@in.WebX.maYIadrTaRb...
> Hi
>
> I am developing a routine, which suppresses, and usuppresses features in
> different situations.
> Is it possible to set all suppressions/unsuppressions before rebuilding
the
> model?
>
> For i = 1 To oPartDef.Features.Count
> For j = 1 To .NumSuppress
> If .Suppress(j).Name = oPartDef.Features(i).Name Then
> oPartDef.Features(i).Suppressed =
.Suppress(j).isSuppressed
> End If
> Next
> Next
> oPartDoc.Rebuild
> next
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks.

Michael Christoffersen
0 Likes