I'm writing some code to add labels to dimension marked forinspection, then using the existing labels to skip that dimensionif the macro has already labeled the dimension on a previous run.The problem is when a user has added a carriage return ("CR") tomake the label and dimension fit between the extension lines, Icannot find the dimension prefix text that is not on the same lineas the "DIM" entry in the "Dimension Text" dialog in the propertieswindow of the affected dimension. Any ideas on finding thepreceding lines of the prefix text?
My existing prefix text code looks like:
Dim MyAnn As SldWorks.DisplayDimension
.
.
.
Set MyAnn = MyView.GetFirstDisplayDimension5
MyPrefix = MyAnn.GetText(swDimensionTextPrefix)
Works every time if the annotation has no "CR" to create multiplelines for the dimension.
SolidworksApi macros
My existing prefix text code looks like:
Dim MyAnn As SldWorks.DisplayDimension
.
.
.
Set MyAnn = MyView.GetFirstDisplayDimension5
MyPrefix = MyAnn.GetText(swDimensionTextPrefix)
Works every time if the annotation has no "CR" to create multiplelines for the dimension.
SolidworksApi macros