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

You can use direct API functions for this.

This sample expects the sheetmetal part is the active document and returns flatpattern dimensions in internal units [cm].

Dim part As PartDocument = ThisDoc.Document
Dim smCompDef As SheetMetalComponentDefinition = part.ComponentDefinition

Dim length As Double
Dim width As Double
If smCompDef.HasFlatPattern Then
	width = smCompDef.FlatPattern.Width
	length = smCompDef.FlatPattern.Length
End If