How to get profile from assemblyfeatures?

 

 

Hi all,

I'm trying to get the profiel which is use for an assemblyfeature. the code is as follows;

Dim testprofile As System.Array

Dim count AsIntegertestprofile = Array.CreateInstance(GetType(SolidEdgePart.Profile), 1)

objAssy.AssemblyFeatures.AssemblyFeaturesExtrudedCutouts.Item(1).GetProfiles(count, testprofile)

In the activedocument there are 2 assemblycutouts, But on the final code an error occurs,

System.ArgumentException was unhandled

  Message="The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

Thx for the help

Peter

 

 

Posted by: W.P. Verpalen
Post date: 5/17/2010 11:36:21 PM