A new numerical procedure is presented to perform the analysis of three-dimensional linear elastic no-tension structures exploiting the application programming interface of a general purpose finite element analysis software. Masonry is replaced by an equivalent orthotropic material with spatially varying elastic properties and negligible stiffness in the case of cracking strain. A non-incremental algorithm is implemented to define the distribution of the equivalent material, minimizing the strain energy so as to achieve a compression-only state of stress for any given compatible load. Applications are shown for masonry-like solids of general shape visualizing load paths in walls subject to dead loads and out-of-plane live loads, circular do...