while in assembly, i would like to select a subpart and be able to clear or delete the value of ex description without opening the part file.
i can delete properties in custom prop but i cant do it in description.
ive use design tracking properties but to no avail..
Solved! Go to Solution.
Solved by ekinsb. Go to Solution.
It sounds like you've already got the code that gets the document containing the iProperties. The function below will clear the description property, given a document.
Public Sub ClearDescription(Doc As Inventor.Document) Dim propSet As PropertySet Set propSet = Doc.PropertySets.Item("Design Tracking Properties") Dim descProp As Property Set descProp = propSet.Item("Description") descProp.value = "" End Sub
Sub ClearDescription() Dim oAsmDoc As AssemblyDocument Set oAsmDoc = ThisApplication.ActiveDocument oAsmDoc.PropertySets.item(3).item(14).Value = "" End Sub
You can see the full details of part or sembly in watch window using VBA.
>>>>>>>>>>ekinsb & adnpati
thanks for answering...really appreciate it..
i didnt try the descProp.value = ""
i keep doing the delete value like im doing in custom prop...
anyway..thanks a lot guys