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

Edit STL and STEP files

Started by Kevin A, January 03, 2024, 12:02:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kevin A

I've been trying to modify a STEP or STL 3D model with TurboCAD without any success, with TinkerCAD I opened the file, reduced one measurement, saved the file.
Is there a simple way to edit STL/STEP files in TurboCAD without spending hours?
TurboCad V12~V202x Platinum Pro Edition + CAM Plug-In +  Surface Modeling + Survey Coordinates RedSDK
Production: W11 23H2
NVIDIA RTX A4000 i9 3900K 64GB
Current 2023.63.3.0

Steve Edwards

Hi Kevin, I'm using 2021plat. and often download Step files from https://www.mcmaster.com. 
Files open without issue, can be edited and saved at tcw file.  You might want to try downloading an item and see is you too can work with them. Sometimes downloads are  seemingly one model but are in fact several separate models (ball races for example), but they can be Boolean added together in TC without issue.
As far as stl is concerned, I find them more trouble than they are worth, can't say I've ever successfully edited one. Not to say you can't but you might spend hours do it.

Steve
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

Alvin Gregorio

Quote from: Kevin A on January 03, 2024, 12:02:29 PMI've been trying to modify a STEP or STL 3D model with TurboCAD without any success, with TinkerCAD I opened the file, reduced one measurement, saved the file.
Is there a simple way to edit STL/STEP files in TurboCAD without spending hours?
Without the .stl file to test, I can only conjecture.

Have you thought about:

>Insert a Sphere, set to ACIS Solid, snapping to the Center Of Extents of the .stl object, ensuring it's large enough to encompass the entirety of the .stl object.
>3D_Boolean_Intersect that Sphere with the .stl object, selecting the ACIS Solid Sphere first in the Intersection operation.

>Do whatever editions you want to do.
>Save As... .tcw (for any possible future revisions)
>Save Copy As... .stl, if needed
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)

PCSteel

 :o  I thought I was the only one that did unorthodox things like that Alvin.  ;D  But it works.
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

Alvin Gregorio

Quote from: PCSteel on January 03, 2024, 06:21:21 PM:o  I thought I was the only one that did unorthodox things like that Alvin.  ;D  But it works.
If it were orthodox,  it'd be boring.
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)

Steve Edwards

That is a clever idea Alvin. Another tip I need remember for future use. 
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

Jeff_in_90620

Quote from: Alvin Gregorio on January 03, 2024, 05:18:10 PMInsert a Sphere, set to ACIS Solid, snapping to the Center Of Extents of the .stl object, ensuring it's large enough to encompass the entirety of the .stl object.
>3D_Boolean_Intersect that Sphere with the .stl object, selecting the ACIS Solid Sphere first in the Intersection operation.

That does not work (I just confirmed it, again).  An ACIS Solid object cannot have a 3D Boolean operation with a Surface object.

I exploded the Sphere to ACIS Solid and tried again (failed).  I then exploded to TCSurface and tried.  This worked, but it saved to an STL file of the exact same size (but not identical).


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

#7
Quote from: Jeff_in_90620 on January 04, 2024, 03:27:03 AMThat does not work (I just confirmed it, again).  An ACIS Solid object cannot have a 3D Boolean operation with a Surface object.

I exploded the Sphere to ACIS Solid and tried again (failed).  I then exploded to TCSurface and tried.  This worked, but it saved to an STL file of the exact same size (but not identical).

Jeff
Did you try to set the .stl object's 3D Properties to Solid?  Then do the 3D_Intersection operation.

To get back to the original poster's question/wanting-- I think it's case specific.  If Kevin would share with us the .stl file and tell us what edition(s) specifically he is wanting to do, I'm confidence we TurboCADers can figure out a good way in TurboCAD.[/color

I guess there's no reason why an ACIS Solid has to be created.  I would assume a TC_Surface object will suffice.
I just did a test-run with one of those complex gargoyle/dragon-looking.stl things off the 'net.
I opened the .stl file.   TurboCAD reported it as a TC_Surface.
I inserted a Sphere, TC_Surface, 88 segments each way.  (probably didn't need to; see next line)
Intersected that with the dragon-looking thing.  But probably didn't need to, as the dragon.stl, having been imported as an TC_Surface, is editable.

I suppose it's all about the original poster's .stl file and what edits he wants to do with 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)

Steve Edwards

Your method works for me Alvin, slightly differing.
1. import STL object
2. Convert to Solid (note 1)
3. "E" snap a sphere to centre of object and fully enclose object, now solid, with a sphere (ACIS Solid) (note 2)
4. Boolean subtract object from sphere (note 1)
5. Snap another Sphere by "E" snap to result from operation 4. above. a Sphere slightly smaller than first sphere
6. Boolean subtract first sphere from second, resulting in a Solid version of original STL file (note 3 and note 1) 

Note 1. Unless you have super processing power this will take a long time, I have an NVIDIA RTX 4000 GPU and it still took 5 Mins. to process. Without one could be looking at 4 or 5 times that.
 
Note 2. this is where I deviate from Alvin's method

Note 3. Although the method results in a Solid object it is still, as per STL original, multi-faceted solid which is pretty useless for further modification. I did Boolean subtract a Cylinder from it to leave a hole, but could not snap to any existing features because of the faceting.  

File is 53,000 KB

I stand by by first post, STL's are too difficult to work with and Alvin's method does work but not to any great advantage.
You cannot view this attachment. You cannot view this attachment.
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

murray dickinson

SharkCAD and ViaCAD PowerPack have a useful tool, mesh to analytics.  Analytic surfaces are planar, cylindrical, conical, ellipsoid including spheroids.  FreeCAD has a somewhat similar tool, segment mesh, which also looks for analytic sections and separates them from the original mesh.  Both are far from automatic, the user more or less has to recognise the shapes within the mesh and use settings that indicate this to the app, but .stls usually have to be rebuilt or recreated.  Another thing that makes using them as reference objects difficult is that, because of how they're created, internal and external "curved" surfaces are derived from different points on the triangles' edges....They were intended to be this way, because .stl was originally a rapid prototyping output format only, and its resistance to easy editing was a measure of intellectual property protection.    PunchCAD had PowerPackPro in V9 and V10, which added mesh-to-nurbs, the ability to extrapolate or overlay a compound-curvature surface from a mesh, but again, far from automatic for imported .stls, because nurbs networks are also quad-based, so that tool liked quad-dominant meshes, while .stls are purely triangular meshes.  That being said, it works brilliantly with native subdivision surfaces created in PunchCAD, because they ARE quad meshes, and the nurbs object is associative, and a native manifold solid.  The only drawback is that the subdivision surfaces don't crease well within their edges... Nothing's perfect, and nothing really turns an imported .stl into a perfect CAD object, except for maybe high-end Geomagic.   

Kevin A

Quote from: Steve Edwards on January 05, 2024, 09:23:51 AMYour method works for me Alvin, slightly differing.
1. import STL object
2. Convert to Solid (note 1)
Unbelievable, a website that support CAD/CAM but will not allow you to upload STL files...
TurboCAD: The current market value of 3D printers is $17 billion with a forecasted 23% growth yet there is nothing in any of the current IMSI applications to allow easy editing of the MAIN file type 3D printers use. Autodesk allows you to edit STL files with their TinkerCAD application, Fusion 360 for when you need more. Soildworks and the rest are busy else where leaving the HUGE user base using 'freeware' applications like FreeCAD 3D.
Attached is a COMPRESSED STL file, the object was to change the panels v notch to straights cuts without burning up a day.... 
TurboCad V12~V202x Platinum Pro Edition + CAM Plug-In +  Surface Modeling + Survey Coordinates RedSDK
Production: W11 23H2
NVIDIA RTX A4000 i9 3900K 64GB
Current 2023.63.3.0

Brandon Meyer

#11
Here ya go. Took less then 5 minutes. Did a simple boolean cut. If they needed to be shaped from the small side then first an add and then a cut would be needed. Working with stl's in any program is an issue but when one understands them anything can be done as long as they are manifold. When they have open edges then things start to not work. Blender is also a good solution for editing them. With Stl files booleans are your friend. Sometimes add on to them so you can then cut some off.

Also if one downloads a step file from a 3d print site it is often just an stl file that had been essentially renamed into a step file and is still a hollow faceted shell. Converting stl files to anything else is not simple. Instep studio 3d is a piece of software that can help but ultimately it is usually easier to reverse engineer and redraw them in cad. Or use something like Blender.
TC Pro Platinum 2025, 2020, 2016, 2015, v18, v14. TC Deluxe v19. Alibre Design Expert v28. Blender 4.3. Ender 5s1 enclosed printers. Revopoint MetroX, Range1, Pop2 3d scanners.
Home pc Ryzen 7 3700x 32gb Ram Rtx2060 Super. Shop pc Ryzen 9 3900x 64gb Ram Rtx2060 Super.

Alvin Gregorio

#12
Quote from: Kevin A on January 06, 2024, 07:32:56 PMAttached is a COMPRESSED STL file, the object was to change the panels v notch to straights cuts without burning up a day...
There's almost always a reasonable workaround in TurboCAD.

Is the attached what you are after?  (remove the .txt file extra-extension)
Took me about a minute, not counting my creating the extra Layers, for presentation purposes.

Since TurboCAD reported the object as a TC_Surface, I edited the nodes, using the Edit (node) Tool.
___
EDIT:  I see the two new Layers and the objects I used for constructions didn't make the Save As... .stl.
  What I did was:
>Inserted 2 polylines, one at the top of each notch.
>Extruded those in unison, the thickness of your object
>Used the Edit (node) Tool to edit the bottom eight nodes of the notches in your object to my extrusion's (boxes, essentially) bottom corners.
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

#13
Quote from: Kevin A on January 06, 2024, 07:32:56 PMAttached is a COMPRESSED STL file, the object was to change the panels v notch to straights cuts without burning up a day...
A little video:
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)

Steve Edwards

Having seen the part in question, it being a simple part, I would have re-drawn in TC then re-save as an STL. As usual there are many ways to achieve the result you are after.

In defence of TC, I have been using it to 3D print models drawn in TC and saved as STL for at least 4 years, probably getting on for 150 different models, and yet I cannot think of one occasion where it has let me down. It does a great job of the STL object, retaining all the small detail, that import into Cura without a hitch. The only issue is when one tries to print some detail beyond the capability of the printer. This being a printer limitation and not TC one.
I agree this forum should allow STL as attachments although I expect the current limitation is because STLs can be pretty massive file sizes. I'm thinking here of these freely available character figures for war gaming etc. (I tried to import one into TC a few days ago, some Pokémon figure for my grandson, TC struggled with the massive file size and  I gave up)
TurboCAD Platinum 2024
NVIDIA RTX 4000
12th Gen Intel(R) Core(TM) i9-12900K   3.20 GHz
Windows 11 Pro (64)
64 GB RAM
Bambu P1S with AMS

Jeff_in_90620

Quote from: Kevin A on January 06, 2024, 07:32:56 PMAttached is a COMPRESSED STL file, the object was to change the panels v notch to straights cuts without burning up a day.... 

Trivially simple to do, but only after I converted to ACIS Solid (which took a couple seconds).  After that, I just edited the facets by afixing the Reference Point to the desired vertex and rotated the facet until it was 90° or 270°.

Not so easy to do with the original STL, so I take your point.  Facet Edit didn't even let me start.  While the Wedge command should have done it easily, but that piece of cr@p function has never worked properly.  I ended up using the Wedge command, anyway, but I had to rotate, move, slice and facet edit to get one variation done.

Not a day's work, but way too much of an hour's work.


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

#16
Edit tool, select the top (the wider side, assuming we're closing them to match the narrower) nodes of a notch, check selector mode in context menu, uncheck keep aspect ratio, go to top view, pull one side of the node bounding box and snap nearest to the bottom edge of the notch.  Repeat for the other  notch.  Edited as .stl, no conversion, constructions, booleans, measurement or calculation.

Jeff_in_90620

Quote from: murray dickinson on January 07, 2024, 07:04:58 PM
  • Edit tool
  • select the top (the wider side, assuming we're closing them to match the narrower) nodes of a notch,
  • check selector mode in context menu
  • uncheck keep aspect ratio
  • go to top view
  • pull one side of the node bounding box and snap nearest to the bottom edge of the notch.
  • Repeat for the other  notch.

Trying to follow your instructions, but failing.
Perhaps I misunderstood Items 1 thru 4, because I did not see Keep Aspect Ratio anywhere in the popup.
Items 5 & 6: When I did that, the points moved in Z as well as X, resulting in a knife edge on each side of the gap.

I was able to make it work with these steps:
  • Set World Plan view.
  • Set Select mode (the Space key).
  • Select Toggle 2D/3D (make sure the check mark is active).
  • Select Edit Tool.
  • Select object.
  • Sweep Select the two vertices on the left side of the gap.
  • Click the Reference Point.
  • Mid Snap to the middle of the edge just to the right of the selected vertices.
  • Repeat as needed for the remaining sets of vertices.
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

#18
Keep aspect ratio is available when you've selected the nodes, ie select them first with selector mode enabled, or select them and then check selector mode, then you get the option.  When you select the four nodes, they get the 2D bounding box with the reference point at the box's C of E, so picking up and pulling the side of the box scales it bilaterally, both sides close in towards the reference point, and you can snap nearest anywhere along the edge, only one edit needed for the two edges.  If you're not in world plan view, the nodes/edges aren't constrained in Z.