Asposecad unable to read Block name of an insertobject part of another block

I am trying to get the block name of an insert object by:

insObject.getOriginalBlockName();

This method returns the blcok name when the insobject is independent entity.
Whereas, if the insobject is part of a BLOCK element and when I try to fetch the block name for the insobject, it is returning null.
image.png (28.0 KB)

In the attached image, insert object of id “3904” having a block name “UNA”, but the method getOriginalBlockName returning null.

@brahmajipusuluri,
Hi,
please, attach this sample file, we will check this case.

DEMO.zip (358.1 KB)

@oleksii.gorokhovatskyi Please find the attached file.

@brahmajipusuluri,
thanks for the file, we will check if it is mistake or not, could you please check if insObject.getName() is suitable for you instead of getOriginalBlockName().

insObject.getName() working for me.

1 Like

@brahmajipusuluri,
we are happy to help :slight_smile: