.NET

Reply
Active Contributor
AdriDicri
Posts: 34
Registered: ‎09-23-2011
Message 1 of 3 (178 Views)

[.NET] Align Object with Plane

178 Views, 2 Replies
09-18-2013 04:48 AM

Hello !

 

For one of our project, we have a very precise scanner that picks 3 points on a material to generate a plane.

(First point is always (0,0,0))

 

On autocad, I have to align different object with this plane.

 

I'd like to know if there is a method to directly align object with this plane?

(I can easily have the normal to this plane, and other informations, if needed)

 

We already try to calculate angles and make a rotation, but it's not very accurate.

 

Thanks for help !

 

Best regards,

 

Adri DiCri

ADN Support Specialist
augusto.goncalves
Posts: 390
Registered: ‎04-30-2009
Message 2 of 3 (138 Views)

Re: [.NET] Align Object with Plane

09-23-2013 11:52 AM in reply to: AdriDicri

Hi,

 

Not sure if a direct method exists, this is really specific. Anyway, the Matrix3d struct is the base for all those changes, have you looked at Matrix3d.WorldToPlane method? It can be a start point.

 

Regards,



Augusto Goncalves
Autodesk Developer Network
Active Contributor
AdriDicri
Posts: 34
Registered: ‎09-23-2011
Message 3 of 3 (114 Views)

Re: [.NET] Align Object with Plane

09-25-2013 12:36 AM in reply to: augusto.goncalves

Hello. Thanks for your answer !

 

Finally, i've found the command "3DALIGN" that do exactly what I want. It's not "automatic", but our custommer is happy with that.

 

Thanks again.

 

Adri Dicri

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.