Jump to content

Field


mousho

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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

  • Thanks 1
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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