URGENT HELP - RECDIM WITH LAYER INFO

URGENT HELP - RECDIM WITH LAYER INFO

angelteh86
Enthusiast Enthusiast
1,360 Views
11 Replies
Message 1 of 12

URGENT HELP - RECDIM WITH LAYER INFO

angelteh86
Enthusiast
Enthusiast

Hi... I really need help... I need someone to help include one more column "Layer" as the 4th column to this RECDIM lisp. I am really no good with this so if there is anyone who can help me I will be so grateful...

Many many thanks

0 Likes
Accepted solutions (1)
1,361 Views
11 Replies
Replies (11)
Message 2 of 12

paullimapa
Mentor
Mentor

I actually modified this to include the layer column in 2018 on this post:

Solved: Gather rectangular dimension with layer name - Autodesk Community

But looks like color order has been added since then so now I've updated your revised version to include the Layer column.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 12

angelteh86
Enthusiast
Enthusiast

Hi I have tried it but the dimensions for lengths of the rectangles are not correct after the layer info is included in the lisp. I have attached a screenshot of said issue.

0 Likes
Message 4 of 12

angelteh86
Enthusiast
Enthusiast

I have also attached a sample dwg for you...

0 Likes
Message 5 of 12

paullimapa
Mentor
Mentor
Accepted solution

I've think I've resolved the problem.

After running the updated lisp routine (reuploaded in previous post) the Table with the Layer name vs without should now look like this:
paullimapa_0-1760766695394.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 6 of 12

angelteh86
Enthusiast
Enthusiast

omg... thank you so much... it is working as it should be... 😅 though there is actually one more feature i would like to include... i.e., to have the layer text put in the middle of the rectangles... i have attached both the screenshot as well as the sample dwg... is that even possible? 😅

0 Likes
Message 7 of 12

angelteh86
Enthusiast
Enthusiast

the nature of my work requires that each member/component of the structure to be labelled for "visibility". doing them one by one is really taking up too much time.

0 Likes
Message 8 of 12

paullimapa
Mentor
Mentor

Glad that worked out for you. 
To get maximum feedback perhaps you should start a new post with this request on placing the name of the rectangles layer to fit in the middle and rotated 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 9 of 12

angelteh86
Enthusiast
Enthusiast

I take on your advice... and many thanks for the previous lisp...

0 Likes
Message 10 of 12

paullimapa
Mentor
Mentor

You are welcome..,cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 11 of 12

Sea-Haven
Mentor
Mentor

Something like this.

(defun c:wow ( / obj cen lay )
  (setvar 'textstyle "Standard")
  (setvar 'textsize 2.5)
  (while (setq obj (vlax-ename->vla-object (car (entsel "\nPick rectang object "))))
   (setq cpt (osnap (vlax-curve-getStartPoint obj) "gcen"))
   (setq lay (vlax-get obj 'layer))
   (command "Text" "J" "MC" cpt "" 0.0 lay)
  )
(princ)
)

 Need to set text size, style and possibly set the variable Angbase or change angle, as well as set a layer for the layer name.

0 Likes
Message 12 of 12

angelteh86
Enthusiast
Enthusiast

Hi... thanks for the suggestion but I am "coding-illiterate". I only know how to use them but I do not know how to code/write the lisp. I am relying on expert/specialist like your goodself to help me with it... 😭

0 Likes