Convert CC Part To Normal

Convert CC Part To Normal

edonline69
Enthusiast Enthusiast
2,643 Views
22 Replies
Message 1 of 23

Convert CC Part To Normal

edonline69
Enthusiast
Enthusiast

Hi,

 

Would/Could someone out there take the attached CC part and convert it to a normal part please. I've tried all the marco's/ilogics I could find but can't make it work.

Please covert to INV 2016 (no greater)

Thanks in advance!!

 

Ed

 

0 Likes
Accepted solutions (2)
2,644 Views
22 Replies
Replies (22)
Message 2 of 23

mdavis22569
Mentor
Mentor

Did you try this 

 

https://forums.autodesk.com/t5/inventor-forum/content-center-part-to-normal-ipt/td-p/6381907

 

 

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


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

0 Likes
Message 3 of 23

edonline69
Enthusiast
Enthusiast

Yes I did.

0 Likes
Message 4 of 23

mcgyvr
Consultant
Consultant

Its a split lock washer.. You can model it from scratch in under 30 seconds..

It took longer to even ask your question here..

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 5 of 23

Curtis_Waguespack
Consultant
Consultant

@mdavis22569 wrote:

 

 

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


Hi edonline69,

 

I don't have 2016 on this machine, so...

 

  • Is the file read only, or in a read only location when you're trying this?
  • If you remove the "on error" line in the above code does a resulting error tell you something?
  •  Can you use this iLogic?: 

 

Try
	ThisApplication.ActiveDocument.PropertySets.Item("Content Library Component Properties").Delete
	MessageBox.Show("KA-POW!" & vbLf & "Content Center Properties smashed!", "iLogic")
Catch
	MessageBox.Show("huh?" & vbLf & _
	"Something didn't work..." &vbLf & _
	"...file is read only maybe?" &vbLf & _
	"...file has no Content Center Properties, maybe?" &vbLf & _
	"...other?", "iLogic")
End Try

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

EESignature

0 Likes
Message 6 of 23

edonline69
Enthusiast
Enthusiast

Agreed, but this is a library part constrained in hundred of sub-assemblies where I don't want re-constrain all over again.

I'm just trying to have the ability to change the stainless steel material to 18.8 ST ST that appears in my part lists. Yes I can manually do it but If I can automate it the better.

0 Likes
Message 7 of 23

Curtis_Waguespack
Consultant
Consultant

@edonline69 wrote:

Agreed, but this is a library part ...


Hi edonline69 ,

 

you'll need to move the file out of the library path, then run the code and save the file, then move the file back.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 8 of 23

edonline69
Enthusiast
Enthusiast

I can remove the read only feature no problem.

Even moved the file out of the project folder/content center folder.

I CAN'T EVEN add an illogic rule.

0 Likes
Message 9 of 23

mcgyvr
Consultant
Consultant

yeah it won't even let me add ilogic or vba to it..

get this when attempting to create an ilogic rule..

 

Add iLogic Rule

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

 

System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.PropertySets.Add(String Name, Object InternalName)
at iLogic.RuleStorage.iPropertyForVault.FindOrCreateOurPropertySet()
at iLogic.RuleStorage.iPropertyForVault.MarkInUse()
at iLogic.InventorEvents.InventorEventsConnector.BeforeAddingRuleObject(Document doc)
at iLogic.RuleStorage.DocumentRuleListUtil.AddRule(Document doc, String ruleName, String ruleText, RuleOptions flagsEtc, Boolean isInteractive, RuleEvalErrorList ruleEvalErrors)
at iLogic.Commands.AddRuleCommand.AddRule(Document doc, String ruleName, String ruleText)



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 10 of 23

edonline69
Enthusiast
Enthusiast

Yah me too.

Thanks for your help.

I know I'm taking a shot in the dark to see if there is some one out there that can solve this mystery.

0 Likes
Message 11 of 23

Curtis_Waguespack
Consultant
Consultant

@edonline69 wrote:

 

I CAN'T EVEN add an illogic rule.


Hi edonline69,

 

Once the file is re-located to a read/write location, try going to the Manage tab > iLogic panel > Add Rule button.

 

Edit: I was slow on the reply, I now see mcgyvr's reply and yours as well. So I'm not sure if the Add Rule button works for you? Maybe not?

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 12 of 23

mcgyvr
Consultant
Consultant

@Curtis_Waguespack wrote:

@edonline69 wrote:

 

I CAN'T EVEN add an illogic rule.


Hi edonline69,

 

Once the file is re-located to a read/write location, try going to the Manage tab > iLogic panel > Add Rule button.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com


 

90% of the ribbon is grayed out for me.. Including that.. 

Maybe all the other attempts have corrupted or "super locked" this one.. 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 13 of 23

Curtis_Waguespack
Consultant
Consultant

Hi mcgyvr,

I'm looking at 2015. Maybe they've done something in 2016 and on that is protecting CC parts?

 

Maybe we should back up and ask what the end goal is here? Why are we trying to convert this to a regular part? Maybe there's another approach? Maybe not.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 14 of 23

edonline69
Enthusiast
Enthusiast

Hi Curtis,

This end goal is to be able to change the assign material (Steel, Mild) to a different one that is actually use (18.8 ST ST) and to show up in my BOM parts list column.

0 Likes
Message 15 of 23

Mark.Lancaster
Consultant
Consultant

@edonline69

 

If you just save the content center part to a folder location outside of the location which is defined for CC then you can change anything that you want.  However in the background the content center information is still attached and its not fully defined as a normal part.  If you don't care about that then you will be fine.

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 16 of 23

edonline69
Enthusiast
Enthusiast

Hi Mark,

I already tried that, but to make sure I wasn't crazy, I copied the file to my desktop, used the default ipj and opened the file and could not edit the material properties.

I invite you to take the part above and see if you have any luck.

Thanks

0 Likes
Message 17 of 23

Mark.Lancaster
Consultant
Consultant

@edonline69

 

The problem is (as someone else pointed out)..  This part is locked and its not even acting like a normal Inventor content center component.  If I open from CC or place a CC component in an assembly, the Inventor ribbon for my CC component is still enable and I can make changes to it and the material..  However I get the message this is a content center component and editing it is not possible.  If I do a save-as and place it in another directory I can change it without any issues.   So your CC part is not acting like a normal CC part..

 

Let me ask you this..

 

1.  Did you create this part and publish it to content center?

2.  Did you just copy a standard from the read only library over to your read/write library and modify it to meet your standard?  If you did which washer family did you do this from?

3.  Did you get this from somewhere else?

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 18 of 23

edonline69
Enthusiast
Enthusiast

Therefore, in your expert opinion there is no way to "magically" convert this part into a normal part, where all my constraints will be retained in hundreds of my sub assemblies?

0 Likes
Message 19 of 23

-niels-
Mentor
Mentor
Accepted solution

Did not really read the topic, but is the problem similar to this one?

http://forums.autodesk.com/t5/inventor-forum/document-settings-not-available/td-p/6536435

 

I used the same "normalize" code from the download i linked to in that topic and it worked for your part....

(see attached)


Niels van der Veer
Inventor professional user & 3DS Max enthusiast
Vault professional user/manager
The Netherlands

Message 20 of 23

Mark.Lancaster
Consultant
Consultant

@-niels-

 

I must be missing something...  When I open the part the VBA editor is disabled and unable to run any code and that's why I never offered one..  There's another article that Autodesk has with a reset code but was unable to use it either.  What am I missing?

 

Never mind I guess I'm not awake yet..  I didn't see that you had to select the part in an assembly and run the code..   My bad..  Smiley Sad

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