1 program_reporting multiple types of dimensions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 1 program_reporting multiple types of dimensions

    My company has two types of dimensions I need to report. MIS and IMS. They're literally the same features from the same alignments, just different tolerances (ex: IMS_1 might be Datum -A- Ø5.000±0.002 and MIS_1 might be Datum -A- Ø5.000±0.0015).

    Usually these dimensions are measured in separate program, but not for this one part.

    How can I (running the program once):

    1) Auto-print inspection report showing ONLY MIS dimensions & tolerances
    2) In the background with no operator interaction, save PDF copy of the inspection report showing ONLY IMS dimensions & tolerances
    3) In the background with no operator interaction, output ONLY IMS dimensions via CSV format to a local folder on my computer

    **I know how to auto-print, I know how to save PDFs while making file path names & stuff, I have a system for my CSV saving setup already.. i just don't know how to make THIS program do all of this stuff "cleanly"/in the right order/the way I want it to. Hope this made sense.**

  • #2
    if statement at the beginning of program if mis-1 if ims-2 is the best i can think of

    Comment


    • DAN_M
      DAN_M commented
      Editing a comment
      Thanks for the input but thats not where I'm trying to go. I don't need it to skip anything..I need it to probe the features and then do all of the above, in that order, in a clean way.

  • #3
    maybe i miss understood, but if you report at the end 1 would report mis tol. 2 would report ims ,

    Comment


    • #4
      maybe use the print commands available in Pcdmis (I've never used them) for each of the 3 options, BUT, you would need to dimension for each print command (I think). So, print command to the printer, all the dims the way you want them, print command to PDF with the dims the way you want them, print command CVS with the dims the way you want them.

      Yeah, sucks, and I don't know the syntax, but maybe that would do it????
      sigpic
      Originally posted by AndersI
      I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

      Comment


      • DAN_M
        DAN_M commented
        Editing a comment
        I think this is what I am going to try.

        Will update you as things progress.

    • #5
      It seems this would work:

      Align part.
      Measure part.
      MIS Dimensions.
      Print command with PREVIOUS_RUNS=DELETE_INSTANCES.
      IMS Dimensions.
      Print command for PDF with PREVIOUS_RUNS=KEEP_INSTANCES.
      Save IMS dimensions to CSV file.

      Comment


      • #6
        The method I would try would be to use a variable as a toggle switch. I use this to turn on and off dimensions for reports based off of measurements, operator input, etc.
        Code:
         ASSIGN/45TOGGLE="REPORT"
        
        IF/Report condition #1
        ASSIGN/45TOGGLE="NONE"
        END_IF/
        
        DIM 45_SIZE1= LOCATION OF 3D WIDTH BR_WIDTH_MXI_1 UNITS=MM ,$
        GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=45TOGGLE HALF ANGLE=NO
        AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
        D 72.277 72.200 0.120 0.120 0.077 0.000 ------#-
        END OF DIMENSION 45_SIZE1
        You probably will need multiple print commands however if you want to do everything you want
        Last edited by CodeWarrior; 06-11-2020, 09:51 AM.

        Comment


        • DAN_M
          DAN_M commented
          Editing a comment
          Thanks, but I don't need one or the other conditionally turned off..I need BOTH of the types of dimensions output by this program in the ways listed above

      • #7
        Maybe
        Run program
        Output Dims IMS
        then
        Recall Appropriate Alignments for each dim
        Output Dims MIS

        B&S CHAMELEON/PCDMIS CAD++ V2011

        There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

        sigpic

        Comment


        • #8
          Probably rename dims
          Example
          First part of program

          Dim1_IMS

          then

          Second part of program

          Dim1_MIS

          B&S CHAMELEON/PCDMIS CAD++ V2011

          There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

          sigpic

          Comment


          • #9
            Hi,
            I'm trying to add the variable TOGGLE after "OUTPUT=" here :
            GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO

            But it keeps replacing by "BOTH" , any idea why ?

            Thank you

            Comment


            • NinjaBadger
              NinjaBadger commented
              Editing a comment
              I believe that field will only take one of the predefined values (BOTH, REPORT, STATS or NONE). I'm pretty sure it won't take a variable.

          • #10
            Ok, I'm trying to add this code (see above in this thread)

            Code:
            ASSIGN/45TOGGLE="REPORT"
            
            IF/Report condition #1
            ASSIGN/45TOGGLE="NONE"
            END_IF/
            
            DIM 45_SIZE1= LOCATION OF 3D WIDTH BR_WIDTH_MXI_1 UNITS=MM ,$
            GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=45TOGGLE HALF ANGLE=NO
            AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
            D 72.277 72.200 0.120 0.120 0.077 0.000 ------#-
            END OF DIMENSION 45_SIZE1
            How did he manage to add the variable ?

            Comment


            • mb0258
              mb0258 commented
              Editing a comment
              Because the variable = "REPORT", and as NinjaBadger mentioned, it will take only predefined values.

            • CodeWarrior
              CodeWarrior commented
              Editing a comment
              Put your cursor in the code in "OUTPUT" and hit the TAB key to highlight the blue "BOTH" text, then type in "45TOGGLE"

          • #11
            It might work if you assign an integer value to the variable 45TOGGLE instead of a string.

            Code:
            DIMOUTPUT_STATS = 0
            DIMOUTPUT_REPORT = 1
            DIMOUTPUT_BOTH = 2
            DIMOUTPUT_NONE = 3
            PC-DMIS CAD++ 2o22.2 SP3

            Comment


            • #12
              I've used variables as both nominal and tolerance in dimensions, works when I wanted one program to cover multiple part revisions, i will compare measured to different nominal values to decide which rev then assign nominals to the dimension accordingly... could something like that work? Sounds like you'd assign values that work for each dimensioning from the same measured values, and report them at will unless I'm missing something
              Last edited by Douglas; 09-09-2020, 02:35 PM.

              Comment

              Related Topics

              Collapse

              Working...
              X