End goal don’t want to create a part using polygon drawing tool which can overlap on each other hence on creation I want to check if the bounds intersect with any other existing part.
Currently when I am getting a geo for Polygon Drawing it is always giving geo path in respect to current rectangle selection and not in respect to its placement in diagram. Hence it always has 0,0 starting coordinates. I want to calculate the bounds of the part that will be created how can I do that.
Currently I have modified the polygon drawing tool to throw part created event so that I can get the part created so I can get it’s detail as it doesn’t has an override like dragCreating tool for insert part which gives the bound of the part being created.
And if I get the node using the getNodeForKey at this time the part is not completed and it doesn’t give correct actualBounds.