It is possible to change pipe unit globally for the entire pipe family. Place a pipe as custom, changed the units. Go to content center family and replace family template.
If you just want to remove the unit on the partlist row then this mmodification of @Andrii_Humeniuk will do it for "mm". Follow the same principal for "in". Use String replace with the help pagehere. It isn't tested so test on a sample.
Keep in mind when you do this the cell value is now static and will receive no update from the model. Great if you have the model complete but it could lead to future errors.
Dim oDDoc As DrawingDocument = TryCast(ThisDoc.Document, DrawingDocument)
If oDDoc Is Nothing Then Exit Sub
If oDDoc.ActiveSheet.PartsLists.Count = 0 Then Exit Sub
Dim oPList As PartsList = oDDoc.ActiveSheet.PartsLists(1)
For Each oRow As PartsListRow In oPList.PartsListRows
Try : oRow.Expanded = True : oRow.Visible = True : Catch : End Try
Dim oRefRow As DrawingBOMRow = oRow.ReferencedRows(1)
Dim oRefDoc As Document = oRefRow.BOMRow.ComponentDefinitions(1).Document
If oRefDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject _
AndAlso oRefDoc.DocumentInterests.HasInterest("{4D39D5F1-0985-4783-AA5A-FC16C288418C}") _
AndAlso Not oRefDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kPhantomBOMStructure Then
If oRow(2).Value.Contains("mm") Then
oRow(2).Value = Replace(oRow(2).Value, "mm","")
End If
End If
Next
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan