News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Make dimension text value equal a formula result

Started by Orion20036, February 06, 2015, 10:11:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Orion20036

Now this is a strange one, but is it possible any way to make the value of a dimensions text value equal to the result of a formula. In other words is there anyway to create a variable in the calculator palette and then make the dimension text equal to it by typing the variable name in the dimension text brackets, I have tried with the existing left right arrow brackets but am wondering if any other combination of brackets would make it possible. The reason for asking this question, it would be possible to put a dimension for a scaled variant of the length like lots of model makers use. If you dimension in paperspace over a viewport, the dim scale is set to the scale of the viewport and cannot be modified but if a formula could be used in the text it would be possible to divide or multiply the value of the dimension text.

So two possibilities:-

(1) being able to set the dim text value to a variable name in the calculator palette.

(2) being able to apply a formula that will multiply or divide the dim text value direct into the dim text value.


Hope this is possible some way as it would be a great advantage, maybe even a script that can iterate through the dims multiplying or dividing the dim text values.


Food for thought!.

Orion20036

Just found an interesting old post that makes me think that one of the methods I have described is possible, some amazing snippets on the forum that vanish into the wilderness.


Here is the link to the post.

http://forums.doublecad.com/index.php?topic=1801.0

if you have seen any other related posts please post a link to them on this thread.

Thank You!.


Henry Hubich

You can do that if the object being dimensioned is constrained.

Henry H

Orion20036

Quote from: Henry Hubich on February 07, 2015, 08:45:57 AM
You can do that if the object being dimensioned is constrained.

Henry H

I agree Henry, and it does appear to be possible with constrained dims but the physical dimension would change also, what I am trying to achieve is an automatic method of scaling down or scaling up the dim text value which would in effect override the real dimension and put a scaled up or scaled down dimension value instead. I tried to modify the dim scale on dims over a viewport but it locks the value to the viewport scale.

I have a number of models that I have created over a period and don't want to scale them up or down, so wanted to kid the system into modifying the real dim text value to a scaled up or scaled down value.

At present I can alter the dim scale in model space to adjust the dim value , but want to do the same in paper space as I will be creating multiple size sheets with the dimensions and obviously it is easier to have a dim and text style for every sheet size.

I even tried altering the model space scale to see if the effect carries over to paperspace dim values but have not had any success yet.


Henry Hubich

"...what I am trying to achieve is an automatic method of scaling down or scaling up the dim text value which would in effect override the real dimension and put a scaled up or scaled down dimension value instead."

Ah.

Henry H

Cliff2

#5
Try unchecking associative dimensioning and just type in the text you want.
Edit: Or apply the answer of the formula to the units/ tolerances scale factor.

Orion20036

I will have a look at the Unit/tolerances scale Cliff2, possible it might work.

Orion20036

Here is another post from the forum which explains a similar requirement for a scale model builder.

http://forums.turbocad.com/index.php?topic=6483.0

Alvin Gregorio

Quote from: Orion20036 on February 07, 2015, 01:33:41 PM
Here is another post from the forum which explains a similar requirement for a scale model builder.

http://forums.turbocad.com/index.php?topic=6483.0

After reading that Topic-thread, I see what you are after Michael.  It's sort of the opposite of what most people are wanting, so it took even the experts a few queries and responses to grasp it.

You want the Dimension to be Associative, but associative to the elements in Paperspace Viewports, not the elements in Modelspace.
Is that correct?

That's a toughie... with TurboCAD's current possibilities.

But I can comprehend what you want, and why you want it.   ~Alvin


[I wonder if going the Drafting Palette route might serve something up.]
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Any chance you'd be okay with going the External Reference route.

Insert the Drawing into another Drawing, as an XRef; scale the XRef in Modelspace; then create the Viewports in Paperspace.
Then, you have multiple Drawings, if you want, at different scales, all referencing the same XRef drawing file.
Associative Dimensions would work in Paperspaces.

Not what you're looking for..., I know...
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Orion20036

I will have a look at the Xref Idea Alvin as it may have some benefits.

I think their may be a workaround with the scale in tenths or multiples of ten by setting for example the paper space units to cm instead of mm which would reduce the dim units by ten and then not appending the main units which would have been cm but appending with alternative units which could be mm.

A few possiblities to explore yet, the main problem is not being able to alter the paper space dim scale value as it defaults to the viewport scale and cannot be overridden.

Alvin Gregorio

#11
Because I-- like most folks, I assume-- have always wanted the Paperspace-inserted Dimensions to be associative to the Objects in Modelspace, I have never noticed this limitation of TurboCAD.

Even if we un-check the Associative option, it still stays associative to the Objects in Modelspace.  Even if we change the Scale in Units/Tolerance, "Append Units" checked or not.
That is a limitation, in my opinion.   Not a Bug, but a limitation.  Almost seems like an oversight.

What if I wanted to send a dimensioned Drawing-- via Paperspaces-- of a house to an Architectural scale-modeler.  Is she going to have to do all the math?  Or am I going to use scaled-Dimensions in Modelspace?

There ought to be a way around this... an option somewhere to not have the Dimensions in Paperspace state the dimension of the Objects in Modelspace.  Behave as it does just before we place that last click, defining the location of the Dimension Line.

I don't know if we need the ability to insert a formula for the Dimension dimension text.  But an ability to set Dimensions to be associative to Viewport/Paperspace Objects would be good.

______
Again, there's a little hunch in me that maybe using Drafting Palette Objects would attend to this.

~Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Orion20036

#12
I agree Alvin it is a limitation and not a bug, and it is the way it should work but it would have great benefits if the the viewport dim scale could be overridden to encompass people who create scale models out of models that are not drawn to scale.

I could scale down a lot of my models but the problem is some of them have had quite extensive booleans  and other operations carried out on them and chamfers/radiuses on intersecting circular objects had a problem with the faceter upto version 19 which I use so some of the models create errors when scaled down.

I think with what has been discussed I will probably find a way around it, after trying out the various methods discussed, I will also look at the macro script possibility to grab the value of a dim and multiply or divide it and replace the dim value with the new value.


Many thanks for the input everyone, it is quite interesting what can be worked around!.

Alvin Gregorio

Just tried using Drafting Palette Objects in my version-11-Pro.

It works pretty good, except:  If we change the Scale of the Drafting Object insertion, the Dimensions don't go with it... don't associate, even if we checked the option "Associative ..." when inserting it.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Orion20036

Just off to try some of the methods discussed, I will let you know how I got on tomorrow!.

Dean

#15
Hi Michael,
There are a few ways of doing this but a quick way that might work >
Modify the unit table > multiply the units
I was working in “ so a viewport 1:4 scale is 25.4x4=101.6
I used alt units and dimensions stay associative.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Orion20036

Many thanks for your feedback Dean and everyone else,I will add it to the list of methods to try. I have not had the chance to try all the ideas out yet as I have been setting up quite a few text and dimension styles which does take a while, I also got carried off at a tangent into text or font heights and the actual physical height of the fonts which is often only two thirds the size of the physical text size.

I will be back with some replies soon.

Thank You !.

Orion20036

Well, I have tried around the clock for the last two days and still no go, it appears to be impossible to dimension  over a viewport and override the scale settings of the model in model space.

It is also not possible to modify a dim if it has been created over a viewport even if the viewport is turned off and it is also not possible to copy and past the dimensions into another drawing or paper space as the viewport dim scale follows the dim everywhere it goes and also makes it  impossible to edit the dim text without exploding.

Before I started to do the dimensioning in paper space I did manage to kid the system in model space but every paper space sheet size needs a different dim style and it becomes hard work changing all the dim styles in model space every time you render  the viewports in different paper space sheets.

Deans solution works but it also puts the alternative units at the end of the text as well,but I am having a look to see if the alternative units suffix can be a backspace chr() to delete the A or u that follows the dimension text.

It is definitely not an easy job unless you can set up a custom scaled unit in the .ini file then do not append the units but add a suffix like mm or inches.


I think that a custom unit in the ini file would be the best option as you could set a custom scaled unit for each of the paper space sheet sizes. Obviously you would need to edit the ini periodically to accommodate more different or varying scaled units.

Any more suggestions appreciated, especially any for creating custom scaled units in the ini file.

Thank you all for your assistance!.


Cliff2

It is possible if you explode the dimension, then select the multiline text / edit tool and type in the dimension you want. Might be too much of a
hassle for you, but if you really need it?