No, VBA/COM API does not have a way to explode Text, as the Express Tool's "TextExp" command.
Thanks for your response.
This situation existed since 2000. I can't believe that a resolution has not been reached yet.
The problem is that text cannot be sent to a cutting machine, so it has to be broken into lines and curves.
Isn't there a way to do this besides the explode command?
@greneebb wrote:
The problem is that text cannot be sent to a cutting machine, so it has to be broken into lines and curves.
You're using the wrong software. AutoCAD was never designed to send items to any cutting machine. Use a product design software like Inventor or Fusion 360. 3D text is built into the software. And there are add-ons for exporting to cnc machines.
Yes, I fully understand what you are trying to do. I'm just saying that these are the wrong tools. There are tools that are specifically designed to do what you want. That said, if you still want to use AutoCAD and dxf. Since you are probably not writing paragraphs of text. For something like this, you probably only need a few letters that will actually be used. I would make up a set of blocks for each letter. Those you can explode. to line the block text up, you could place some dtext and overlay the blocks to match the spacing. If you're ambitious, you could even write a command to place the blocks. Or if you have standard lines of text, make the whole line a block.
The VBA/COM API lacks a direct method similar to the "TextExp" command found in the Express Tools. I need to achieve the same result as "TextExp" – essentially exploding text elements – but I'm struggling to find a straightforward way to do this through the API. I've searched https://rainguardroofs.com/ through the documentation, but it seems that this specific functionality might not be readily available. If anyone has faced a similar situation or has suggestions on how to work around this limitation, I'd greatly appreciate your insights.
My understanding to your question is that you are doing a VBA/COM app for your specific business operation, in which you need to explode texts. That is, exploding text is part of the coded operation, thus, using SnedCommand() to call "TXTEXP" command of express tool might be problematic because of it being executed asyncly.
If you do AutoCAD .NET API programming, it might be easier to incorporate Express Tool's "TXTEXT" into a coded custom operation because of .NET API's richer event handling mechanism. One of my articles was specifically on how to use "TXTEXP" in a custom coded operation:
https://drive-cad-with-code.blogspot.com/2022/11/loop-operation-with-sendstringtoexecute.html
@lelandarjun12 The TEXTEXP command uses WMFOUT and WMFIN commands to explode the text. You could try that yourself to see if it does what you want.