sandertb Posted March 7, 2022 Share Posted March 7, 2022 Hi all, currently I'm working on a custom legend tool, and so far it has been working pretty well on Sheet Layers. However, when I insert the legend on a Design Layer, it's scaled way too small. So my question is: Is it possible to retrieve the type of layer on which the legend will be drawn, and it's corresponding scale as well? Quote Link to comment
Pat Stanford Posted March 7, 2022 Share Posted March 7, 2022 vs.getobjectvariableint(HandleToLayer, 154). will give you the layer type. I think 1 is Design Layer and 2 is Sheet Layer, but test and see. vs.GetLScale(HandleToLayer) will give you the scale of the layer. Sheet Layers are always at 1:1 scale. Design Layers can be at any scale. Quote Link to comment
sandertb Posted March 8, 2022 Author Share Posted March 8, 2022 Awesome Pat, that works! Thanks! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.