Jump to content

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

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

Posted

Hi Lee

 

 

Sorry, my bad.

 

 

I had not used multiline attributes before.

 

 

It now works as you said.

 

 

Thanks heaps

Posted

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

Posted

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.

Posted

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

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

Posted

Hi Lee

 

 

Are you able to move the m squared outside of the field, like the (PAD), but can remain the same color and text size?

Posted

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

  • 4 weeks later...
Posted

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

Posted

Sorry I meant to attached sample files.

The dwg file is the attributed block we are inserting and need to enter the CODE number and the BRAND name into attrib.

The BRAND name is to be able to have spaces and also may have multiple lines of text.

Areas2AttributeV2.lsp

AREA_ATTRIB_S.dwg

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