Introduction - If you have any usage issues, please Google them yourself
Here is another section of VBA examples converted to C#. These functions are related to using occurrences in assemblies. This group was fairly easy to migrate compared to some of the other sections I did for previous posts. Also there were several C# examples already in the help file. I added them to the project for completeness.
This project has the following functions.
AddOccurrencesToFolder
Demote
Promote
ReplaceContentCenterPart
AssemblyCount
MoveOccurrence
AddOccurrence
AddiAssemblyOccurrence
AddiPartOccurrence
iMateDuringOccurrencePlacementSample
AddOccurrenceWithRepresentations、
Here is the AddOccurrencesToFolder function:"
// Add assembly occurrences to a new folder API Sample
//Description
//Demonstrates assembly occurrences to a new folder
//Have an assembly with at least one occurrence in it
//and run the sample.
public void AddOccurrencesToFolder()
{
AssemblyDocument oDoc =
default(AssemblyDocument)
oDoc =