I'm working on modifying an old dimension routine I have. I start added code prompting the user to input a scale factor, AutoCAD would then create a unique layer for dimensions of that scale factor. The idea is that the user can place dimensions in Model Space through the viewport so I only have to maintain one dimension style.
What I'd really like to do is have AutoCAD figure out the scale factor and subsequently the name of the layer based on which viewport is active, so the user doesn't have to interface with that portion of the program.
That's the piece I need help with. Attached is a snipet of the code.
Thanks!