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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debuging Code

Status
Not open for further replies.

kr7530

Automotive
Joined
Aug 9, 2011
Messages
130
Location
US
The code line below I am using to load components of an assembly not already loaded based on user input. It is not working 100% of the time and I have been unable to figure it out.
My question is, can I view the value of "openStatus1" in a listing window? I am hoping this will shed some light on why it fails.

partLoadStatus1 = workPart.ComponentAssembly.OpenComponents(Assemblies.ComponentAssembly.OpenOption.WholeAssembly, componentsToOpen1, openStatus1)

Used to display file name: lw.WriteLine(componentsToOpen1(0).DisplayName.ToString)

Thanks,
Kevin
NX8.0
VB.Net
 
Thanks cowski, I had but was not properly indexing it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top