Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SW Flat Pattern Length and Width, How do I Get with VB

Status
Not open for further replies.

seatrout

Mechanical
Joined
Jul 31, 2006
Messages
2
Location
US
SolidWorks API Question:

I would like to be able to get the overall length and with of a parts flat pattern, programatically. Does anyone know how to do this without display dimensions?

I use the following to get the material thickness but the display dimension is automatically placed by SW when the part is built:

...snip
ElseIf sFeatName = "Sheet-Metal1" Then
Set swDsplyDim = swFeat.GetFirstDisplayDimension
Set swDim = swDsplyDim.GetDimension
vMaterialThickness = Format(swDim.Value, "#.000")
Set swDsplyDim = Nothing
Set swDim = Nothing
...snip end

Now, how can I get the length and width of the flat pattern?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top