I have been tasked with creating a command for my team to create frame references for ships. I almost had the routine done but then they asked me to have it scale based on the scale of the view port. As it sits right now they have top key in the scale (***) I would much rather them just pick the vport they would like. My issue is I can not seem to get a useable number.
So my question is
How do I get the view port scale?
Acad help showed me this "NoteThe ZOOM XP factor is calculated with the following formula: group_41 / group_45 (or pspace_height / mspace_height)."
but I always get nil returned when I try to grab the val with something like this
(setq VP (ssget(list (cons 0 "viewport"))))
(setq vps (getval 41 VP))