ACADuser

User Macro in Text?

Recommended Posts

I created a Roof Surface macro that works in the Roof label but not in a text object.

See plan attached. What am I doing wrong?

Roof Macro.plan

Share this post


Link to post
Share on other sites

If I change the Text Macro to Referenced Object it works in the text but not in the Label.

 

post-2435-0-39082900-1464713074_thumb.jpg

Share this post


Link to post
Share on other sites

Alan,

 

If you use a context of referenced it will only work for the text object with arrow.  If you use a context of owner it will only work for labels.

 

Try this - it should work for both labels and referenced:

 

referenced ? obj = referenced : obj = owner

owner.surface_area.round

 

make the macro context = none

 

Essentially, the first line allows the macro to be in the label or in a text object with arrow. 

Share this post


Link to post
Share on other sites

Thanks Joe but not working in the text, works in the label.

Share this post


Link to post
Share on other sites

sorry Alan,

 

My mistake - it should be:

 

referenced ? obj = referenced : obj = owner

obj.surface_area.round

Share this post


Link to post
Share on other sites

That's really cool but why do I lose my red default pitch indicated arrow, when I add that surface area macro?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Member Statistics

    27494
    Total Members
    6254
    Most Online
    theCADStudio
    Newest Member
    theCADStudio
    Joined