Your Products have been synced, click here to refresh
So it appears you have a measured scan.
I'd align/origin to the center to the scan (presuming you have a means to consistently control rotation)
construct a generic plane and construct intersect points between the scan and the plane, then again between the plane and the scan.
construct a line between the two points.
I have the same scenario, and i do this (well i actually just take 2-hit lines on each face, not a scan) 3x to determine my hexagon-shaped bore with a max inscribed diameter specification.
ASSIGN/V1=MININDICES(ABS(DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-PL1.XYZ,PL1.IJK))) ASSIGN/V2=UNIT(SCN1.HIT[V1[2]].XYZ-SCN1.HIT[V1[1]].XYZ) ASSIGN/V3=DOT(V2,PL1.IJK) ASSIGN/V4=SCN1.HIT[V1[1]].XYZ IF/V3<0 ASSIGN/V4=SCN1.HIT[V1[2]].XYZ END IF/ ASSIGN/V5=DOT(V4-PL1.XYZ,PL1.IJK)/V3 ASSIGN/V6=V4+V5*V2 F1 =GENERIC/POINT,DEPENDENT,CARTESIAN,$ NOM/XYZ,<V6.X,V6.Y,V6.Z>,$ MEAS/XYZ,<V6.X,V6.Y,V6.Z>,$ NOM/IJK,<0,0,1>,$ MEAS/IJK,<0,0,1>
AFFECTER/V1=SCN1.HIT[1..SCN1.NUMHITS].XYZ*MPOINT(1,1,0) AFFECTER/V2=MININDEX(SQRT(DOT(V1,V1))) AFFECTER/V3=SCN1.HIT[V2].XYZ AFFECTER/V4=V3*MPOINT(0,0,1) AFFECTER/VECT1=UNIT(MPOINT(SCN1.HIT[V2].X,SCN1.HIT[V2].Y,-SCN1.Z)) DROITE_7PANS=GÉNÉRIQUE/DROITE,DÉPENDANT,CARTÉSIEN,$ VAL. NOM. /XYZ,<0,0,V3.Z>,$ MESU/XYZ,<0,0,V3.Z>,$ VAL. NOM. /IJK,<VECT1.I,VECT1.J,VECT1.K>,$ MESU/IJK,<VECT1.I,VECT1.J,VECT1.K>,$ DISTANCE/10,10 A4 =ALIGNEMENT/DÉPART,RAPPEL:A1IGNEMENT EXTER,LISTE=OUI ALIGNEMENT/ROTATION,XPLUS,VERS,DROITE_7PANS,À PROPOS,ZPLUS ALIGNEMENT/FIN PLAN TRAVAIL/ZPLUS PLAN SÉCU/ZPLUS,50,ZPLUS,250,ON DÉPLACER/PLAN SÉCURITÉ
FACE1_1 =ÉLÉM/CONTACT/POINT DE VECTEUR/PAR_DÉFAUT,CARTÉSIEN THÉO/<-7.3892,-9.7801,-33.3>,<-0.6802415,-0.7329881,0> RÉEL/<-8.1352,-10.594,-33.3057>,<-0.6802415,-0.7329881,0> CIBLE/<-7.3892,-9.7801,-33.3>,<-0.6802415,-0.732988,0> ALIGNEMENT=NON AFFICHER PARAMÈTRES ÉLÉMENTS=NON AFFICHER PARAMÈTRES CONTACTS=OUI DÉPLACEMENT D'ÉVITEMENT=NON,DISTANCE=10 AFFICHER PALPAGES=NON
The only issue is the following FACE1_1 element, I had set predefined theoritical values for X,Y,Z, but it keeps replacing its coordinates when I change the hexagonal part position.
Any idea why ?
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |