hexagon logo

Help with FCF dimension

I have these little OLE programs that I was updating to exe files to get rid of an annoying server busy error. And in some of our programs we have FCF dimensions that are making me crazy since they worked as a basic script but don't work as a exe file. Here is what I have for the code:

If ObjCmd.Type = 184 Then
                If Len(ObjCmd.ID) > 0 Then
                    PrevID = FCFid
                    FCFid = ObjCmd.ID
                End If
                FCFMeas = ObjCmd.GetFieldValue(LINE2_DEV, 1)
            End If


Any ideas on why it worked one way but not now?

And there used to be some examples of FCF coding on here, but I can't find it again. If you have examples you are willing to share, I would appreciate the posting of them so I could learn what you did.

Thanks so much for any help you can provide.
Parents
  • I have been resorting more and more to using the enumeration code since it doesn't require me to declare it and screw up the type of variable it actually is and shut down the whole thing. So the CommentType = 2 is the comment input and 184 is a feature control frame and 688 is line2_meas.

    If you have an insight, I would appreciate it.
Reply
  • I have been resorting more and more to using the enumeration code since it doesn't require me to declare it and screw up the type of variable it actually is and shut down the whole thing. So the CommentType = 2 is the comment input and 184 is a feature control frame and 688 is line2_meas.

    If you have an insight, I would appreciate it.
Children
No Data