How can I get a 3DPart from a feature using EKL crawling up the tree?

Ivelin Peychev

How can I get a 3DPart from a feature using EKL crawling up the tree?

How can I get a 3DPart from a feature using EKL crawling up the tree?

Getting the 3dshape from the feature I do with GetPLMOwner() but how can I get up to the 3d part (VPMReference)?

Edited By:
Ivelin Peychev[AITAC d.o.o.] @ Apr 22, 2022 - 03:35 AM (Europe/Paris)

PRASANNA MUTHURAMALINGAM

RE: How can I get a 3DPart from a feature using EKL crawling up the tree?
(in response to Ivelin Peychev)

Hi ivelin,

There is no direct API to achieve this. Find below EKL code.

Let aPad(Feature)
Set aPad = PartBody\Pad.1

Let a3DShape(`3DShape`)
Set a3DShape = GetPLMOwner(aPad)

Let a3DPart(VPMReference)
Set a3DPart = a3DShape.AggregatingReference

PopupMessage("",a3DPart.Name)

Hope this helps.

Ivelin Peychev

How can I get a 3DPart from a feature using EKL crawling up the tree?
(in response to PRASANNA MUTHURAMALINGAM)

Thanks a lot Prasanna, works like a charm.

Best regards,
Ivelin PEYCHEV

Edited By:
Ivelin Peychev[AITAC d.o.o.] @ Apr 26, 2022 - 02:39 PM (Europe/Paris)