Hi,
I want to retrieve the parts elements or the parts IDs from partmaker class.
I used a partdivide method and it returned a partmaker element, but I would need the parts it created or the ids of those parts.
Using GetAssocietedParts method
parts = PartUtils.GetAssociatedParts(doc, partmaker.Id, 1, 1)
The all trasaction
TransactionManager.Instance.EnsureInTransaction(doc)
if PartUtils.AreElementsValidForCreateParts(doc, FloorList):
createParts = PartUtils.CreateParts(doc, FloorList)
doc.Regenerate()
parts = PartUtils.GetAssociatedParts(doc, Floor.Id, 0, 0)
partmaker = PartUtils.DivideParts(doc, parts, intersectionElementsIds, curveArray, sketchPlane.Id)
parts = PartUtils.GetAssociatedParts(doc, partmaker.Id, 1, 1)
TransactionManager.Instance.TransactionTaskDone()
OUT =[partDivide,parts]
i got a empty list I don´t know if this is possible.
Using GetAssocietedParts method
How can I create a filter to pass into the the getdependentelements method?
I have to create A IDisposable? sorry I don´t know a lot about .net framework.
Would appreciate some help on this.
Regards,