Jump to content

How to show parent object of the field ?


Recommended Posts

Posted

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.

Posted

Welcome to CADTutor .

 

Have a look at the following THREAD that should help you with what you are after and my program should work if your Operating System is 32 .

 

Good luck .

Posted
Thank you for the recommendation Tharwat :thumbsup:

My pleasure :)

 

Undoubtedly yours is really fantastic .

Posted

It works!!!

 

Thanks a lot!!

 

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

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

Posted

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

Posted

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.

fieldobject.lsp

FieldObjects.lsp

Posted

Hi Manila,

 

Try changing lines 139-140 from:

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

to:

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

 

Lee

Posted

Hi Lee,

 

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

 

As always, sincere thanks for helping me.

 

Cheers. :beer:

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