IF CONDITION

IF CONDITION

muhamed_ragab92
Enthusiast Enthusiast
4,676 Views
26 Replies
Message 1 of 27

IF CONDITION

muhamed_ragab92
Enthusiast
Enthusiast

I WANT TO KNOW , HOW CAN I MAKE IF CONDITION TO COMPARE BETWEEN TWO ISSUES AND SELECT THE RESULT IN TEXT ? I KNOW SOME FEATURE FOR CTRL+F BUT I CANT MAKE IF CONDITION 

0 Likes
Accepted solutions (1)
4,677 Views
26 Replies
Replies (26)
Message 21 of 27

Scottu2
Advocate
Advocate

muhamed_ragab92,

 

I rewrote the routine to muti-select Source and Target objects.

I expected the amps and cables to be aligned vertically and paired together.

(i know for larger breaker the are no decimals but i included detection anyway - (Getnumber string)

See the attached Cables2.LSP

 

Let me know how it goes this time.   🙂

 

 

0 Likes
Message 22 of 27

muhamed_ragab92
Enthusiast
Enthusiast

thanks scott i tried it and modify in the routine in some breakers types and cables , it worked but have small issue i recorded it to you , the script worked fine when select by blue shadow on breakers and cables and it has issue when select on another anything else i mean i cant select by green shadow , all what i talked about will notice in recorded video and i uploaded you the modified lisp

 

 

0 Likes
Message 23 of 27

Scottu2
Advocate
Advocate

I'm glad it worked for you.  

Thanks for posting the screen video. I can see that selecting by window function worked.  But selecting by crossing did not work.

I suspect there is another block selected since the selected objects increased from 13 to 26.  The routine is not specific enough to capture the breaker blocks only, and then plain text only.   I will post a revision when i can verify it with your sample drawing.

 

0 Likes
Message 24 of 27

muhamed_ragab92
Enthusiast
Enthusiast

yup i will wait this update , thanks 

0 Likes
Message 25 of 27

Scottu2
Advocate
Advocate
Accepted solution

muhamed_ragab92,

 

This should fix that issue of selecting by crossing, CABLES3.LSP

I changed the selection routine to select the AT block by tag name only and Plain text.

 

0 Likes
Message 26 of 27

muhamed_ragab92
Enthusiast
Enthusiast

thanks scottu2 finally it worked 

0 Likes
Message 27 of 27

Scottu2
Advocate
Advocate

muhamed_ragab92,

 

Your welcome.  I'm glad to help you.    🙂

 

 

0 Likes