Message 1 of 4
LENGTHEN in VBA without using SendCommand

Not applicable
04-24-2006
09:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have several polylines which consist of many lines and arcs joined together. I need to trim these polylines to specific lengths and then offset them. In AutoCAD, I use the LENGTHEN command, with the Total option and then the OFFSET command.
In my VBA routine to automate this process, I tried using SendCommand to do the same, but the polyline length is not updated until my VBA has finished running. If I check the length of the polyline after executing the LENGTHEN command, it is still the original length, but once I end my program, it is updated to be the total length I specified. Because the length is not updated, my offset polylines are the original length, not the new total length specified.
I have tried updating the object, regenerating the drawing, everything I can think of to update the polyline after executing the SendCommand.
Any ideas or alternate VBA methods (without using SendCommand) to accomplish the same procedure would be greatly appreciated.
TIA,
Matt
In my VBA routine to automate this process, I tried using SendCommand to do the same, but the polyline length is not updated until my VBA has finished running. If I check the length of the polyline after executing the LENGTHEN command, it is still the original length, but once I end my program, it is updated to be the total length I specified. Because the length is not updated, my offset polylines are the original length, not the new total length specified.
I have tried updating the object, regenerating the drawing, everything I can think of to update the polyline after executing the SendCommand.
Any ideas or alternate VBA methods (without using SendCommand) to accomplish the same procedure would be greatly appreciated.
TIA,
Matt