GetDependentElements Method in PartMakerClass Element

GetDependentElements Method in PartMakerClass Element

Anonymous
Not applicable
1,942 Views
0 Replies
Message 1 of 1

GetDependentElements Method in PartMakerClass Element

Anonymous
Not applicable

I would Like to retive the parts ids from a partmaker element using the GetdependetElements method.

 

Capturar.PNG

 

Capturar 1.PNG

The get dependent elements method recives a filter

1.PNGThe ElementClassFilter Constructor recives a type to do a filter of this type (I Think)

 

2.PNG

And to create this type I would need to import the type class (from .net?)

3.PNG

 

And I also have to put the return of the method in a IList

4.PNG

 

The ref would look something like this ?

 

clr.AddReference('System')
from System.Collections.Generic import List
from System import Type

 

And the code would look something like this ?

 

Part_type=typeof(part)#making the part type
filter=ElementClassFilter(Part_type)#making the filter#making the filter
Part_List=List[ElementId]()#making the part list receiver
PartList.Add(GetDependentelElements(filter)) #getting parts ids 

If anyone could help, I would appreciate

 

 

 

 

0 Likes
1,943 Views
0 Replies
Replies (0)