.NET

Reply
Active Member
kaarigar
Posts: 6
Registered: ‎11-16-2010
Message 1 of 6 (774 Views)

Transformation matrix

774 Views, 5 Replies
11-16-2010 09:00 PM

I am moving certain code which was packaged in the AutoCAD .NET application to a web service. The reason for doing this is to abstract out this functionality so that it can be used by other non-AutoCAD clients. I have worked out the interface to this web serive. However, this code made extensive use of UCS/WCS transformation of the geometries when it was part of the .NET application inside AutoCAD. Now the task for me is to recreate this geometry transformation functionality outside of the AutoCAD and its .NET API.

 

Has anyone faced similar situation? I will be mostly required to transform points from one UCS to another UCS. The caller of the service can pass the required information to define the UCS - such as origin, point on X axis and point on XY plane. However, how should this information be used to actually implement the necesarry transformation matrices? Has anyone already done this? Any help of word of advice is highly appreciated. Thanks!

 

Kaarigar

Valued Mentor
Jeffrey_H
Posts: 372
Registered: ‎01-20-2010
Message 2 of 6 (769 Views)

Re: Transformation matrix

11-16-2010 10:12 PM in reply to: kaarigar

Open the arxdoc.chm and type "coordinate" in the index and look at the topics under it.

You can always place base functionality in a seperate dll "class library"

 

 

 

 

1959i9DC17022763198FD

You can also find your answers @ TheSwamp
Valued Contributor
cean_au
Posts: 100
Registered: ‎07-11-2011
Message 3 of 6 (476 Views)

Re: Transformation matrix

02-17-2012 02:33 PM in reply to: kaarigar

just wondering if i could you this matrix to enlarge a inventor part?

 

thx

Active Contributor
BellwetherBill
Posts: 38
Registered: ‎01-14-2011
Message 4 of 6 (450 Views)

Re: Transformation matrix

02-19-2012 12:47 PM in reply to: kaarigar

I believe you just need to multiply the two matrices then transform the point.

 

I had similar issues when working with different API's so I developed a class that I could use in any API. I have attached the multiply matrix and transform point functions I use. Obviously I cannot guarantee there are no bugs!

 

This was written in VB.net

 

 

 

Active Contributor
BellwetherBill
Posts: 38
Registered: ‎01-14-2011
Message 5 of 6 (439 Views)

Re: Transformation matrix

02-19-2012 01:20 PM in reply to: BellwetherBill

I should have mentioned in my previous post that you may need to invert one of the matrices depending on how they relate to the point and eachother. I also have an invert function if you need it.

Valued Contributor
cean_au
Posts: 100
Registered: ‎07-11-2011
Message 6 of 6 (379 Views)

Re: Transformation matrix

02-28-2012 01:10 AM in reply to: BellwetherBill

thx for your code. I figured out how to scale the coordinate of a point. but it seems Inventor doesn't updated.

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