Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

How to "Offset" Attribute with Formula Field?

tjohnstonT6MFW
Explorer

How to "Offset" Attribute with Formula Field?

tjohnstonT6MFW
Explorer
Explorer

I am trying to create a field formula within a block that displays (Z Coordinate-x'x") but I can not get it to display when the units are set to Architectural.

 

This is the left side block in the drawing:

tjohnstonT6MFW_0-1654874378975.png

The Left block is just set to display the "Z" coordinate of the block, which it is doing correctly at 18', using this field:

tjohnstonT6MFW_1-1654874521819.png

 

Now the right side block in the first picture is my attempt at trying to get the tag to display that same "Z" coordinate minus 18'. So I copied the field expression displayed in the second photo, and copied it into the formula and subtracted 18'.

 

Which you can see here:

tjohnstonT6MFW_2-1654874691357.png

 

When the block is viewed in the model space the resulting display should be: (0'-0"), but as you guys can see in the first picture, its just displaying the default preview for the formula field: "####"

 

It should be noted that if I use "Decimal" units, the formula works fine, but unfortunately I need it to work in feet and inches.

 

Any help would be appreciated, and the dwg file is attached if you'd like to take a look.

 

Thank you,

Tim J.

 

 

 

 

 

0 Me gusta
Responder
Soluciones aceptadas (2)
608 Vistas
6 Respuestas
Respuestas (6)

h_s_walker
Mentor
Mentor
Solución aceptada

Ok so I was having problems so I cheated a bit.

First off I moved all your linework in the block to 0,0,0. It's better to work with blocks at the base origin.

Second I placed a point at 0,0,-1'6" and put it on the defpoints layer.

Third I changed the field to just reference that point. See the attached drawing

 

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Me gusta

pendean
Community Legend
Community Legend

The block on the left has an insertion point here (600feet+ from 0,0,0)

pendean_0-1654876510401.png

 

The block on the right has it over here (the 0,0,0 point)

pendean_1-1654876534304.png

 

Wonder why.

0 Me gusta

tjohnstonT6MFW
Explorer
Explorer

I like this idea, as I can just put the point in a frozen layer so it is unseen when in the model space. However, I'd like to keep this open for a few to see if anyone can figure out the formula I would actually need to use inside of the field. If nothing fruitful comes up then this is the best solution.

 

Thank you for your help.

0 Me gusta

tjohnstonT6MFW
Explorer
Explorer
It's because the block on the left was copy and pasted from another drawing, but the block on the right was drawn in on this drawing.
0 Me gusta

user181
Mentor
Mentor
Solución aceptada

I made a quick video how to make the formula in the field. See attached video. 

EESignature


0 Me gusta

tjohnstonT6MFW
Explorer
Explorer
Thank you, this also worked as well, its a shame you can't make the formula default to the block, but this is a good work around!
0 Me gusta