News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

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.

Spacing - Is there a better way

Started by littleman, July 01, 2025, 01:37:58 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

littleman

Attached is a what I have done the hard way 1 keystroke at a time whether it be number or text.
Is there a way to type and hit enter key or something and have it space from 1 to 30 in 2" steps.
I had made small hash marks and typed in one letter and hit enter then move to the next mark and
type the next letter or number and so on until I got the 1-30 or A through R.

Thanks,
Doug
Using 21.2 32bit TC Platinum

Alvin Gregorio

#1
There's a few ways to make this task faster and simpler.
One way:

>Use the Architectural Marker tool (so that you get sequential numbering with each click; this only works for the numbers, not the letters)
>Just sort of place them sort of where they should go, but ensuring the first and last are at your desired distance apart from one another.
>Select them all, then use an Align Tool
>While they're still selected, use a Distribute Tool
_______
If this is something you do often, perhaps a PPM script would be the way to go.  If we can figure out a way to get sequential letters within it.
_____
I might work on coming up with other suggestions.

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)

littleman

Alvin,


Thanks for the info I am going to try it today.

Doug

nikkipollard

Quote from: Alvin Gregorio on July 01, 2025, 07:25:52 PMThere's a few ways to make this task faster and simpler.
One way:

>Use the Architectural Marker tool (so that you get sequential numbering with each click; this only works for the numbers, not the letters)
>Just sort of place them sort of where they should go, but ensuring the first and last are at your desired distance apart from one another.
>Select them all, then use an Align Tool
>While they're still selected, use a Distribute Tool
_______
If this is something you do often, perhaps a PPM script would be the way to go.  If we can figure out a way to get sequential letters within it.
_____
I might work on coming up with other suggestions.


Years ago I came up with a way to do sequential lettering. I am not sure if it was removed from the forum though I will take a look.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

Have you tried the architectural grid tool?
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

See the attached drawing for examples of the 3 methods available in TC.

1 the AEC grid found in the architectural tools - I think this is what you need.

2 Property set definitions and entity marks - kind of painful to set up - but they can be a useful tool to learn.

3 ppms - scripted solution. I used this before the aec grid was introduced.

https://docs.imsidesign.com/projects/TurboCAD-2021/turbocad-2021-user-guide-publication/Architecture-Tools/AEC-Grid/

https://turbocaddoc.atlassian.net/wiki/spaces/TC21UG/pages/14319670/Property+Set+Definitions

https://turbocaddoc.atlassian.net/wiki/spaces/TC2016UG/pages/43810967/Parametric+Part+Script+Editing



Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Quote from: nikkipollard on July 02, 2025, 10:02:44 PMSee the attached drawing for examples of the 3 methods available in TC.

1 the AEC grid found in the architectural tools - I think this is what you need.

2 Property set definitions and entity marks - kind of painful to set up - but they can be a useful tool to learn.

3 ppms - scripted solution. I used this before the aec grid was introduced.
Those are good methods, Nikki.
Thanks for working those out and sharing them with us.

I always need a refresher before I start PPM scripting.  Would you be willing to share that script with us
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)

nikkipollard

#7
Quote from: Alvin Gregorio on July 03, 2025, 04:07:52 AM
Quote from: nikkipollard on July 02, 2025, 10:02:44 PMSee the attached drawing for examples of the 3 methods available in TC.

1 the AEC grid found in the architectural tools - I think this is what you need.

2 Property set definitions and entity marks - kind of painful to set up - but they can be a useful tool to learn.

3 ppms - scripted solution. I used this before the aec grid was introduced.
Those are good methods, Nikki.
Thanks for working those out and sharing them with us.

I always need a refresher before I start PPM scripting.  Would you be willing to share that script with us

Alvin I presume you only want to see how I do sequential lettering in ppms, because the AEC grid pretty much does what Little Man wants.
I will put a simplified version in the ppm section so that this thread isn't too overwhelming.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

Attached shows it using the AEC Grid.
That's a good way to go.
Unfortunately for Doug, I believe that tool was developed into TurboCAD around version 2021, a few years later than Doug's 21.2
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)

murray dickinson

Transform recorder might be able to be used.  Record the transformation (which can be compound, including translation, rotation, scale and generic) with all of the letters as the selection set.  Drop the first from the selection, replay the recorded actions with the remaining selections, drop the next from the selection and so on.   

nikkipollard

#10
My apologies I misread your version of Turbocad.
I shared my parametric aec grid with Alvin - He wanted to see how I scripted one.
Unfortunately it is scripted for my needs, so it is metric and uses my default standards.
But you can edit the scripts to suit your needs.
The parameters might be a bit confusing.
I made it possible to create six groups of (maximum) 15 gridlines each. Each group can have a different dimension.
So that there would be the ability to include varying dimensions in the grid.

https://forums.turbocad.com/index.php?topic=32215.0





Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

#11
I forgot about the text renumbering tool - was that available in version 21?
Use the copy tools to copy the text and use the text renumber tool.
(that is how I do this in Auto cad)

You can also use a script in the macro recorder
add the first number using single line text in Turbocad.

Copy the following code to the macro recorder
Select the number in TC and run the script

Option Explicit
                                                             
'====================================================================
   '# DESCRIPTION
   
' Draws separate numbered objects
' Select the first text item and run the script
'=====================================================================
Dim tcDraw

Call Main

  Set tcDraw = Nothing
'_______________________________________________________________________________
Sub Main
     
 Set tcDraw = ActiveDrawing

 If Selection.Count = 0 Then
MsgBox "Please Select a text object before Running the script"
Exit Sub
 End If

Dim gfx : Set gfx = Selection(0)
Dim Gfc
If gfx.Type <> "TEXT" Then Exit Sub  ' The Script only works with text

dim dir
dir = InputBox("Set Direction" & Vbcrlf & "1 Across" & Vbcrlf & "2 Down" & Vbcrlf & "3 Up",,1)
If dir = 0 Then Exit Sub ' User Cancelled

Dim Words, NewWords
Words = gfx.Properties.Item("Info").Value

Dim Spacing
Spacing = InputBox("Text Spacing",,200)
  If Spacing = 0 Then Exit Sub ' User Cancelled
Dim Num

Num = InputBox("Quantity",,10)
  If Num = 0 Then Exit Sub ' User Cancelled
Dim ix,i
If Not IsNumeric(Words) Then
ix = Asc(Words)
Else
ix = Cint(Words)

End If
Dim dx,dy

Select Case dir
Case 1   'Across
dx = Spacing
dy = 0

Case 2    'Down
dx = 0
dy = - Spacing

Case 3    'Up
dx = 0
dy = Spacing

End Select

For i = 1 to Num - 1
ix = ix+1
Set Gfc = gfx.Duplicate
If Not IsNumeric(Words) Then
NewWords = chr(ix)
Else
NewWords = Cstr(ix)
End If

Call Gfc.MoveRelative(dx*i,dy*i,0)
Gfc.Properties.Item("Info").Value = NewWords
Gfc.Update
Gfc.Draw
Next
 tcDraw.ActiveView.Refresh
Set gfx = Nothing
Set Gfc = Nothing
End Sub




Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

#12
Quote from: nikkipollard on July 06, 2025, 06:54:04 AMYou can also use a script in the macro recorder
add the first number using single line text in Turbocad.
Well... that just works fantastically.

Good job on this, Nikki
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)