cadprog Posted January 20, 2019 Posted January 20, 2019 Hi, I would like to know the active dimstyle in a drawing by name. Is this possible with .NET? Please help. Thanks Quote
Grrr Posted January 21, 2019 Posted January 21, 2019 Rough testing: using Autodesk.AutoCAD.Runtime; using Autodesk.AutoCAD.DatabaseServices; using Application = Autodesk.AutoCAD.ApplicationServices.Application; public class TestFunctions { [LispFunction("Test")] public static TypedValue Test(ResultBuffer rbArgs) { string dimstyle = Application.GetSystemVariable("DIMSTYLE").ToString(); Application.ShowAlertDialog("Current Dimstyle: " + dimstyle); return new TypedValue((int)LispDataType.Text, dimstyle); } } Quote
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.