Getting actor transform from blueprint in c++

Hi,
I have imported CAD models from solidworks and I am simulating them in a blank project. it is based on blueprints, but I have created some functions in c++ and I am using them in blueprints.
I need to get my actors’ (CAD models) location/orientation constantly and pass them in to the PLC for real-time process. I can obviously get that in BP. But is there anyway to access these variables from C++ directly?

I appreciate any help,

If your C++ functions need to change the variables, then it’s easiest to declare them in C++ and set them in BP. Then you have access to read/write in both C++ and BP.

If you do not need to edit those variables, then you can pass them into your C++ function calls as a parameter, from BP.