• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

id field with local ucs

Dibe

Guest
Good morning to all,
I ask politely if someone is able to help me find the solution to the following goal:

use a data field for a "point object" that tells me the coordinate y but referring to the local (non-global) ucs.
using the "id" command provides me with the correct co-ordinate relative to the local ucs but needs a data field that is updated according to the position of the "point object".
I found only the data field that only refers to the global ucts.
Thank you for your cooperation.
 
campodate
formula
in the formula write ryof(w2u(mouse button in the formula and choose enter data field...
object
select the pointpositionflag only the coordinate y
ok
in the formula add two brackets: )
ok
in the end your field should have a formula like this: ryof(w2u(8.464))
It seems complicated, but after some tests you go like a splinter.. .
 
campodate
formula
in the formula write ryof(w2u(mouse button in the formula and choose enter data field...
object
select the pointpositionflag only the coordinate y
ok
in the formula add two brackets: )
ok
in the end your field should have a formula like this: ryof(w2u(8.464))
It seems complicated, but after some tests you go like a splinter.. .
Good morning gp,
Thank you for your intervention and your precious collaboration.

I tried to do as you indicated but in the preview of the formula remain the 4 "#######" which are then returned as text field data.
of course I set and set the origin of a "local bird" (so not global).

about the formula string like yours, I got this: ryof(w2u(4563454.5651))

the value "4563454.5651" is the actual coordinated "y" (after writing the formula ryof(w2u( I have selected input data field/object/point/position) non of the system "Localucs" of the global one but at the end it displays this: ♪

If it works to you, I don't want to have any modified variables or for my ignorance something else that prevents me from the result you get.
 
I explain some things, ryof e w2u are two functions of the autocad geometric calculator (geomcal), from the command line you launch by typing cal.
ryof(p) returns the coordinate y of point p (so in theory you could in the fielddati not only scourge y, it would work the same), while w2u(p) converts the p point from wcs to the current ucs.
in my lisp I often use the functions of geomcal, I think they are too neglected by those who make programming.

said this, follow the steps described in the gif...
649.gif
 
Thank you very much for your availability, with the gif I no longer have the slightest doubt.
you had already been very clear before, I had done everything step by step correctly.
but at this point, the strong doubt of doing a test to the colleague's computer.. .
There's something that doesn't work in my autocad while my colleague's autocad works!
I tried little bits to use my civil3d and it works!
something that disturbs the regular operation in my autocad.

I think I can reinstall everything from the top with all the icons, commands and custom settings.
thank you thank you thank you. :

I also learned new commands despite autocad use by more than 30 years!
You never end up learning. : )
 
Last edited:
I think I can reinstall everything from the top with all the icons, commands and custom settings.
Well, exporting autocad settings and reimporting them to the new one should be very little to fix. . .

However, do not reinstall, I tried to replicate your error and get it when I imposed the format decimals when choosing the point position.
try to choose Current unit, you can always change later, as I did in the gif.
 
Well, exporting autocad settings and reimporting them to the new one should be very little to fix. . .

However, do not reinstall, I tried to replicate your error and get it when I imposed the format decimals when choosing the point position.
try to choose Current unit, you can always change later, as I did in the gif.
That was the problem!

it also works to me!!!
I owe you. You were very kind and patient. Thank you!
If I can change it will be a pleasure.
heartfelt thanks as a person and availability. Thank you..
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top