Hello,
I have a function that add's an Mtext to a block that refers to a field with the insertion coordinates. This works fine in WCS.
However is there a way to control the field so the UCS coordinates of the block are used (like using function trans) instead of WCS ?
ty !
Solved! Go to Solution.
Solved by phanaem. Go to Solution.
You can use a formula instead of Position property of the block. In the formula field you can use any function available for CAL function.
For Ucs transformation, the function is W2U(p). So you will have a Formula containing the function W2U. For the point, insert another field in the formula, select the object and pick Position property.
See the attachement for example.
@rigid_joint wrote:
Thank you very much for the tip. But I have a question. If I want only one data e.g. the X values , then it returns ######## strings. Any idea how will it work?
Hi @rigid_joint I have the same question. I can't put only x or y value.
Hi
In my sample above, the block contain 2 attributes, one for WCS point and one for UCS point.
Edit the attribute and double click on the field.
For the WCS, in the dialog box check only the component you want (X, Y or Z)
For the UCS, use one of the following function: rxof for X component, ryof for Y or rzof for Z. Now the formula should look like: rxof(w2u(x, y, z))
@phanaem wrote:Hi
In my sample above, the block contain 2 attributes, one for WCS point and one for UCS point.
Edit the attribute and double click on the field.
For the WCS, in the dialog box check only the component you want (X, Y or Z)
For the UCS, use one of the following function: rxof for X component, ryof for Y or rzof for Z. Now the formula should look like: rxof(w2u(x, y, z))
Thank you @phanaem
Worked perfect!!
I have tried to do this procedure and am having trouble getting it correctly. I have attached a screen shot of what I did for your reference...!
Thank you in advance for you assistance...!
Vince
Can anyone help with just having x,y coordinates for the UCS version
I can turn off Z foe WCS & using the rxof I can have just x, y or z
Just can't seem to get x&y together with no z
Thanks
Hi
You can use a mix of simple texts and fields for the attribute value.
It can be like this: UCS = [field_x], [field_y]
[field_x] is like: rxof(w2u([field_position]))
[field_y] is like: ryof(w2u([field_position]))
Hi,
I created a block containing 2 attributes with fields to read the X & Y coordinates of the blocks insert point (see attached block). This block works fine in the World UCS system or alternate UCS systems created on that drawing. However, I have encountered a problem when the block is used on drawings that contain multiple UCS systems that need to be displayed at the same time, which is common on many of our projects. For Example......lets say we have the "World" UCS system and 2 alternate UCS systems I will call UCS "A" and UCS "B" and these blocks inserted in all of these UCS systems. When the block is inserted in the "A" UCS system the coordinates initially display correctly and when the block is inserted in the "B" UCS system the coordinates initially display correctly but after they are placed on the drawing......all of the blocks will only display the coordinates of the "current" UCS system.
How can I get the coordinate display for the blocks inserted in each coordinate system ("World" - "A" - "B") to only display the coordinate values for the corresponding UCS system they were inserted under.
Thank you in advance for your assistance..!!
Vince
This is such a helpful visual. it also works exactly as I want.
However, I want to implement this from the tool palette so its default value of the attribute is already carrying the formula ready to go. At the moment, I have to have a block set up basically like you have with an attribute where I can manually enter field requirement at the start of every drawing (after inserting into model space).
Is there any way to have it set as the default value within the block to check it's own insertion point, rather than entering the field and following these steps after insertion into model space. I want to be able to stick the block in a folder and have anyone in my team just drop it in to show the coordinates, rather than have to get each person to manually enter it each time.
Hello, just looking for a solution on this topic. In your file the UCS and WCS coordinates are ok in model space, but in paper space they are both the same (based on WCS, I guess). How to set up paper space to see those UCS coordinates, which are shown in model space? Thank you.
Change from WCS to the same UCS in paper space as you use in model space with the command UCSMAN.
Hi,
What a great solution.
This solution extract the UCS coordinates based on the UCS used.
Is it possible to get the UCS coordinates from all UCS created in the drawing? (One attribute for each UCS)
Thanks,
Gonçalo
HI,
The solution works great. Thanks. I'am still struggling with the Paperspace
I can't.
I would like when I work anywhere in a UCS coordinate system or in a WCS that I can see the coordinates in that coordinate system that is selected.