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.
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)
Start with some of our most frequented solutions to get help installing your software.