Macro, linear display of tolerances

Hello

Is it possible via my macro to select the linear display of tolerances by default?

 

Thank you in advance for your feedback

 

Cdlt


mep_-_selection_o_avec_ajustement__mise_en_ajustement_avec_tolerance_entre_parenthese.swp

Hello

Go to the document properties, then select "Dimensions" and then you should have a "fraction display" section.

Select the one you want.

Kind regards

1 Like

Hello elie.soulard_1,

Thank you for the feedback,

It is set to linear  display in our basemap templates, however these options are  often modified by users and our plans are no longer exported in pdf following our company grid

This frame to be respected is launched via a macro, which is integrated into our EPDM feed

 

Hello

You have to add this line in the code

swDimTol.FitDisplayStyle = swFitTolDisplay_Linear

In this part:

If swDimTol.Type = swTolType_e.swTolFIT Or swDimTol.Type = swTolType_e.swTolFITWITHTOL Then
         swDimTol.Type = swTolType_e.swTolFITWITHTOL
         swDimTol.FitDisplayStyle = swFitTolDisplay_Linear
         swDispDim.ShowTolParenthesis = True
End If

 

1 Like

Thank you cyril.f, it's exactly  what I was looking for

You're welcome, to find the information in the API, the easiest way is to switch its interface to English in order to be able to search for the function.

1 Like