Jump to content

Recommended Posts

Posted

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\		">%")

 

Capture.PNG

Posted

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\">%")		

 

Posted

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).

 

 

Posted

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 ")

 

  • Thanks 1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...