Jump to content

Modification to a Lee Mac Auto-labeling Lisp


eyeofnewt555

Recommended Posts

Hey guys,

 

So thanks to Lee Mac, I've got this stellar labeling LISP that works for a variety of situations. I need help throwing one more situation into the mix.

 

I'd like it to have different behavior when labeling the block named "Symbol - Tree CRZ".

Within this block, there is a User Parameter called "PercentImpacted" that uses an expression based on other user parameters to return a specific value.

 

For this block, I need the leader text to say: "[Value from PercentImpacted parameter to 1 decimal place] + "% CRZ"

 

Ex:

 

 

I'd like the leader to work how the hatch component of the LISP works, wherein it asks for the user to specify the arrowhead location, rather than auto-starting at the block insertion point. And it should still allow for pickfirst action like the block labeling component does.

 

 

Mega bonus points if there's a way to make the value in the leader a field that would update if the value of the user parameter changed.

 

If pulling data directly from user parameters like this isn't possible, I can add an attribute that pulls the value from the parameter, and then the label could pull from the attribute.

 

And commented code would would be awesome so I can unravel what does what. Trying to learn, slowly...

Edited by eyeofnewt555
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...