- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have used the ContentCenterReplace Script made by @MjDeck a lot.
Found here:
https://forums.autodesk.com/t5/inventor-forum/changing-c-c-component-automation/m-p/3378327
https://forums.autodesk.com/t5/inventor-forum/ilogic-content-center-replace-nuts/td-p/3489692
I'm able to replace standard parts, and custom parts. But now I have a special situation.
I have a Pipe from content Center that is saved in content center with modifications:
Things that change with this pipe are: Length, Nominal Diameter and hole pattern.
Our content center parts have ERP information. If diameter change, so does the ERP number.
I cannot use normal content center replace.
I've tried replace the pipe as custom like this:
replacer.CreationMode = FileCreationMode.AsCustom Dim BarLength As Double = Excel_Aeration1_PipeL Dim CustomName As String = FamilyName_PE_Pipe.Replace("L=100", "L="& BarLength) Dim newFileName As String = replacer.GetCustomPartFullFileName(FamilyName_PE_Pipe, MemberName_PE_Pipe, CustomName, "B_L", BarLength) oOcc.Replace(newFileName, True)
But then I get a new file without my customization (the hole pattern)
What i need is not replace of a custom content center part, but "Change size":
The existing saved and edited pipe needs to change size so that the hole pattern is kept, and the iproperties (for ERP) are controlled by content center.
Can this be done?
I can also imagine that the script of MJDeck from 2012 is outdated and there are better ways to replace/change size with content center parts.
Thanks in advance,
Arnold
Solved! Go to Solution.
