Why won't text macro execute?


KristjanM
 Share

Recommended Posts

I have a rectangle with a label - macro values for perimeter and area plus two macros for perimeter and area using number formatter. All values display correctly. In a text box, I place exactly the same text as in the label. The two built in macros for perimeter and area display but the number format macros don't work. Can this actually work? Different syntax in the text box?

Macro in Text Box.jpg

Link to comment
Share on other sites

4 minutes ago, KristjanM said:

I have a rectangle with a label - macro values for perimeter and area plus two macros for perimeter and area using number formatter. All values display correctly. In a text box, I place exactly the same text as in the label. The two built in macros for perimeter and area display but the number format macros don't work. Can this actually work? Different syntax in the text box?

Macro in Text Box.jpg

youd have to script in logic for owner vs referenced or simply make a new macro that is referenced, or put in %referenced.area%

Link to comment
Share on other sites

So at the beginning of the macros add this:

 

  • referenced ? obj=referenced : obj=owner

then add 

  • obj.

in front of each of the lines that are displaying the data

 

That will make the macros work for whichever way they are being used.

 

You might want to look at my template in https://chieftalk.chiefarchitect.com/topic/39977-macro-coding-template/

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share