Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The code below is used to add Virtual Components.
AddByComponentDefinition as used in the code sample below, generates an error after upgrading to Inventor 2023.
What would be the proper way to add multiple VC's in the new version of Inventor?
'create first instance of the virtual part Dim virtOcc As ComponentOccurrence virtOcc = oOccs.AddVirtual(sVirtPart, identity) 'add next instance starting at instance2 (if applicable) Dim index As Integer index = 2 Do While index <= iQTY oOccs.AddByComponentDefinition(virtOcc.Definition, identity) index += 1 Loop
Solved! Go to Solution.