« Mapping Display Unit Type to Unit Types | Main | Placing Equidistant Points Along a Curve »

November 06, 2013

Comments

Jeremy,

This is brilliant - just what I needed...

For whatever reason, I had to apply a .Inverse eg.

rvtlink.GetTotalTransform.Inverse

I was getting (for example) -4, -4, 0. I needed +4, +4, 0 as I am applying a transformation to an object, rather than just getting a point.

Many thanks,
Kon.

Dear Kon,

Great, thank you, very glad you like it and it helps.

I may have got it wrong above, maybe I need an inverse as well.

After all, I do nothing but print the result for the subjective pleasure of the viewing user, no objective test, so it may be the wrong way round :-)

Cheers, Jeremy.

Hi Jeremy, this post has been really useful to me. I have a couple of questions about it:
I also use version 2012 of the API, how could I achieve the same with that version?
In the sample above file B contains 4 walls and a linked file (A); what if I had another linked file (let's say file C) and wanted to transform the coordinate system from file A to file C, is that possible?

Thanks in advance!

Dear Emanuel,

In principle, it should work in 2012 as well.

Yes, sure, transforming from A to C is possible, with both being linked in to B.

Determine the transformation from A's coordinate system into B, say Ta, and C's transformation into B, say Tc.

Then you just need to calculate the inverse Tc' of Tc, and the concatenation Ta * Tc'.

Cheers, Jeremy.

The thing is that there is no
'RevitLinkInstance' object in the
2012 API, I do see it in the 2014
API though.
I will test the transformation that
way and see how it goes. Thanks again!

Kind regards, Emanuel.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource