get current UCS in a DBX enabler

Issue
How do I get the current UCS from within an ObjectDBX enabler and don't have access to acedGetCurrentUcs()?

Solution
The global function acdbUcsMatrix() returns a matrix identical to acedGetCurrentUcs(). It can normally be used in place of acedGetCurrentUcs() and is available in ObjectDBX.

There are some posts which have lines of acdbUcsMatrix, e.g.

Set oblique angle of aligned dimensions to a certain angle relative to an axis in the current UC

Ordinate Dimension Text is incorrect in rotated UCS


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading