hexagon logo

VB.NET .GetVariableValue("NAME")

How do you pull variable values from PCD program using VB.NET?

I know how to do it with VBA and BASIC etc.... but how do you do it with VB.NET, I can get variable name but no values!

Any help, thanks.

***Edit***

My code works I just hadn't ran PcD to 'load' the variables with values....HAHAHAHA!!!!!!!!!!!!!!!
Parents
  • There are also some 'brackets' through the command.Type DIMENSION_TRUE_START_POSITION, DIMENSION_TRUE_END_POSITION, DIMENSION_START_LOCATION and DIMENSION_END_LOCATION. The START part is a good place to grab the dimension ID, and the END part the place to forget the ID again.

    A warning for the future - my FEATUREEXPORT.BAS (which is used commercially) is 479 lines long. It includes handling of FCF and [most] composite dimensions, but not simultaneous or SIZE, yet...
    (And it surely contains some bugs...)


    Thanks for your input more to think about for future edits, there is so much more I would like to do but CMM programs are my priority and writing this code can only happen on my 'down' time. Implementing error handling and logging is what I'm wanting to include badly and then beef up the rest.



    Thanks for sharing


    Most definitely!
Reply
  • There are also some 'brackets' through the command.Type DIMENSION_TRUE_START_POSITION, DIMENSION_TRUE_END_POSITION, DIMENSION_START_LOCATION and DIMENSION_END_LOCATION. The START part is a good place to grab the dimension ID, and the END part the place to forget the ID again.

    A warning for the future - my FEATUREEXPORT.BAS (which is used commercially) is 479 lines long. It includes handling of FCF and [most] composite dimensions, but not simultaneous or SIZE, yet...
    (And it surely contains some bugs...)


    Thanks for your input more to think about for future edits, there is so much more I would like to do but CMM programs are my priority and writing this code can only happen on my 'down' time. Implementing error handling and logging is what I'm wanting to include badly and then beef up the rest.



    Thanks for sharing


    Most definitely!
Children
No Data