Help with Field

Help with Field

lusofabril
Contributor Contributor
448 Views
7 Replies
Message 1 of 8

Help with Field

lusofabril
Contributor
Contributor

I got a Field fetching some text elsewhere in the drawing. But that original text has 1 extra character that I need in the original text, but not in the field.

Is there a way I can use some internal function that replaces that char with nothing (in this case) inside the field's formula?

Thanks for any help you can give

0 Likes
Accepted solutions (1)
449 Views
7 Replies
Replies (7)
Message 2 of 8

imadHabash
Consultant
Consultant
Accepted solution

Hi,

Fields are basically a mirror from the source objects. They can pull text from somewhere else, but they can’t process or transform it. There’s no built-in field function for such a request!!

Imad Habash

EESignature

Message 3 of 8

cadffm
Consultant
Consultant

No,

but think about the opposite direction, if it is possible for you: Switch source/target situation

 

Sourceobject: 1234

Targetobject: [field:1234]5 to display 12345

 

Sebastian

0 Likes
Message 4 of 8

ChicagoLooper
Mentor
Mentor

Hi @lusofabril 

What's the field?

Depending on the field, you may be able to display part of it and hide other parts.

 

Can you share the field and how you are acquiring it? Be detailed when explaining.

 

For example:

The LOGINNAME name is a Field.

The user's name is George Washington and the login name is gwashington.

 

If you only want to display the initials gw, not the full first name and the full last name, then yes, you can do that.

 

Can you share your Field?

 

 

 

 

Chicagolooper

EESignature

0 Likes
Message 5 of 8

lusofabril
Contributor
Contributor

Imagine the text="XXX-01"

I want on other text="XXX01", the size can change, so grabbing 3 most chars and appending to the 2 most right doesn't work for me, because this could be "XX-101" also.

 

0 Likes
Message 6 of 8

ChicagoLooper
Mentor
Mentor

@lusofabril 

Sorry, that's not detailed enough. What's the FIELD NAME? What's the Field's source?

And show a  screenshot of the window that's trying to capture the field but results in the 'extra' character.

 

Don't forget to explain where the FIELD is coming from.  I can't help if you don't provide enough info. This should be an easy exercise but it's turning into something that's difficult.

Send PM if you don't want field name on the Forum. 

Chicagolooper

EESignature

0 Likes
Message 7 of 8

lusofabril
Contributor
Contributor

They are both text element on the same drawing. But i can change to mtext if its needed (doubt it)

0 Likes
Message 8 of 8

ChicagoLooper
Mentor
Mentor

and @lusofabril 

<<... There’s no built-in field function for such a request!!...>>

 

Although there are no 'built-in' field functions for such a request, there are ways to manage a field.

 

Yes, it's true you can't (and maybe shouldn't) force a field to function in a certain way you want....but you can instruct AutoCAD to display how the field finally appears in your deliverable. Giving AutoCAD instructions to change the field's appearance isn't the same as changing the field itself. 

 

You, the OP, want to change the appearance of a field because you don't like the way it currently appears--it has too many characters. You know how to acquire the field, you know where to insert the field, but now you want to eliminate one or more characters displayed after insertion. Correct?

 

In Post #1, you say 'replaces that character with nothing' which means eliminate a character 'in the field's formula.'  You only want to HIDE a character when it's inserted, not change what or how the field is acquired.

 

If you need a specific answer then you'll have to name the specific Field and associated object(s) of the Field. And you'll also need to describe in detail, where you want to insert the field.

 

Your accepted solution isn't helping you, it's discouraging you. And it not only discourages you, it discourages others who search this same issue, who find this post, and see what you’ve marked as your accepted solution.

 

Chicagolooper

EESignature

0 Likes