Catia macro: how to get the dimension text position
Catia macro: how to get the dimension text position
(OP)
Hello guys,
Is there a method to retrieve the dimension text position data? I failed to find the a way to do it.
I intend to give number 001,002...to all the dimensions automatically. This number text is placed nearby the dimension text.
Thanks in advance.
Regards,
Louis
Is there a method to retrieve the dimension text position data? I failed to find the a way to do it.
I intend to give number 001,002...to all the dimensions automatically. This number text is placed nearby the dimension text.
Thanks in advance.
Regards,
Louis





RE: Catia macro: how to get the dimension text position
RE: Catia macro: how to get the dimension text position
what would be the code to do that exactly?
what i want to do is to give numbering to all the dimensions in the sheet from 1 to n, the number supposed nearby the dimension text. So i need to get the dimension text position.
is there a way to do it?
BR,
Louis
RE: Catia macro: how to get the dimension text position
regards,
LWolf
RE: Catia macro: how to get the dimension text position
With this your text will always stick with dimension value.
RE: Catia macro: how to get the dimension text position
CODE --> vba
Dim oDim As DrawingDimension Set oDim = drawingDimensions1.Item("Dimension.1") Dim oValue As DrawingDimValue Set oValue = oDim.GetValue oValue.SetBaultText 1, "before - ", " - after", "upper", "lower"