mousho Posted January 5, 2021 Posted January 5, 2021 Hi who can help me with the second line (base_yy2)? adding pic that show the resault there is any guide for field expression? BASE_YY (strcat "%<\\AcObjProp Object(%<\\_ObjId " (itoa(vla-get-ObjectID (vlax-ename->vla-object BASE))) ">%).InsertionPoint \\f \"%lu2%pt3\ ">%") BASE_YY2 (strcat "%<\\AcExpr (ryof(w2u(" BASE_YY "))) \\f \"%lu2\ ">%") Quote
Lee Mac Posted January 6, 2021 Posted January 6, 2021 Based on your image, try the following: BASE_YY (strcat "%<\\AcObjProp Object(%<\\_ObjId " (itoa (vla-get-ObjectID (vlax-ename->vla-object BASE))) ">%).InsertionPoint>%") BASE_YY2 (strcat "%<\\AcExpr (ryof(w2u(" BASE_YY "))) \\f \"%lu2\">%") Quote
Grrr Posted January 7, 2021 Posted January 7, 2021 May I ask what are ryof and w2u ? And where one could find out the existence of rxof, ryof & rzof (followed the logic that ryof extracts the y coordinate of the insertion point and testing showed these work). Quote
Lee Mac Posted January 7, 2021 Posted January 7, 2021 17 hours ago, Grrr said: May I ask what are ryof and w2u ? And where one could find out the existence of rxof, ryof & rzof (followed the logic that ryof extracts the y coordinate of the insertion point and testing showed these work). Here's a reference: http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-163FB50A-B9B2-4292-A1BD-0C872CA441D5 1 Quote
mousho Posted January 7, 2021 Author Posted January 7, 2021 LEE MAC Thenks this is what work for me BASE_YY (strcat "%<\\AcObjProp.16.2 Object(%<\\_ObjId " (itoa(vla-get-ObjectID (vlax-ename->vla-object BASE))) ">%).InsertionPoint \\f \"%lu2%pt3\">%") BASE_YY2 (strcat "%<\\AcExpr " " (ryof(w2u (" BASE_YY "))) \\f \"%lu2\">%") grrr see another reference, go to meesage 10: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/fields-using-coordinates-of-ucs/td-p/5844251 thx again ") 1 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.