Pipeline trim macro, selection issues

Pipeline trim macro, selection issues

Anonymous
Not applicable
2,311 Views
7 Replies
Message 1 of 8

Pipeline trim macro, selection issues

Anonymous
Not applicable

Hello,
I have written the following macro to help me quickly trim pipelines when I am working on a P&ID.
*^C^C_CIRCLE;\;20;_trim;L;;\;erase;P;;
Basically what it does is creates a circle at an intersection and then you select which line to trim within the circle so that you can show they are not connecting. After of which it deletes the circle out of the drawing. It then repeats so you can do multiple pipeline intersections at once. 
It works exactly how I want it to, unless you miss click off the line that you are trimming then the whole macro falls down instead of allowing me to use the box selection for that function.
How would I go about rectifying this?

0 Likes
Accepted solutions (1)
2,312 Views
7 Replies
Replies (7)
Message 2 of 8

pendean
Community Legend
Community Legend
Can you post a video of it in action? Use the free Autodesk SCREENCAST app https://knowledge.autodesk.com/community/screencast



0 Likes
Message 3 of 8

Anonymous
Not applicable

I will try to get the screencast program however my company wont let me download it unless I raise a ticket which I will do now.

0 Likes
Message 4 of 8

pendean
Community Legend
Community Legend
A series of images would do as well: help us understand what you select, how the macro progresses, what the end result looks like.


0 Likes
Message 5 of 8

Anonymous
Not applicable

The first three pictures are the macro working how it is supposed to. It creates a circle you click on the line and then it erases the circle after.

0 Likes
Message 6 of 8

Anonymous
Not applicable

These last two pictures show what happens when i use the box selection which i find faster and requires less accuracy with my jumpy mouse. The trim function doesn't seem to end and it will not erase the circle anymore?

Does that help?

0 Likes
Message 7 of 8

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

Welcome to the Community forums.

 

I feel that you are facing a fairly common challenge with AutoCAD LT customization is that the way you are building a macro does not include any kind of error checking such as found in LISP with full AutoCAD.

 

Would a block with a mask do this process for you so you don't actually have to trim the linework?

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 8 of 8

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

...
It works exactly how I want it to, unless you miss click off the line that you are trimming then the whole macro falls down ....


 

That's because the macro content only has the one backslash for User input to pick the Line, and then it moves on as though the Trim command is done, which it isn't if you miss.

 

Are you using Acad LT as @john.vellek mentioned [I didn't see any indication]?  If you have "full" AutoCAD, there are many AutoLisp routines out there that will do this sort of thing with a User-specified gap size, for instance several >here<.  I haven't tried all of those, and some may have the same problem, but I imagine at least some of them operate in a way that doesn't even require the User to pick the portion to be Trimmed that way at all.

Kent Cooper, AIA