News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

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.

Too many nodes

Started by Darrell Peart, April 01, 2014, 02:46:08 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Darrell Peart

Is there a way to greatly reduce the number of nodes along a curve?
I am running TC Pro 20

On a side note and a bit of venting!
I have repeatedly searched for answers to problems only to find solutions to a different version where the commands mentioned have either moved , functions differently, or has  been eliminated.
This is extremely frustrating. What is the rationale behind making such radical changes to each version! Why not stick to what works  - leave things where they are. Adding features is fine but only change anything else as a last resort.

Sorry for the vent.....

Alvin Gregorio

#1
Quote from: Darrell Peart on April 01, 2014, 02:46:08 PM
Is there a way to greatly reduce the number of nodes along a curve?
I am running TC Pro 20
...

Do you know about:

  • Use Edit Tool to edit the nodes of the curve
  • Hold down the Control key to add or remove nodes to the curve-- when we hover over an existing node (while holding down the Control key), wait for a little trash-can symbol to pop up and click
(Help Documentation here)

Is that what you are asking?

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)

Darrell Peart

Thanks Alvin but that is not what I am after.
I don't think I explained myself very well.
I want to retain the shape but eliminate the number of nodes.
I am using the drawing to produce g-code for my CNC - all those nodes causes problems.

John R

Take a look at the VBScript to reduce number of nodes in 2D polylines topic. It may or may not be useful. I have no idea how to use his attached script.
John R.

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

Andy H

#4
Darrell, generally the curve will have the number of nodes you apply, so I have to wonder if you have used the join polyline tool on the curve, or accidentally exploded it, both of which creates lots of nodes which are tiny polylines.


edited - don't think this applies


Alvin Gregorio

Quote from: Darrell Peart on April 01, 2014, 03:06:02 PM
Thanks Alvin but that is not what I am after.
I don't think I explained myself very well.
I want to retain the shape but eliminate the number of nodes.
I am using the drawing to produce g-code for my CNC - all those nodes causes problems.

Again (I suggested this other day to someone... was it Darrell?):

Have you tried the Convert to Arc Polyline Tool?

I read somewhere (by Dave Taylor, I believe... or on the Help Documentation site... or at IMSI/Design's site) that is what that Tool/function was designed for.  "That" being what you are doing.
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

#6
I used to use Tom Snapes Nodecleaner vba script back in the day, and tcpete's script for V17 subsequently, which works well when it works in V17 (OS? XPsp3 yes, 8.1 no, for me), but that hasn't worked for me in V20.  I've recommended Marcus Bole's Polycad, from polycad.co.uk before, and this is one of its talents.  It's gotta be registered, but it's no cost, and the screen grab shows the parameters you've got to choose from for node reduction.  Polylines exchange by .dxf.

*edit* I chuckle whenever I do this, it reminds me of the film "Amadeus", when the emperor tells Mozart his new symphony has "too many notes", and that he should "cut out a few".  Mozart responds "which few should I remove, Majesty?" 

Darrell Peart

Thanks for all the help everyone!
Alvin - "Convert Arc to ployline " worked . You may have suggested it earlier but this time I played with the settings a bit.
Murray - I am currently reading a bio of Mozart and re-watched Amadeus last week. That is a great line and it may have been roaming around subconsciously as I filled out the subject line.

tcpete

At last I found someone who used my node-reduction software :)
To date 50 people have downloaded it but none have commented on my post:
http://forums.turbocad.com/index.php/topic,6717.0.html

My VBscript software will work on Windows 7 64 bit. I don't have Windows 8 or TurboCAD 20 so I can't test for those. However, I do have a later version of my software for AutoIt3.

AutoIt3 is free but it is another scripting language and suffers from the same late-binding issue as VBscript, making communication with TurboCAD very slow. My AutoIt3 node-reduction does the same job but it has a progress bar and I think it is easier to use.

Convert to Arc Polyline looks useful.
At the moment I'm looking for software or ways to remove small loops or spikes in polylines, e.g. due to conversion from bitmaps.



murray dickinson

Sorry Pete, my bad.  It was very useful when it ran, but I settled onto PolyCAD for consistency across OSs and versions, plus the options versatility.   Thanks for your efforts.