Jump to content

Unicode character in field formatting


Grrr

Recommended Posts

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

  • Corro

    16

  • Lee Mac

    8

  • Grrr

    4

  • hmsilva

    2

Top Posters In This Topic

Posted Images

Still does not work.

 

I have attached a sample of the attribute / polyline Area dwg and a copy of my modified version of your lisp routine.

 

Of course it doesn't - looking at your drawing, I see that you are using a single-line attribute which doesn't support MText formatting - as per my earlier response:

 

Since you state that you are using my Area Field to Attribute program, are you using multiline attributes?

(As single-line attributes cannot support MText Formatting)

Link to comment
Share on other sites

You're welcome -

 

But note that modifying the attribute value 'manually' will remove the formatting (as such formatting when used in conjunction with MAttributes is not officially supported in AutoCAD).

Link to comment
Share on other sites

Hi Lee

 

 

Everyone is excited that we now have this working, but a question has been asked, is it possible to move the M squared out of the field area.

 

 

It can stay the same colour as the value, magenta.

Link to comment
Share on other sites

Hi Lee

 

 

We are extracting the attribute data to an Excel spread sheet, but the formatting is being included with the data, refer attached screen grabs.

Is there a way to resolve?

Thanks again

Data Output.JPG

Data Output 1.jpg

Link to comment
Share on other sites

We are extracting the attribute data to an Excel spread sheet, but the formatting is being included with the data, refer attached screen grabs.

Is there a way to resolve?

Thanks again

 

Unfortunately not, as AutoCAD is not expecting to find MText formatting codes within attribute content (for the reasons I have given above).

Link to comment
Share on other sites

Yes, change the field formatting to:

"%lu2%ct8[1e-006]"

And change the other two lines to:

                        ">%).Area \\f \"" fmt "\">%[highlight]m²[/highlight] \\H0.722x;\\C4;(PAD)"

                            " \\f \"" fmt "\">%[highlight]m²[/highlight] \\H0.722x;\\C4;(PAD)"

Link to comment
Share on other sites

  • 4 weeks later...

Hi All

 

 

We have been using the routing that Lee so kindly resolved for us, but now have a requirement to be able to enter multiline, with spaces, into one of the attributes. Is this possible?

 

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...