ExcludeAll

ExcludeAll

Anonymous
Not applicable
344 Views
3 Replies
Message 1 of 4

ExcludeAll

Anonymous
Not applicable
I am trying to exclude all the derived part sketches, geometry, parameters etc from a part with VBA. The code below does not work although it shows no errors. Am I missing something?

Thanks for any help

Public Sub Test()

Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument

Dim oDerivedPart As DerivedPartDefinition
Set oDerivedPart = oPartDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1).Definition

oDerivedPart.ExcludeAll

End Sub
0 Likes
345 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
The API doesn't yet support editing existing derived parts, so the code
below won't work. The line should really have returned an error. You can
call the ExcludeAll method when forward creating a derived part using the
DerivedPartDefinition object.

Sanjay-

wrote in message news:5582770@discussion.autodesk.com...
I am trying to exclude all the derived part sketches, geometry, parameters
etc from a part with VBA. The code below does not work although it shows no
errors. Am I missing something?

Thanks for any help

Public Sub Test()

Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument

Dim oDerivedPart As DerivedPartDefinition
Set oDerivedPart =
oPartDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1).Definition

oDerivedPart.ExcludeAll

End Sub
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thank you, any idea when this will become available
0 Likes
Message 4 of 4

Anonymous
Not applicable
In a future release :-). Though we intend to address this, this is not
currently very high on the priorities. So I'm unable to comment on the time
frame of its availability.

Sanjay-

wrote in message news:5584169@discussion.autodesk.com...
Thank you, any idea when this will become available
0 Likes