Message 1 of 1
GetDependentElements Method in PartMakerClass Element

Not applicable
04-11-2019
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would Like to retive the parts ids from a partmaker element using the GetdependetElements method.
The get dependent elements method recives a filter
The ElementClassFilter Constructor recives a type to do a filter of this type (I Think)
And to create this type I would need to import the type class (from .net?)
And I also have to put the return of the method in a IList
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