Page 1 of 1

Inserting cad blocks from one file on another

Posted: 25 Oct 2019, 15:30
by VijayKumar
Hello Team,

I am in a situation in which I have 2 CAD images(Image1.dwg and Image2.dwg). I have opened image1.dwg and reading the contents or entities of image2.dwg.

I am storing the read entities inside a Block and placing it inside Vinsert at some coordinates (x = 111 and y = 116) as shown in the attached image(
ScreenShot.png
ScreenShot.png (12.51 KiB) Viewed 3624 times
.


We are expecting that the image will be at our current mouse coordinates (x = 111 and y = 116) , But the block is inserting at some offset position(p,q).

Why is this happening?
can you give me guide and advice in detail.

Re: Inserting cad blocks from one file on another

Posted: 25 Oct 2019, 16:16
by support
Hello,

It may depend on a base point of the block coordinate system (CADBlock.Offset) and the way you specify the block insertion point. Could you please attach a DWG file containing the block and post a code which recreates the problem?

Mikhail

Re: Inserting cad blocks from one file on another

Posted: 31 Oct 2019, 15:34
by VijayKumar
Hello Mikhail,

Thanks for the support.
After adding CADBlock.Offset to the CADBlock the image is appearing in appropriate position.

Vijay