.NET

Reply
Mentor
Amremad
Posts: 217
Registered: ‎08-24-2010
Message 1 of 3 (214 Views)
Accepted Solution

Moving Block

214 Views, 2 Replies
04-04-2013 01:41 AM

How Can I move one block only from it's point to another point

You can use Entity.TransformBy method with Matrix3d.Displacement(pOldPoint3d.GetVectorTo(pNewPoint3d))

pNewPoint3d and pOldPoint3d are new and old location of your block.

Moderator
Alexander.Rivilis
Posts: 1,458
Registered: ‎04-09-2008
Message 2 of 3 (198 Views)

Re: Moving Block

04-04-2013 02:57 AM in reply to: Amremad

You can use Entity.TransformBy method with Matrix3d.Displacement(pOldPoint3d.GetVectorTo(pNewPoint3d))

pNewPoint3d and pOldPoint3d are new and old location of your block.


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Mentor
Amremad
Posts: 217
Registered: ‎08-24-2010
Message 3 of 3 (192 Views)

Re: Moving Block

04-04-2013 03:27 AM in reply to: Alexander.Rivilis

thank you very much , iam trying it now , i think it will work good

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.