constructing a line in ver3.7mr2

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

  • constructing a line in ver3.7mr2

    why can i not construct a line between two constructed points? it keeps telling the math failed error.
    Last edited by bullseye; 09-20-2011, 09:43 AM.

  • #2
    Can you post the section of code that shows the fail?

    B&S CHAMELEON/PCDMIS CAD++ V2011

    There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

    sigpic

    Comment


    • #3
      what i have done is projected a circle on to a plane to create a point. i have done this on each side. now i need to move the point in "z". when i offset the point in z it created the points i needed but would not let me construct a line between them saying "theo math failed.......". what i have ended up doing is copying each point and changeing the value for "z" in the new point and it now allows me to construct the line i need. i am new to this forum and not real sure how my boss would feel about me posting code and stuff lol so i will have to check on that first. i was just wondering if it is even possible to construct a line from constructed points and so forth. and thoughts or ideas will be appericated greatly and thanks in advance.

      Comment


      • #4
        Code:
        Gen_feat_1 =generic/plane,dependent,rect,$
        nom/xyz,0,0,0,$
        meas/xyz,0,0,0,$
        nom/ijk,0,0,1,$
        meas/ijk,0,0,1
        
        gen_feat_2 =generic/circle,dependent,rect,out,$
        nom/xyz,0,0,10,$
        meas/xyz,0,0,10,$
        nom/ijk,0,0,1,$
        meas/ijk,0,0,1,$
        diameter/5,5
        
        gen_feat_3 =generic/circle,dependent,rect,out,$
        nom/xyz,10,0,10,$
        meas/xyz,10,0,10,$
        nom/ijk,0,0,1,$
        meas/ijk,0,0,1,$
        diameter/5,5
        
        pnt1 =feat/point,rect
        theo/0,0,0,0,0,1
        actl/0,0,0,0,0,1
        constr/point,proj,gen_feat_2,
        
        pnt2 =feat/point,rect
        theo/10,0,0,0,0,1
        actl/10,0,0,0,0,1
        constr/point,proj,gen_feat_3,
        
        lin1 =feat/line,rect,unbnd
        theo/0,0,0,1,0,0
        actl/0,0,0,1,0,0
        constr/line,bf,3d,pnt1,pnt2,,
        outlier_removal/off,3
        filter/off,wavelength=0

        B&S CHAMELEON/PCDMIS CAD++ V2011

        There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

        sigpic

        Comment


        • #5
          thanks for the help. i had been trying to construct the line as 2d auto. when i tried best fit 3d like you showed it let me do it. thanks again!

          Comment

          Related Topics

          Collapse

          Working...
          X