AnsweredAssumed Answered

Use of CommaForDecimal Property

Question asked by barbier_g on Apr 17, 2019
Latest reply on Apr 17, 2019 by .-.--.--

Hello all,

 

I try to use the CommaForDecimal Property of the DimensionScheme Object. I get this error join in the file "error_commafordecimal.JPG"

My script is the following one :

 

Option Explicit

 

' Constants

Const FILE_NAME = "ComponentsList.csv"

 

' Add any type libraries to be used.

Scripting.AddTypeLibrary("MGCPCB.ExpeditionPCBApplication")

 

' Global variables

Dim pcbAppObj 'Application Object

Dim pcbDocObj 'Document Object

Dim DimScheme 'Dimension Scheme Object

 

' Get the Application object

Set pcbAppObj = Application

 

' Get the active document

Set pcbDocObj = pcbAppObj.ActiveDocument

 

' License the document

ValidateServer(pcbDocObj)

 

' Set the current unit value so that this script

' will still run correctly if the units are changed

' in the design

pcbDocObj.CurrentUnit = epcbUnitMM

 

' Set the comma as decimal symbol so that this script

' will still give the same data format if the decimal symbol

' is changed in the design

pcbDocObj.DimensionScheme.CommaForDecimal = True

 

Thanks to all of you for your help and support.

 

Geoffrey Barbier

Attachments

Outcomes