PC-DMIS New and Improved Tracefields | PC-DMIS Tech Tips - CMMXYZ

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • This Tech Tip from CMMXYZ will teach you how to use the recently enhanced Tracefields in PC-DMIS to add report comments. These improved Tracefields are available as of version 2018 R1.
    Hey. So, in this video, I'll show you how to use the recently enhanced Tracefield command to create report comments like the ones you see here. As a version of 2018 R1, individual Tracefields can now contain multiple selectable values. Let's go ahead and run this program, and I'll show you what I mean.
    Okay. So, here is the new Tracefield dialogue box. You can notice that my four Tracefields now appear in the same dialogue. Previous to 2018 R1, they would be separate. There would be four different popups asking you to input information. The other enhancement is the pull-downs. So, for each field, I can select the pre-entered data as is required. So, whoever the operator is, the shift, and so forth. Okay. So, let's go ahead and run this. I'll just click okay.
    Okay. So that's the end of my execution, and you can see the information has been updated as per my selection and the Tracefields. Let's look at the code and I'll show you how I did it. Okay. So, here's my PC-DMIS code. There are actually three components at play here. First is a series of Tracefield commands. Next, I have variables created to extract the Tracefield's value.
    And finally, I have a report comment that you use to display this information on the report. So, the best way to explain this would be just to create a new program with a new Tracefield variable and report comments. So, I'll show you how it's done step by step.
    Okay. So, here's a new program. I just have a few features and a few dimensions. So, with my cursor after the tip command right here, let's first create a Tracefield. Tracefields can be found in the menu under Insert, Statistics Command, Tracefield. So, let's go ahead and give that a click.
    Okay. So, the first thing I'll need to do is give this a name and the name is important here because it will reference the variable later on. So, my name for this one will just be Operator. Display message is what the prompt will be to the Operator above the pull-down menu. So, here I'll just say, "Please enter your name," or "Select your name," something like that.
    And the value is the different names that are selectable. So, I'll put my name. And the new enhancement...and that the really cool part about this is we can add another one. So, this will be part of the pull-down. So, I'll just say John, and I'll do three, and Mary, something like that.
    Okay. So, that's it. So, let's click okay. So, that's Tracefield number one. Let's do a second one. Okay. So, this is Tracefield number two, and this will be shift. Display message is the instruction. So, for the values, I'll add three, so Day, Afternoon, and Night.
    Okay. So that looks good. I'll have three choices now, and I'll just click okay. Okay. So that's the first step creating the Tracefields. Next, we're going to create the variables. So, I'll just enter a new line here, type Assign. So, the name of my variable, in this case, will be Name. So, this is the new operator that PC-DMIS is introduced to tie this information to the Tracefield, it's called GETTRACEVALUE(".
    So, now, I type in the name of my Tracefield. So, this is what I was typing in before I called it Operator, and you can see it over there. So, just like that. So that's variable number one, variable number two will be Shift. So that's the name of my variable. Again, the operator GETTRACEVALUE, and in quotations, I'll put the name of my second Tracefield, which is Shift. Okay. So that's it. That's step number two.
    Step number three is a report comment. So, my type of comment is REPT. And here, I'm just going to show you a little trick here. So, if I add a quotation and then a space that will actually be a blank line, so it'll just provide a little clarity on the report. Okay. So, now, let's input our variables. Okay. So that's how your comments should look after you've entered all your information.
    About CMMXYZ
    We are North America's foremost independent measurement solutions provider. We sell new and used coordinate measuring machines, provide measuring services, upgrade and repair your systems.
    CMMXYZ - Coordinate Measuring Machines - www.cmmxyz.com/
    Get the latest on Twitter - / cmmxyz
    Follow CMMXYZ on LinkedIn - / canadian-measurement--... .
    Learn more about CMMXYZ on our blog - blog.cmmxyz.co...
    Subscribe to our UA-cam Channel - / cmmxyzvideo

КОМЕНТАРІ •