Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Can't get Change Order Number

1 REPLY 1
SOLVED
Reply
Message 1 of 2
meck
338 Views, 1 Reply

Can't get Change Order Number

This should be really easy, but I am having trouble figuring it out. Whenever a change order state change event happens, I need to get the number of the change order. I've got the event hook all set up using the sub below, but I don't know how to get the change order's number. I thought it was this e.ReturnValue.Num but I get an error saying Object reference not set to an instance of an object.

 

Private

Sub UpdateChangeOrderLifecycleStateEvents(ByVal sender AsObject, ByVal e As UpdateChangeOrderLifeCycleStateCommandEventArgs)

 

Try

            MsgBox("ECO Number=" & e.ReturnValue.Num)

       

Catch ex AsException

            MsgBox(ex.Message)

       

EndTry

end sub

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
1 REPLY 1
Message 2 of 2
meck
in reply to: meck

I think I found out my problem. I was calling another routine before I was trying to get the number. Not sure if that was the problem or not but it seems to be working using e.ReturnValue.Num now.

 

 

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report