Like I said all seems to work fine, just want to make sure I'm using "IF" or the correct conditional for the job.

This will be used on two of the same title blocks that are in different drawings. One uses Paperspace while the other uses Modelspace. So, dependent on which title block the user is in, make the adjustments to the titleline tag widths as required by the standard.

I wouldn't use (if) this time... If blocks are in Paper Space or Model Space, DXF group code 410 determines correct choice of selected entities that reside active current layout specification (space)... So something like this is adequate for all kind of active space situations :

Yes Lee, that is one of the reasons I asked. I couldn't see that I was doing anything special between the two branches but couldn't get it to work with just the simple line. Which was the original code Michael Puckett gave me.

I started out with your suggestion and it worked fine under certain circumstances. As I mention above, I kept getting the Divide by Zero error with your suggestion too. I reverted back to my "IF" statement approach and was able to get it to work in a real world application for both title blocks.

I'm sure there's a method for addressing the "divide by zero" using your method, but it is out of my brain's reach.

Lee:I don't know if that was the correct approach add the extra setq "max width1" but it seemed to work appropriately in both title blocks.

You've setq "wid" to 5.25...then saying "IF" dimscale is greater than 0 multiply "wid" times the current dimscale.

Exactly.

I've also fixed the titleline selection, since, in your original code, you were supplying this as a list to the mpx-restrict-attrib-widths function and so this would never have had an effect on which attributes were modified by the function, regardless of the user selection.