Content: Macro request.


para-CAD
 Share

Recommended Posts

16 minutes ago, Joe_Carrick said:

%box_scale.delete(' ').gsub('=',' = ').gsub('ft','\'').gsub('in','"')%-0"

 

I might suggest some more concise, slightly faster, and less lossy coding to get the same end result:

%box_scale.sub(' ft','\'').sub(' in','"')%-0"

 

That being said, neither of these would handle any edge cases very well and would only work for very basic imperial scales.

  • Like 1
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