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
  • Update on my VB.NET venture.

    For those of you who program the same style as I do it will make sense. I program from top down (obviously) starting from alignment, geometry, constructions, and dimensions respectively. It's pretty basic for the most part until I get into dimensioning. I like to follow a ballooned drawing in a sequential order, I use report comments to define the balloon # and dimension description like this:

    COMMENT/REPT,
                97. Ø16
                _____________________________________________________________________________________
    DIM D97= LOCATION OF CIRCLE CIR19  UNITS=MM ,$
    GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=BOTH  HALF ANGLE=NO
    AX    NOMINAL       +TOL       -TOL       MEAS        DEV     OUTTOL
    D      16.00+0     0.2000     0.2000    16.0024     0.0024     0.0000 ----#----
    END OF DIMENSION D97
                COMMENT/REPT,
    
    


    I also add a report comment with 2 spaces to place a gap between dims for visual clarity. Why all the redundant work? Well...I sell reports to just about anyone you can think about in the aerospace gig and none of them have a CMM background, so I try to make it as easy for them as pie.

    BUT!

    Creating comments takes long and it's redundant as heck not to mention all the typos I make that QEs call me out on or THE COSTUMER when QEs also miss my typos. Also, I copy and paste comments a bunch to try to save time but I forget to update the balloon number!

    Our QE department uses a ballooning software that generates a balloon drawing and an Excel workbook with Form 1-3 of AS9102. All the dimensions I type in are already on Form 3 sheet, but copying from Excel may seem like a good idea but slows the process EVEN further.

    My solution:



    A COMMENT creator! (Patent Pending jk!)


    Upon attaching an Excel workbook it imports all dimension text and as you increase/decrease the balloon# it cycles thru corresponding dimension. It matches the dim# with the widgets "Enter Balloon #" and as I click "Create" it increments the widgets balloon #. Don't have data as far as how much faster this is compared to my old manual method but IMO it is much faster and IF any typos exists I can blame it back on the COPS (QEs) as they generate those Excel sheets haha!

    You can also manually overwrite any text or skip importing excel sheets and type them out manually.

    KP61dude!
Reply
  • Update on my VB.NET venture.

    For those of you who program the same style as I do it will make sense. I program from top down (obviously) starting from alignment, geometry, constructions, and dimensions respectively. It's pretty basic for the most part until I get into dimensioning. I like to follow a ballooned drawing in a sequential order, I use report comments to define the balloon # and dimension description like this:

    COMMENT/REPT,
                97. Ø16
                _____________________________________________________________________________________
    DIM D97= LOCATION OF CIRCLE CIR19  UNITS=MM ,$
    GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=BOTH  HALF ANGLE=NO
    AX    NOMINAL       +TOL       -TOL       MEAS        DEV     OUTTOL
    D      16.00+0     0.2000     0.2000    16.0024     0.0024     0.0000 ----#----
    END OF DIMENSION D97
                COMMENT/REPT,
    
    


    I also add a report comment with 2 spaces to place a gap between dims for visual clarity. Why all the redundant work? Well...I sell reports to just about anyone you can think about in the aerospace gig and none of them have a CMM background, so I try to make it as easy for them as pie.

    BUT!

    Creating comments takes long and it's redundant as heck not to mention all the typos I make that QEs call me out on or THE COSTUMER when QEs also miss my typos. Also, I copy and paste comments a bunch to try to save time but I forget to update the balloon number!

    Our QE department uses a ballooning software that generates a balloon drawing and an Excel workbook with Form 1-3 of AS9102. All the dimensions I type in are already on Form 3 sheet, but copying from Excel may seem like a good idea but slows the process EVEN further.

    My solution:



    A COMMENT creator! (Patent Pending jk!)


    Upon attaching an Excel workbook it imports all dimension text and as you increase/decrease the balloon# it cycles thru corresponding dimension. It matches the dim# with the widgets "Enter Balloon #" and as I click "Create" it increments the widgets balloon #. Don't have data as far as how much faster this is compared to my old manual method but IMO it is much faster and IF any typos exists I can blame it back on the COPS (QEs) as they generate those Excel sheets haha!

    You can also manually overwrite any text or skip importing excel sheets and type them out manually.

    KP61dude!
Children
No Data