FIELDS, using coordinates of UCS

FIELDS, using coordinates of UCS

XXL1966
Contributor Contributor
13,799件の閲覧回数
22件の返信
メッセージ1/23

FIELDS, using coordinates of UCS

XXL1966
Contributor
Contributor

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 !

0 件のいいね
解決済み
13,800件の閲覧回数
22件の返信
返信 (22)
メッセージ2/23

phanaem
Collaborator
Collaborator
解決済み

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.

 

メッセージ3/23

XXL1966
Contributor
Contributor

awesome ! many thx !

0 件のいいね
メッセージ4/23

rigid_joint
Enthusiast
Enthusiast
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?
0 件のいいね
メッセージ5/23

F.Camargo
Advisor
Advisor

@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?

@phanaem

 

Hi @rigid_joint I have the same question. I can't put only x or y value.

 

e.g.JPG

0 件のいいね
メッセージ6/23

phanaem
Collaborator
Collaborator

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

 

 

メッセージ7/23

F.Camargo
Advisor
Advisor

@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!!

メッセージ8/23

Anonymous
適用対象外

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

0 件のいいね
メッセージ9/23

spencer.astleZSAY3
Explorer
Explorer

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

0 件のいいね
メッセージ10/23

phanaem
Collaborator
Collaborator

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

 

UCS Fields.gif

メッセージ11/23

spencer.astleZSAY3
Explorer
Explorer

Thanks

 

That's just the job

0 件のいいね
メッセージ12/23

Anonymous
適用対象外

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

メッセージ13/23

Stormwater360Design
Explorer
Explorer

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.

0 件のいいね
メッセージ14/23

cadrrg
Participant
Participant

Were you able to solve the issue with the coordinate switching when changing to an alternate UCS?

0 件のいいね
メッセージ15/23

davidlacko
Observer
Observer

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.

メッセージ16/23

Anonymous
適用対象外

Change from WCS to the same UCS in paper space as you use in model space with the command UCSMAN.

0 件のいいね
メッセージ17/23

gcandido
Observer
Observer

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

0 件のいいね
メッセージ18/23

Anonymous
適用対象外

HI,

 

The solution works great. Thanks. I'am still struggling with the Paperspace

0 件のいいね
メッセージ19/23

gvborre
Participant
Participant

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.

0 件のいいね
メッセージ20/23

aosrom
Contributor
Contributor

Hi,

Where these functions are documented?

Have a nice day!

0 件のいいね