Title:
inventorhelpexamples_assembly_occ Download
Description: 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 =
To Search:
File list (Check if you may need any files):
Inventor_Help_Examples_CSharp_Assembly_Occs
...........................................\Inventor_Help_Examples_CSharp_Assembly_Occs
...........................................\...........................................\bin
...........................................\...........................................\...\Debug
...........................................\...........................................\...\.....\Inventor_Help_Examples_CSharp_Assembly_Occs.vshost.exe
...........................................\...........................................\...\Release
...........................................\...........................................\Form1.cs
...........................................\...........................................\Form1.Designer.cs
...........................................\...........................................\Form1.resx
...........................................\...........................................\Inventor_Help_Examples_CSharp_Assembly_Occs.csproj
...........................................\...........................................\Inventor_Help_Examples_CSharp_Assembly_Occs.csproj.user
...........................................\...........................................\obj
...........................................\...........................................\...\x86
...........................................\...........................................\...\...\Debug
...........................................\...........................................\...\...\.....\DesignTimeResolveAssemblyReferencesInput.cache
...........................................\...........................................\...\...\.....\GenerateResource.read.1.tlog
...........................................\...........................................\...\...\.....\GenerateResource.write.1.tlog
...........................................\...........................................\...\...\.....\Inventor_Help_Examples_CSharp_Assembly_Occs.csproj.FileListAbsolute.txt
...........................................\...........................................\...\...\.....\Inventor_Help_Examples_CSharp_Assembly_Occs.Form1.resources
...........................................\...........................................\...\...\.....\Inventor_Help_Examples_CSharp_Assembly_Occs.Properties.Resources.resources
...........................................\...........................................\...\...\.....\TempPE
...........................................\...........................................\...\...\Release
...........................................\...........................................\Program.cs
...........................................\...........................................\Properties
...........................................\...........................................\..........\AssemblyInfo.cs
...........................................\...........................................\..........\Resources.Designer.cs
...........................................\...........................................\..........\Resources.resx
...........................................\...........................................\..........\Settings.Designer.cs
...........................................\...........................................\..........\Settings.settings
...........................................\Inventor_Help_Examples_CSharp_Assembly_Occs.sln
...........................................\Inventor_Help_Examples_CSharp_Assembly_Occs.suo