eliotke Posted June 29, 2012 Posted June 29, 2012 Hi guys I want to get several strings from a column of a excel file, then use every string to find "Mtext" in a drawing with xref (acturaly the Mtext is in xref, I can find some lisp be able to find string in drawing, but excluding in xref. ). When one string be found in xref, I hope cad zoom to it, and call another fuction. After finished that fuction, lisp go to find next string. Is there anybody can help me about that lisp? Thankyou very much. Quote
Lee Mac Posted June 29, 2012 Posted June 29, 2012 You will need to iterate over the objects within the Block Definition of the XRef, then translate the object coordinates relative to the Block Definition geometry to the XRef Block Reference geometry so as to zoom to the correct point. Quote
eliotke Posted July 2, 2012 Author Posted July 2, 2012 You will need to iterate over the objects within the Block Definition of the XRef, then translate the object coordinates relative to the Block Definition geometry to the XRef Block Reference geometry so as to zoom to the correct point. Hi, Lee Mac Thank you for your reply. I am a lisp learner, so could you please give me more details about trans the coordinates? Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.