Jump to content

area 2 field


woohhoo

Recommended Posts

Hi

 

This program of Lee Mac (see att.) allows a user to create an MText object containing a field expression referencing the area, or sum of areas, of one or more selected objects.

It's a great programme but I need a few changes on it if it's possible. I'm don't know anything about writing in lisp and I was hoping someone could help me out.

 

What I need is:

- after you select an area you must be able to write text (function of that room).

- after you confirm the text, the text and surface (m²) should be placed automatically in the center of that area.

- there should be a border around the text and surface and the background color should be white (255)

-text height should also be adjustable

 

Please see example in attachment.

 

Thanks in advance for any help!


Grz Woohhoo

area+text+surface.PNG

Areas2FieldV1-3.lsp

Link to comment
Share on other sites

A few issues "More than 1 object" it is possible to add fields so save a total area. It comes down to the question of labelling or auto update existing label if changed.

 

Maybe use a block as per another post today, that gets around the problem of a room name and area. 

 

 

Auto centroid that requires a bit more coding various methods out there depending on object type. A simple answer M2P a built in function for picking a point mid of two points.

 

The m sq ">%).Area \\f \"" fmt "m" "\U+00B2" "\">%" change in code.

 

The best answer would be google "label room area" there may be code out there that does what you want.

Edited by BIGAL
Link to comment
Share on other sites

35 minutes ago, BIGAL said:

Một số vấn đề "Nhiều hơn 1 đối tượng" có thể thêm các trường để tiết kiệm tổng diện tích. Nó đi đến câu hỏi về việc dán nhãn hoặc tự động cập nhật nhãn hiện có nếu thay đổi.

 

Có thể sử dụng một khối theo một bài đăng khác ngày hôm nay, xoay quanh vấn đề về tên phòng và diện tích. 

 

 

Auto centroid đòi hỏi nhiều hơn một chút mã hóa các phương pháp khác nhau tùy thuộc vào loại đối tượng. Một câu trả lời đơn giản M2P một chức năng tích hợp để chọn một điểm giữa hai điểm.

 

Thay đổi m sq ">%). Vùng \\ f \" "fmt" m "" \ U + 00B2 "" \ ">%" trong mã.

 

Câu trả lời tốt nhất sẽ là google "nhãn diện tích phòng" có thể có mã ở đó làm những gì bạn muốn.

Bạn hiểu nhầm ý mình rồi.

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