Message 1 of 5
Find workpoints in flat pattern

Not applicable
03-14-2018
06:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have created workpoints on my flat pattern that I want to use for dimensioning.
I have the following code which is able to find the workpoints in the folded part but not the flat pattern:
Dim oDrawingDocument As DrawingDocument = ThisServer.ActiveDocument Dim oSheet As Sheet = oDrawingDocument.ActiveSheet Dim oView As DrawingView = ActiveSheet.View("VIEW7").View Dim oPartDocument As PartDocument = oView.ReferencedDocumentDescriptor.ReferencedDocument 'Dim oComponentOcc As ComponentOccurrence = oAssemblyDoc.ComponentDefinition.Occurrences.Item(1) 'Dim oPartDocument As PartDocument = oComponentOcc.Definition.Document Dim oWorkPoint1 As WorkPoint = oPartDocument.ComponentDefinition.WorkPoints.Item(2) MsgBox(oPartDocument.ComponentDefinition.WorkPoints.Count) MsgBox( oWorkPoint1.Name) MsgBox( oWorkPoint1.Point.X) MsgBox( oWorkPoint1.Point.Y)
Could anyone help me get the workpoints from the flat pattern.
Thanks,
Thomas