Grip programs.. Need to label pts
Grip programs.. Need to label pts
(OP)
Greetz, Need to label points for Fixtures and gages here at our shop...in a quick look through the grip library, I see label_pts pt_id, which are good start but here's what I'm looking for...I rotate a view around in modeling so I can see the feature I want to identify. Then I make a wcs to the current view and run pt_id.grx ...works great..except I want the point to come from absolute zero...&ABS. I have been playing with the programming but not had too much sucess. Can some one steer me down the correct road?
Thanks much
Thanks much





RE: Grip programs.. Need to label pts
u can use the &WCS GPA and get the wcs in the absolute point after that u can create point at any location ,but u should give exact co-ordinate point to get label
try with this
best of luck
RE: Grip programs.. Need to label pts
What I ended up doing was making it 3 model picks.
1st) need to create a wcs to the view and save it(saving it was the root error I wasn't doing)
2nd) run grip program
3rd pick point that you want abs dimentions to.
4th) pick same point
5th) location of the text.
the reason for 2 picks on the same point is that the first one fills the abs xyz, and the second is the location of the leader arrow.
The code looks like this....$$
$$ SELECT POINT FOR LABELLING
$$
SELPNT:
OLDSYS = &WCS
&WCS = &ABS
GPOS/'POINT TO LABEL',M,RESP
JUMP/DELLST:,STOP:,SELPNT:,,,RESP
&WCS = OLDSYS
GPOS/'POINT TO LABEL',N,RESP
JUMP/DELLST:,STOP:,SELPNT:,,,RESP
the only other change I made was to the label text building, changing the N to the M varb
$$
MULTLN:
LABSTR(1)='X '+FSTR(M(1))
LABSTR(2)='Y '+FSTR(M(2))
LABSTR(3)='Z '+FSTR(M(3))
LINCNT=DIMS
ENDLIN:
Works with out a hitch. Thats the main thing.
Thanks for the direction.
Ken
RE: Grip programs.. Need to label pts
RE: Grip programs.. Need to label pts