ACADuser Posted May 31, 2016 Share Posted May 31, 2016 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 Link to comment Share on other sites More sharing options...
ACADuser Posted May 31, 2016 Author Share Posted May 31, 2016 If I change the Text Macro to Referenced Object it works in the text but not in the Label. Link to comment Share on other sites More sharing options...
Joe_Carrick Posted May 31, 2016 Share Posted May 31, 2016 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. Link to comment Share on other sites More sharing options...
ACADuser Posted May 31, 2016 Author Share Posted May 31, 2016 Thanks Joe but not working in the text, works in the label. Link to comment Share on other sites More sharing options...
Joe_Carrick Posted May 31, 2016 Share Posted May 31, 2016 sorry Alan, My mistake - it should be: referenced ? obj = referenced : obj = owner obj.surface_area.round Link to comment Share on other sites More sharing options...
ACADuser Posted May 31, 2016 Author Share Posted May 31, 2016 That's it. Thanks Joe..... Link to comment Share on other sites More sharing options...
michaelgia Posted May 31, 2016 Share Posted May 31, 2016 That's really cool but why do I lose my red default pitch indicated arrow, when I add that surface area macro? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now