delete suppressed assembly constrains

delete suppressed assembly constrains

ThomasCassan
Enthusiast Enthusiast
402 Views
2 Replies
Message 1 of 3

delete suppressed assembly constrains

ThomasCassan
Enthusiast
Enthusiast

Hi Guys

 

I am searching for an ilogic code - which can delete suppressed constrains.

If someone have this - it would help a lot!!!

 

thx in advance

Cheers

Tom

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

TomaszDąbrowski
Enthusiast
Enthusiast
Accepted solution

If you mean deleting all suppressed constraints in an assembly then this code should do it:

Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oCon As Object
For Each oCon In oDoc.ComponentDefinition.Constraints
	If oCon.Suppressed=True Then oCon.delete
Next

 

0 Likes
Message 3 of 3

ThomasCassan
Enthusiast
Enthusiast

Ey Tom!!

 

you are the greatest!! Thx man!!

 

cheers

Tom

0 Likes