Can VBA trim or break lines for block insertions?

Can VBA trim or break lines for block insertions?

Anonymous
Not applicable
579 Views
5 Replies
Message 1 of 6

Can VBA trim or break lines for block insertions?

Anonymous
Not applicable
Hello All,

I have many piping Iso's to generate and the part that seems to slow mw down is having to go back and trim the "pipe" from between the valve and fitting blocks. I have been trying to think of the best way to do this and I'm looking for ideas. The blocks are inserted by double clicking the slide in their respective slide libraries dialog boxes. I pictured the process like this: After the user picks the block to insert from the Dialog box he will be prompted for an insertion point, just like always. After the insertion point is picked, an iso circle could either be drawn or inserted..the line inside the iso circle broken and deleted. The size of the iso circle would be a pre-defined size since I already know how big the block is. Then the iso circle would be erased and the valve or fitting block inserted. Can anyone point me in the right direction on how to tackle this?
0 Likes
580 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
I did mine by deleting the original line then adding two new lines and adjusting the startpoints and endpoints with the difference of the block size. Hope this helps, I can send you some code if you want to see, but I do not have the code on my machine right now.
0 Likes
Message 3 of 6

Anonymous
Not applicable
Yes I would very much like to see some of your code on this subject. Thank you much !!
0 Likes
Message 4 of 6

Anonymous
Not applicable
Here it is, It is pretty long, but I have alot of other error trapping and settings flying around. Basically it is a routine that works with a toolbox to insert a variety of fittings.

Hope it helps.
John Martens
0 Likes
Message 5 of 6

Anonymous
Not applicable
arsnik91

Personally found it much easier and simpler to do in ALisp using 2 invisible
attributes for the break points of the block.
If you want to try it this way, let me know and I'll find the code.

cheers

Pete B.
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hello,

I find this topic about the triming the line with VBA, but I can not download this file (linebreak.txt). Could you resend this file to me [email protected].

Thanks a lot

Auris
Lithuania
0 Likes