Hi, I am trying to find out what the current DimStyle of the drawing.
I have iterated through all DimStyle but can’t find any way of finding the current Style.
For Each DsrID In DST Dim R As DimStyleTableRecord = CType(DsrID.GetObject(OpenMode.ForRead), DBObject) Debug.Print(R.Name) Next
Solved! Go to Solution.
Solved! by _gile. See the answer in context.
The Database class do have a Dimstyle property to access the ObjectId of the current dimstyle.
try to get the what system variable "DIMSTYLE" returns. this system variable will return the current style. you can go through the below link for details of this system variable.
Thank you Mzakiralam for a quick response.
I am not sure if this will work because I am accessing the drawings without physically opening them. GetSystemVariable requires Applicatio
Dim str As String = Autodesk.AutoCAD.ApplicationServices.Application.G
My only way currently accessing is via Database.
Gilles, I got it, thanks
Dim DimSyleID = Me._WorkingDB.Dimstyle Dim DwgDimSyle As DimStyleTableRecord = CType(DimSyleID.GetObject(OpenMode.ForRead), DBObject)
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!