hexagon logo

Setting the ID as the ID of a Previous Command

I am still having problems getting the ID to set properly for Dimension locations and true position variables. When testing using message boxes, the way that PCDMIS reads them is

ID = CIR2 (just an example)
AX =
MEAS = 0.000
ID =
AX = D (again example)
MEAS = 4.500

So, I was going through the help files and found the Command.Prev page, but it was not very useful.

Does anyone have experience with this command? And if so, what does it do? And what is the proper syntax for it?

And as a follow up to that. Has anyone set an ID to the ID of a previous command? And if you did, how did you do it?

Thank you so much. I know I am asking a lot of questions.
Parents
  • You'd have to use a placeholder for the current ID and the previous ID.

    Pseudocode:
    if Len(PCDCommand.ID) > 0 then
      PrevID = CurID
      CurID = PCDCommand.ID
    end if
    


    Kind of...


    Thanks. I will play with this and hopefully get it to work. I had tried to simply call it out saying DIMENSION_START_LOCATION and DIMENSION_TRUE_START_POSITION but PC DMIS still insists on giving me the blank place holders. It is making me crazy. Most dimensions I have figured out how to call them out from the feature commands and get the proper measurements, but for true position, it is figure out how to call it out or start doing a lot of math.

    Again, thanks. I do appreciate your vast well of knowledge working with this program.
Reply
  • You'd have to use a placeholder for the current ID and the previous ID.

    Pseudocode:
    if Len(PCDCommand.ID) > 0 then
      PrevID = CurID
      CurID = PCDCommand.ID
    end if
    


    Kind of...


    Thanks. I will play with this and hopefully get it to work. I had tried to simply call it out saying DIMENSION_START_LOCATION and DIMENSION_TRUE_START_POSITION but PC DMIS still insists on giving me the blank place holders. It is making me crazy. Most dimensions I have figured out how to call them out from the feature commands and get the proper measurements, but for true position, it is figure out how to call it out or start doing a lot of math.

    Again, thanks. I do appreciate your vast well of knowledge working with this program.
Children
No Data