Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Confirm Revit 2015 API Equivalents of Transform Static Methods

1 REPLY 1
SOLVED
Reply
Message 1 of 2
sam.z
486 Views, 1 Reply

Confirm Revit 2015 API Equivalents of Transform Static Methods

Hello

 

I am recompiling my existing addin to work in Revit 2015. My addin uses the methods

 

Transform.get_Translation()
Transform.get_Rotation()

 

These static methods are now deprecated in Revit 2015 API. So I need to use the Revit 2015 API versions of these methods.

 

Are the Revit 2015 API equivalents of the above methods the following?

 

Transform.CreateTranslation()
Transform.CreateRotation()

 

1 REPLY 1
Message 2 of 2
ollikat
in reply to: sam.z

Hi

Although I'm not experienced using those, I checked the 2014 API documentation. From there you can find the same description that is also used by compiler to give a warning if obsoleted methods are being used.

According to those instructions, CreateTranslation() seems to correspond with the get_Translation(). But in case of getRotation() the documentation instructs to use CreateRotationAtPoint() instead.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community