Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Note coordinate Thru GRIP

Status
Not open for further replies.

toniechang

Industrial
Joined
Jul 31, 2005
Messages
61
Location
BE
Hi all !
How can I get a Note coordinates with a GRIP program ?
 
Never actually needed to do that, but "Obtain/" might be worth looking at,

Paul Phillips
Specialty Engineered Automation
 
Use the &ORIGIN EDA to access the coordinates. OBTAIN/ would be able to tell you if that is mid-center, top-left, etc. You will probably need some combination of both commands depending on exactly what you are trying to accomplish.
 
I had the same question in a german forum ...and I got this
It worked fine for me

GRIPSW/ DECLRV

ENTITY/ obj
NUMBER/ subtyp
NUMBER/ objori(3)
STRING/ ostr(255)


MASK/ 25
INEXTE/ ALL

loopob:
obj = NEXTE/ IFEND, allobj:
subtyp = &SUBTYP(obj)
IFTHEN/ subtyp == 1
ostr = &DMTEXT(obj)
objori = &ORIGIN(obj)
PRINT/ USING, '#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #@@@@.@@ #@@@@.@@', $
ostr, objori(1), objori(2)
ENDIF
JUMP/ loopob:
allobj:

HALT

greetings from Germany
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top