[quote user="HDR_Coder"]For the C++ API (V8i) how do you move an entire element, i.e. offset it[/quote]
Paul's response will get you started. But then you bang into the problem of creating your transform.
A long time ago, there used to be an mdlElmdscr_offset function. However, MDL programmers eat iron filings and drink battery acid, so a simple function was too easy, and Bentley Systems removed it from the MDL.
Search the delivered examples for mdlTMatrix_ functions. The circuit example constructs a Transform in circuitcomp.cpp, and there are usages demonstrated in other examples. The basic moves are...
- Create an identity matrix (a no-op transform)
- Optionally rotate the matrix by the inverse of the view rotation
- Optionally set the scale of the matrix
- Set the transform's offset (translation)
- Apply the transform to the element