06-07-2023
06:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-07-2023
06:35 AM
I was able to figure it out. I got the transformation of the occurrence in the assembly and combined it with the transform of the assembly within the view and set the graphics node transform to that and it worked perfect.
Dim oLineNode As GraphicsNode
oLineNode = oClientGraphics.AddNode(1)
Dim oOccPtInAssem As Matrix
oOccPtInAssem = oOcc.Transformation
Dim oAssemPtInView As Matrix
oAssemPtInView = oDrawingView.ModelToDrawingViewTransform
oOccPtInAssem.PreMultiplyBy(oAssemPtInView)
oLineNode.Transformation = oOccPtInAssem