.NET

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

[.NET] Align Object with Plane

151 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: 311
Registered: ‎04-30-2009
Message 2 of 3 (111 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: 33
Registered: ‎09-23-2011
Message 3 of 3 (87 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community