News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Fixed Dimensions

Started by Guynmt, December 31, 2014, 05:55:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guynmt

I do shop drawings for several cabinet shops. I typically drawing the room elevations in 3/8" scale. Then if needed, a larger detail drawing on the same sheet. The problem is after changing the "units of measurement" at least one of the drawings is no longer correct. Support has told me the only way to correct this is to individually change the dimensions to "fixed". I will usually leave the page setup to 3/8" scale and change the details to fixed. This can be very time consuming. One sheet I counted 32 dimensions to change.
Does anybody know of a way to do them in like a group or something?

Thanks and have a Happy New Year Everybody!! 
DesignCAD user since the 5 1/4" Days. Still have them!

Rob S

#1
What version are you currently using? 

ON earlier versions, applying fixed text to multiple dimensions using the info box finger also applied the text value of the source dimension, so rather useless in this case.  V24 has a tool to apply specific selected properties, I'm just going to see if that would work

ps - no luck with that so far....


However, I think there are some better ways to do this:

Most recent versions have a feature called "Units multiplier - in the info box under units and tolerance.   This allows you to have "real, live" scaleable dimensions in two or more different units on the same drawing.  Once applied to a dimension, you can copy this property to multiple other dimensions using the "same-as" finger.   You can draw the detail at 1:1, then select it and re-scale it to the desired display size and then add the dimensions.  Not easy to edit, as you need to draw in scaled units, or temporarily change your drawing units, then change back to have correct dimensions.

Another way involves using paperspace with "viewports" displaying parts of the same drawing at different scales.  Most likely too complicated for what you want, but keep it in mind if ever it might be useful.  It has the benefit that you can draw everything at true 1:1 units, dimension as such, and display at different scales on the printout.   Disadvantage is you might have to use smaller text sizes for the items to be displayed at larger scale


Failing that, it should be possible to write a macro which applies fixed text to a selected group of dimensions.  I think there are some guys on the forum here who scan all posts for the word "macro" and immediately start writing!!!!
User since forever

JJG

Quote from: Rob S on December 31, 2014, 07:41:07 AM
...
Failing that, it should be possible to write a macro which applies fixed text to a selected group of dimensions.  I think there are some guys on the forum here who scan all posts for the word "macro" and immediately start writing!!!!
Don't work (sys parameter is read only).
Other simple way : select the desired dimensions, then explode them to fix them.  (Edit/selection Edit/Convert.../Explode)

Rob S


Hmmm, not so good news from JJG, to bad about that.

Be aware that exploding the dimensions (quick and easy) leaves you with individual lines arrows and text, and not a single selectable dimension entity.
User since forever

Guynmt

Thanks, I have done the exploding before. I'm using regular Arial font and the text comes out almost unreadable and very different looking than what is on the rest of the sheet.

And selecting more than one at a time does not work either. At least in v23. I haven't tried it in v24 yet.

I have asked Kevin if they would consider it in a future update though.
DesignCAD user since the 5 1/4" Days. Still have them!

Dr PR

Guynmt,

I use a technique similar to what Rob S described, but with one small difference.

1. Copy the original drawing parts for the Detail, or make a new Detail drawing at the same scale as the original drawing.

2. Put in the desired dimensions at the original scale.

3. Scale the detail to the desired size. This makes the dimensions too large by an amount equal to the scale multiplier.

If you scale 4x the dimensions will be four times too large.

4. Now select the 4X dimension and change the "Units Multiplier" to 0.25. This brings the dimension value back to the original value in the unscaled drawing.

So, if you scale up the Detail by Nx set the "Units Multiplier" to 1/N.

5. Now select all Nx scale Detail dimensions (use the "Selection Filter" to select dimensions only), open the Info Box (CTRL I), and use the "Same As" finger to make the "Units Multipliers" the same as the modified dimensions in the first Detail.

****

This does not require changing "Drawing Units" for the entire drawing.

I have used this in drawings with more than a thousand dimensions to set the dimension "Units Multipliers" in dozens of Details.

You will have to do this for each different scale Detail.

Phil
DesignCAD user since 1987

Rob S

Agreed almost totally with the above more detailed explanation.

The only time you might still need to change drawing units would be for subsequently editing the up-scaled details

I suppose you could also re-scale the details you need to edit back to "real" size, perform the edits at 1:1, and then scale the edited detail back up again.
User since forever

samdavo

#7
Quote from: Guynmt on December 31, 2014, 08:45:01 AM
Thanks, I have done the exploding before. I'm using regular Arial font and the text comes out almost unreadable and very different looking than what is on the rest of the sheet.

And selecting more than one at a time does not work either. At least in v23. I haven't tried it in v24 yet.

Guy
I assume you are using 2D mode.  I also explode dimensions (combined with zooming in, reducing the size of text size of dimensions, adding all dimensions, explode, and scale the entire detail up).    I use V22.1 by the way.

But as for the different looking text after exploding (bolder) ...
I have found that the reason for this is
a) that you are using True Type Font (as most would use, but you won't have this problem with vector font such as Simplex_Win)
b) that the explosion means it has become 3D text (whereas most other text in a 2D drawing would be 2D).

And the best way to convert this to 2D text is to use this macro (from Kevan/DT) called Fix3DText (rev b done by me)

'Fix3DTextb.d3m
'Selects all 3D text (on editable layers) and converts it to 2D text

'Clear the selection (if any)
Sys(80) = 0

' Select 3D Text (only works on visible, editable layers)
>EntitySelect
{
  <Type 3
}

' If any text selected, convert it to 2D text
If Sys(80) > 0 Then
  >ConvertText
  {
  }
End If


' Clear the selection
Sys(80) = 0


'>regenerateall
'{
'}

cheers
sam

PS But as I infer above, the other way around this is to use Vector Font (a trick I picked up on the forum).

Rob S

Explode for me using V23 works on any number of selected dimensions.   It does change the text font as you mention, so:

After exploding, use the selection filter to select all the 3D text, and go "edit, selection edit, convert, text convert" and you have all your text back in the original font.

I still think the dimension multiplier is a better way to work it out.
User since forever

samdavo

Quote from: Rob S on December 31, 2014, 03:44:08 PM
I still think the dimension multiplier is a better way to work it out.
Rob
You are undoubtedly right :)
but you know what they say about old dogs and new tricks.
cheers
sam

Guynmt

Thanks, Sam

I downloaded the macro you had in your post. By locking the drawing I don't want to change and exploding the other, then using the macro, it's PERFECT and will save me a ton of time!!!

Thanks again, Bob
DesignCAD user since the 5 1/4" Days. Still have them!

samdavo

#11
Quote from: Guynmt on January 02, 2015, 05:58:33 AM
By locking the drawing I don't want to change and exploding the other, then using the macro, it's PERFECT ...
Guy/Bob
As you say, if you leave a dimension unexploded, the text is "ok" - neither 2D nor 3D - protected from change, and no need to change.

At the outset I will say that, although I have tried, the following amendment (alleged improvement) is beyond me ...

Some might argue that an improvement to that macro would be if
a) the option was available to only change the 3D text within a selection,  (although I personally can't think why lol)

rather than
b) changing ALL 3D text in the drawing i.e. to 2D.

Certainly only b) is available with the macro I posted.  (which is how I use it - when in 2D drawings).

I tried, but found that ConvertText (and/or changing entity 3 to entity 13 etc) can be pretty tricky to use in macros, i.e. 2D becomes 3D, 3D becomes 2D, text sometimes rotates and can become right justified rather than centre- or left-justified etc etc. 

One way to achieve option a) is to put any 3D text that you don't want changed on a locked layer.

Another way to achieve option a) ...  It is worth noting that Rob S's trick could be used in such situations  - i.e. going to Selection Filter\Entities\3D Text,   choosing all the 3D text in the dragged-selection-area, and converting with Edit\Selection Edit\Convert\Text Convert.
(2 cents)
cheers

PS I originally got into this topic in the old days when drawings imported from Autocad used to be a bit unpredictable with respect to text styles and orientations etc.

JJG

Ok, guys, I'm back.

When I said "Don't work (sys parameter is read only).
Other simple way : select the desired dimensions, then explode them to fix them.  (Edit/selection Edit/Convert.../Explode)"
in my last post, it was just an idea ...
My side, I use the following macro, that I use to duplicate a selection, to apply to it a scaling factor and correct in the same time the scale factor of hatches and dimensions which are in the selection ; also, I don't explode the dimensions, just give them a multiplier automatically through the macro.
In addition, the reference points of the selection are kept identical to the original.
It's very useful for creating scaled details or downscaling of a part of the drawing for printing (for those who don't like the paper space).

Note: working through groups and "unproper solid" without having previosly to "unmount" them ;
is also working on the hatches contained in blocks or symbols without having to break them ;
however, does not work on dimensions contained in blocks or symbols: in this case,
it's necessary to break the blocks or symbols before running the command.

enjoy !


'This macro is used to duplicate a selection, to apply to it
'a scaling factor and correct in the same time the scale factor of hatches
'and dimensions which are in the selection ;
'In addition, the reference points of the selection are kept identical to the original.
'very useful for creating scaled details or downscaling of a part of the drawing.

'Note: working through groups and "unproper solid" without having previosly to "unmount" them ;
'is also working on the hatches contained in blocks or symbols without having to break them ;
'however, does not work on dimensions contained in blocks or symbols: in this case,
'it's necessary to break the blocks or symbols before running the command.

Alias H_SCALE &H0803
Alias D_UNITS &H0A1C
Alias D_MULTIPLIER &H0A1D

begin:
If sys(80)<1 then goto fin

INPUT "Zoom Factor   (Esc to quit)", ZoomF
IF sys(999) THEN End 'stop macro if Esc or cancel

sys(996) = 1 'stop macro if Esc or cancel
sys(36)=2 'super silent mode on

a=sys(242) 'store select when created statment
sys(242)=0 'do not select when created

Sx=sys(190)  'x1 coordinate of the selection
Sy=sys(191)  'y1 coordinate of the selection
Sz=sys(202)  'z1 coordinate of the selection

Duplic: 'duplicate with selected when created and update the handles
>SelectDuplicate
{
  <PointXYZ [Sx,Sy,Sz]
  <Type 1
  <Reference 0
  }

>SelectScaleOrtho
{
  <ZoomFactor [ZoomF]
  }

sys(36)=0 'super silent mode off

>Move
{
  <MaxPoints 1
  <incomplete
  }

sys(242)=a 'restore initial statment of selected when created

sys(36)=2 'super silent mode on

Count=Sys(80) 'for ProgressionBar

For t=1 to Sys(80)
getselect t,j
Entity j
'ProgressionBar
if maxi<Count then maxi=Count
Current=Count
Query H_SCALE, f
g=f*(ZoomF)
if ZoomF>1 then g=f
Change H_SCALE, g
Change D_UNITS, -1
Query D_MULTIPLIER, d
'mes$=d
'message mes$
x=d/ZoomF
Change D_MULTIPLIER, x
update
Count=Count-1
pr=int(((maxi-current)*100)/maxi)
print STRING$(pr, "#")
next j

sys(36)=0 'super silent mode off

>redraw
{
}

End.

fin:
inf$="please select something and then restart the macro"
message inf$
End.

Rob S

Amazing!!!  When you're back, you're back.  Works a treat in V24.1.

When it finished, it looked like one of the dims had not converted, but a redraw fixed it right up.

You've been holding out on us JJG, and I think we are now deeply indebted to you.
User since forever

JJG

Rob S,

This macro I use since the years the alias appeared (v 15 ?)

to solve the redraw , replace
>redraw
{
}
by
REGEN

in the above code.
;)