
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(inventor 2017.4)
I use iLogic to go through all ReferencedDocuments in an assembly. I search for specific iProperties to get the filenames of files that match my criteria.
Can someone please help me set the moveOcc ComponentOccurrence with the help of my filename and not the occurrence name. I assume the problem is that one filename can be several difference occurrences. (se below snippet of my code)
So what in summary what i would like to do: Move all occurrences with a specific filename to a specific coordinate and ground it/them
Dim moveOcc As ComponentOccurrence = Component.InventorComponent("myoccurrence:1")
Dim oTransform As Matrix = moveOcc.Transformation
oTransform.SetTranslation(ThisApplication.TransientGeometry.CreateVector(stay4*convFactor, 0*convFactor, 0*convFactor))
moveOcc.Transformation = oTransform
moveOcc.Grounded = True
Any input would really be appreciated
Solved! Go to Solution.