News:

When replying to a specific statement be sure to quote the previous post.

Main Menu

changing dimensions of many circles in one time

Started by Régis Fraisse, December 24, 2019, 08:47:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Régis Fraisse

 - On my drawing there are 1000 circles diameter 10
- the custumer calls me, he want circles diameter 11

My wish is to change them in one time
1.  I think of it before and put them on a special layer ; I select by layer to select the circles
2.  "Select by Similar" can select circles (and rectangles, lines, ...) that have exactly the same geometry
And a magic tool can change the diameter of all
since v3,  now v18DL and v2020PL on Windows 10 Pro 64 ; 32 Gb RAM ; i7 processor @ 2.7 GHz

Alvin Gregorio

Format the first 10mm dia. circle as Block before copying 1000.

Customer calls for change-- Edit Contents of Block and... presto!, like magic, all 1000 are 11mm diameter.

and-- smaller file size and more responsive drawing, because those 1000 are Blocks.
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

#2
Torfinn might suggest-- "Make PPM!".
After the customer calls, change the script's default Radius, click on the "Update Parametric Part",... and presto!

But I doubt that many want to get into that, even though it turns out that it is quite simple and easy.  PPM feature only available in certain editions.
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)

Torfinn

Hi Alvin

Nope, not in this case :)
Thats the boring thing with ppm's, if you want to change them after insert, then you will need to do it 1 by 1 ;)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

#4
Quote from: Torfinn on December 24, 2019, 09:41:47 AM
Hi Alvin

Nope, not in this case :)
Thats the boring thing with ppm's, if you want to change them after insert, then you will need to do it 1 by 1 ;)

Torfinn

Oh.  Multiple copies in the Drawing Space do not Update?

I guess the Copy would have to be done in the PPM script also.

Or-- Could always make the first PPM a Block, then multi-Copy that, I guess.  When the customer calls with the change request, Edit Contents of the Block and change the Radius Parameter in the Selection Info Palette.
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)

Torfinn

A Block is the most easy, make no sense to insert a circle by ppm.
And if there is many similar Objects to put out the ppm will be very slow, as a ppm will draw and Place them out 1 by 1.
I did see it in my grating ppm, 10 000 holes in a plate = 35 min, and you will not want to move it in any render mode ;)

But i'm pretty sure Andy H made a Macro that changed everything in 1 go, you could try looking for it, early this year i believe

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

John R

#6

  • Activate the "Edit tool".
  • Drag a selection window around the Circles or pick individually while holding the "Shift" key.
  • Tab to the Radius field in the Inspector Bar and enter the radius value you want.
  • Enter.
All selected Circles should change to the new size.

John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Henry Hubich

Another method is described in the Tips and Tricks thread, "Resizing a set of objects."

Henry H

Régis Fraisse

Thank you all,
I never use blocks, now i think that is a mistake, i will reconsider that.
John, the edit tool was my first idea, but I only tried to move the blue point of a circle, that changes only this circle.
since v3,  now v18DL and v2020PL on Windows 10 Pro 64 ; 32 Gb RAM ; i7 processor @ 2.7 GHz

murray dickinson

The radius/diameter of multiple circles and/or arcs can be changed or harmonised simultaneously provided they're on the same WP by box-selecting them for node edit/edit tool, and entering the size you want in the radius box on the inspector bar.   

Jeff_in_90620

Quote from: murray dickinson on November 29, 2021, 05:32:29 AM
... provided they're on the same WP by box-selecting them for node edit/edit tool, and entering the size you want in the radius box on the inspector bar.

I'm not following, because this is what I see.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

murray dickinson

#11
Probably because I didn't include that it should be in selector mode....sorry.  No, wait, looking at your clip again Jeff, you've just overlooked it.  I blame dark UI.  It's present, selector mode or not.

Jeff_in_90620

It is a pity that "%" isn't an option, along with "Radius".


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

murray dickinson

I've only reiterated what John R advised above, I see now, apart from the WP condition.  Sorry John, I should stop half-reading things when I should be asleep.

Alvin Gregorio

#14
Quote from: Jeffin90620 on November 29, 2021, 06:23:22 PM
It is a pity that "%" isn't an option, along with "Radius".
Jeff

Jeff-- Wouldn't Scale_X and Scale_Y1 achieve that?
Example, for 150%:  Select all the Circles with the Selector Tool; enter into Scale_X and Scale_Y1 1.50.  Same result as having used the Edit_Tool|Radius_field on all of the Circles at the same time.
____
1 or either, with Keep Aspect Ratio active



And yet another method to achieve changing the radius of the Circles at one time, as an equal percentage of each of their current radius:
(another credit to John R, for teaching us this also)

>Use the Selector Tool to select all the Circles (or another means, such as Select By Type)
>Tab into the Scale_X field in the Inspector Bar; Tap the F2 key to bring the focus into the Calculator Palette; in the Calculator Palette enter */100 (example: for 150% type in 150/100; then Enter.
>Repeat for the Scale_Y field (or just have had Keep Aspect Ratio active)
>Then another Enter, to end the editing operation, and have the changes take effect.
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)

Jeff_in_90620

Quote from: Alvin Gregorio on November 30, 2021, 08:34:33 AM
Jeff-- Wouldn't Scale_X and Scale_Y1 achieve that?
Example, for 150%:  Select all the Circles with the Selector Tool; enter into Scale_X and Scale_Y1 1.50.  Same result as having used the Edit_Tool|Radius_field on all of the Circles at the same time.

What I would like is to be able to select all Circles (especially when they are not concentric) and change the size of each Circle by a given percentage without changing its placement.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Alvin Gregorio

Quote from: Jeffin90620 on November 30, 2021, 02:36:24 PM
Quote from: Alvin Gregorio on November 30, 2021, 08:34:33 AM
Jeff-- Wouldn't Scale_X and Scale_Y1 achieve that?
Example, for 150%:  Select all the Circles with the Selector Tool; enter into Scale_X and Scale_Y1 1.50.  Same result as having used the Edit_Tool|Radius_field on all of the Circles at the same time.

What I would like is to be able to select all Circles (especially when they are not concentric) and change the size of each Circle by a given percentage without changing its placement.


Jeff

Yes.  Of course.  Makes sense.  My suggestions only work for concentric Circles.
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

Ties in with another item wish listed elsewhere: TC being able to accept expressions or formulas in the data boxes.

John R

Quote from: murray dickinson on December 01, 2021, 12:22:30 AM
Ties in with another item wish listed elsewhere: TC being able to accept expressions or formulas in the data boxes.

Data Boxes? The fields in the Selection Info palette as opposed to fields in the Inspector Bar?




In Jeff's case...
Select all the circles.
Hold the Ctrl key and select a particular circle in the drawing.
or
Pick a circle from the Selection Info list.
Select the "Select" tool in the Selection Info toolbar.
The selected circle becomes the only object selected and the other objects are relegated to the background.
Turn on "Keep aspect ratio" in the Local Menu.
Tab into the "Scale X" field and "F2". The Calculator opens.
Type your formula and Enter once to get the result to the Inspector Bar, Enter a second time to apply your formula to the circle.
Click anywhere to return to the selection of circles.
The circle that changed is no longer selected, but you can add it back to the selection with the "Shift" key.

My 2 cents.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

John R

Another penny...

Do the first few steps,  then...
When the particular circle is selected, "Ctrl+Space" to activate the "Edit Tool".
Tab to the Radius field and F2 to open then Calculator. You may need to copy the radius before going here.
Input your Radius value and formula, then Enter and Enter again to trigger the change in the circle.
Hit the "Select" key to return to 'all' the circles being selected.

I think this is all of it.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Alvin Gregorio

John, to play devil's (Jeff's, actually) advocate:

Let's say we have 40 Circles.  None of them concentric.  No two having the same Radius.
Now we want to re-size all the Circles, in unison, such that their Radius is each 125% of their original Radius.
But we also want none of the Circle's center-points locations to change.
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)

John R

I can't do it. Maybe with a macro or something, but I suspect it will do each circle individually.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Andy H

#22
Quote from: Alvin Gregorio on December 01, 2021, 10:21:45 AM
John, to play devil's (Jeff's, actually) advocate:

Let's say we have 40 Circles.  None of them concentric.  No two having the same Radius.
Now we want to re-size all the Circles, in unison, such that their Radius is each 125% of their original Radius.
But we also want none of the Circle's center-points locations to change.

Fairly easy If one is using TC platinum - Macro.  But you would have no control over the spacing between each circle.  So one may end up with overlapping circles.  Scaling them whilst maintaining a specific gap between each object,.  That's a bit more tricky, and beyond my coding capabilities..

Quote from: John R on December 01, 2021, 11:16:27 AM
I can't do it. Maybe with a macro or something, but I suspect it will do each circle individually.

A perfect job for a macro.   One would just have to remember to include a bit of code to reset the default reference point of each circle, before the scale code.  Otherwise things can go a bit wonky.

Henry Hubich

#23
There is a way. Some time ago I posted a short article explaining how to rescale a set of ACIS Solids without changing their individual locations. The method won't work with Circles, but we can convert them, en masse, into ACIS Solids, rescale the whole set, and then extract the rescaled circles--all en masse. The attached .tcw shows how to rescale an arbitrary set of Circles  by a factor of 1.25.

I also tested the procedure with Regis' original problem: resizing a set of a thousand 10" circles to 11". It was a bit slow with so many objects, but it worked just fine.

Henry H

murray dickinson

If you can isolate the circles so they're the only selectable objects in the drawing, the functional sequence would be to copy the scale factor to clipboard, check keep aspect ratio, F6 to select next object, tab to enter scale field (or data box, John, just terminology), ctrl + V to enter scale, return, repeat from F6.  Years ago I had a mouse by Taiwanese company A4Tech that had two macro buttons that could each invoke 14-button toolbars, each button was completely customisable, you could create an icon, and record keystroke sequence macros for each, and you could set them to repeat to cycle through the objects in the file.  I've tried to recover that software since, maybe a programmable game mouse or keyboard could do the same.   I tried macro recorder but it took exception (literally) to F6 when I tried to replay it. 

PCSteel

I've got a Logitech G613 keyboard with six extra customisable (not sure that's a word) function keys (G1-G6). Any of these keys can have  a macro recorded to them. I have five of them set with certain commands and one spare for macro's on the fly. I also have the G903 mouse which has the extra custom buttons. They are both very handy.
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

Houseplan2

#26
Quote from: Régis Fraisse on December 24, 2019, 08:47:58 AM- On my drawing there are 1000 circles diameter 10
 - the custumer calls me, he want circles diameter 11

My wish is to change them in one time
 1.  I think of it before and put them on a special layer ; I select by layer to select the circles
 2.  "Select by Similar" can select circles (and rectangles, lines, ...) that have exactly the same geometry
And a magic tool can change the diameter of all

The best way to do this is to create BLOCKS. you can create as many circle blocks as you wish. Make sure each circle block has unique name at the very least. An example would be

Circle 1000
circle 2000
circle 3000
circle 4000

Its best to keep the number high in case you need to create intermediate circles in the future such as

Circle 1001
circle 1002
circle 1003 for some unknown reason at this stage.


It doesn't matter what size the circle is drawn at within the block

When you have inserted the blocks, such as circle 1000 and circle 2000 then you can individually alter their radius/diameter within the block and all the circle 1000 and circle 2000 in your drawing will adjust accordingly.

so next time your customer says I want all CIRCLE 1000 changed to 11mm instead of 10mm voila you just adjust the block circle 1000 to 11mm.
and when your customer asks for circle 2000 to be changed from 11mm to 15mm then you adjust the circle 2000 block the same way and it's all done.

murray dickinson

#27
Make one circle and give it a radius dimension from the constraint tools.  Name the dimension as a variable.  Constraint dimension other circles or copy circle and dimension to other locations and use the variable name in the formula cell of each in the variables palette.  Change the value of the variable and the others follow along.  You can also use the variable name as a factor in expressions/formulas in each cell to resize them proportionately and independently.  It could be improved by letting formulas be copied with circle and dimension too. 
*Formulas come along too if you Ctrl+C and Ctrl+V*