Jump to content

How to show parent object of the field ?

Flora Wong

Recommended Posts

I am creating a Block with attribute "X" in which X is a field calling the attribute in my section mark block. Is there any mean to show where X is referencing?


I know there is a routine Showfieldlink.lsp which draws to the parent object. But the routine does not work with attribute.

Link to comment
Share on other sites

It works!!!


Thanks a lot!!


I have been search this for a couple of time. Thanks very much for your help !!


All credits go to Lee for the nice work and you 'll learn a lot from that program if you are interested in learning AutoLISP for sure .

Link to comment
Share on other sites

Thanks for all of you for the reply and help~


I am learning LISP in my comapnay =]


I am trying the object field lsp.

I have a field in multileader but I could not locate its parent object ...>

Link to comment
Share on other sites

Hi Lee. If you are reading this of course, I wonder if is possible to combine two of your own very good codes. The codes are fieldobject.lsp and fieldobjects.lsp


I like the idea of having the singular field object highlighted as in the fieldobject lisp as well as the full range of the field boxed as in the fieldobjects lisp.

I know that within the fieldobject lisp this line highlights the source of the field: -


(redraw en 3)


I tried inserting a line similar to this in the fieldobjects code but I couldn't get it to work.

I am not even sure if this is a feasible solution.


Not a big deal as I can use the codes one after the other, but I did wonder if it was as simple as inserting one line of code.



Link to comment
Share on other sites

Hi Manila,


Try changing lines 139-140 from:

                    (lambda ( a )
                       (vla-getboundingbox (vlax-ename->vla-object a) 'b 'c)


                    (lambda ( a )
                       (redraw a 3)
                       (vla-getboundingbox (vlax-ename->vla-object a) 'b 'c)



Link to comment
Share on other sites

Hi Lee,


The amendment works perfectly for my particular needs. You made my day. :D


As always, sincere thanks for helping me.


Cheers. :beer:

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.

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