Content Center part to normal ipt

Content Center part to normal ipt

Svein74
Enthusiast Enthusiast
1,940 Views
6 Replies
Message 1 of 7

Content Center part to normal ipt

Svein74
Enthusiast
Enthusiast
Hi Is there anyone having a macro\VBA to convert CC files to normal I have found some codes but they do not seem to work on R 2015/2016 of Inventor, or maybe I am just using it wrong....? Br Svein
0 Likes
Accepted solutions (1)
1,941 Views
6 Replies
Replies (6)
Message 2 of 7

Mark.Lancaster
Consultant
Consultant

@Svein74

 

Not sure what this code does but all you have to do is relocate the content center part to a folder outside of your content center folder structure.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 3 of 7

Svein74
Enthusiast
Enthusiast
Hi Mark Did you forget the code? br Svein
0 Likes
Message 4 of 7

Mark.Lancaster
Consultant
Consultant

Sorry @Svein74

 

I meant not sure what the code you have does...  But you only need to relocate content center components to a folder outside of your CC folder structure.  Once that occurs they become normal parts.

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

0 Likes
Message 5 of 7

Svein74
Enthusiast
Enthusiast
Ahh, but even if you "save as custom" from CC when you right click on th epart you have the choise to change size and replace from CC and when you try to Author the part it is already authored... So it seems like it stil have som link. br Svein
0 Likes
Message 6 of 7

Svein74
Enthusiast
Enthusiast
Solved 🙂 br Svein Sub strip_CC() Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument 'Check to see if it is not a true content center part . otherwise bail out If oDoc.ComponentDefinition.IsContentMember = False Then ' Enable all commands and set the subtype to a standard part. oDoc.DisabledCommandTypes = 0 oDoc.SubType = "{4D29B490-49B2-11D0-93C3-7E0706000000}" ' Optionally clean up other Content Center related properties. On Error Resume Next oDoc.PropertySets.Item("Content Library Component Properties").Delete Dim DTPropSet As PropertySet Set DTPropSet = oDoc.PropertySets.Item("Design Tracking Properties") DTPropSet.Item("Catalog Web Link").Value = "" oDoc.Save End If End Sub
0 Likes
Message 7 of 7

Svein74
Enthusiast
Enthusiast
Accepted solution

Solved 🙂

 

 

Sub strip_CC()
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    'Check to see if it is not a true content center part . otherwise bail out
    If oDoc.ComponentDefinition.IsContentMember = False Then
        ' Enable all commands and set the subtype to a standard part.
        oDoc.DisabledCommandTypes = 0
        oDoc.SubType = "{4D29B490-49B2-11D0-93C3-7E0706000000}"
    
        ' Optionally clean up other Content Center related properties.
        On Error Resume Next
        oDoc.PropertySets.Item("Content Library Component Properties").Delete
        Dim DTPropSet As PropertySet
        Set DTPropSet = oDoc.PropertySets.Item("Design Tracking Properties")
        DTPropSet.Item("Catalog Web Link").Value = ""
        oDoc.Save
    End If
End Sub

0 Likes