Style and Standard Editor

Style and Standard Editor

kv5053545
Advocate Advocate
343 Views
3 Replies
Message 1 of 4

Style and Standard Editor

kv5053545
Advocate
Advocate

Hi, I am working I am working with a .dwg file to be able to make the dimensions of the view in fractions, I tried to edit the template but when the view is added to the template the values of the style editor are updated, here my question, is it possible that through iLogic I can modify the values of the dimension to appear the value in fractions directly from the style editor so that these remain always in this way (attached image).

kv5053545_0-1711054275149.png

 

 

0 Likes
344 Views
3 Replies
Replies (3)
Message 2 of 4

Sergio.D.Suárez
Mentor
Mentor

I am not very clear about what you need, but that setting that you show in the image can be done by code as follows in ilogic

 

Dim oDrawDoc As DrawingDocument = ThisDoc.Document
Dim DSAnsi, oDS As DimensionStyle
For Each oDS In oDrawDoc.StylesManager.DimensionStyles
	If oDS.Name = "Default (ANSI)" Then
		DSAnsi = oDS
	End If
Next

DSAnsi.DisplayFormat = 78339
'kDecimalDegreeFormat 78341 Decimal degree format. 
'kDecimalFormat 78340 Decimal format. 
'kDegMinSecDegreeFormat 78342 Deg Min Sec degree format. 
'kFractionalDiagonalStackedFormat 78339 Fractional diagonal stacked format. 
'kFractionalHorizontalStackedFormat 78338 Fractional horizontal stacked format. 
'kFractionalNotStackedFormat 78337 Fractional not stacked format. 

DSAnsi.FractionalTextScale = 0.7
DSAnsi.LinearPrecision = 41740

 


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Message 3 of 4

Michael.Navara
Advisor
Advisor

This can happen, if you use StyleLibrary. When you create new drawing from template, you can see the "Style conflict" warning. Because StyleLibrary settings takes precedence over template settings of styles. 

If you want to modify style which is defined in StyleLibrary, don't forgot to update StyleLibrary also.

Message 4 of 4

kv5053545
Advocate
Advocate

Hi @Sergio.D.Suárez , it's just what I was looking for, thank you very much.

 

 

 

0 Likes