Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
LSKELLY
in reply to: LSKELLY

Don't worry I found it. The following snippet illustrates how to change the Model State of a weldment view.

 

'Create View
oBaseView = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, ViewScale, ViewOrientationTypeEnum.kIsoTopRightViewOrientation, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle)
                
'View Settings
oBaseView.DisplayForeshortenedTangentEdges = True
If oPartDoc.DocumentSubType.DocumentSubTypeID = "{28EC8354-9024-440F-A8A2-0E0E55D635B0}" 'If Weldment
    oBaseView.SetWeldmentState(WeldmentStateEnum.kMachiningWeldmentState)
End If