Thank you for your interest and reply, but I couldn't get it to work. Yes I can delete all the custom properties and create these again but this irritating lock is still there. I found a workaround: just open a new, empty assembly, bring in a mirrored assembly and select "Dissolve Subassembly". Everything works just fine. Would be interesting to find a solution to unlock CPs, but I guess it will be fixed in the next SP.
PS. It would be more easy to copy your code from txt-field :-)
This worked for me after saving a part out with the copy custom properties box checked. This caused a mess in our EPDM system so I needed to fix the read-only "Linked to Parent" custom property. Thank you for the macro code. For those who also may find this thread useful I have posted the code above in text form so it is easier to copy without having to retype it again like I did. I could not get the line 16 to compile so I commented it out. I figured it is easier to just add the properties the normal way.
Dim swApp As SldWorks.SldWorks
Dim swmodel As SldWorks.ModelDoc2
Dim swCustPropMgr As SldWorks.CustomPropertyManager
Dim bool As Boolean
Set swApp = Application.SldWorks
Set swmodel = swApp.ActiveDoc
Dim vconfs As Variant
Dim i As Integer
vconfs = swmodel.GetConfigurationNames
For i = 0 To UBound(vconfs)
'bool = swmodel.AddCustomInfo("Description",, "")
Sub ClearCustPrps(conf As String)
Dim j As Integer
Dim vPropNames As Variant
Set swCustPropMgr = swmodel.Extension.CustomPropertyManager(conf)
If Not swCustPropMgr Is Nothing Then
swCustPropMgr.GetAll vPropNames, Empty, Empty
If Not IsEmpty(vPropNames) Then
For j = 0 To UBound(vPropNames)
Thanks Tapani, Kevin. We just ran across the same issue. Unfortunately (at least in SW 2016), the macro effectively hides the properties but does not remove the link. After running the macro, I'm unable to set the properties correctly afterwards.
I did find a workaround detailed here:
Another option, more of a workaround type solution; is to just create the same properties in the configuration specific tab to overwrite the properties under the custom tab. If you use multiple configs on drawings or in assemblies/BOM's you will have to copy and paste your entries to those configurations as well...