Inserting cad blocks from one file on another

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
VijayKumar
Posts: 11
Joined: 17 Oct 2019, 09:33

Inserting cad blocks from one file on another

Post by VijayKumar » 25 Oct 2019, 15:30

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 3620 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.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Inserting cad blocks from one file on another

Post by support » 25 Oct 2019, 16:16

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

VijayKumar
Posts: 11
Joined: 17 Oct 2019, 09:33

Re: Inserting cad blocks from one file on another

Post by VijayKumar » 31 Oct 2019, 15:34

Hello Mikhail,

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

Vijay

Post Reply