Use a VBA SelectionSet to select orthogonal line?

Use a VBA SelectionSet to select orthogonal line?

Anonymous
Not applicable
777 Views
3 Replies
Message 1 of 4

Use a VBA SelectionSet to select orthogonal line?

Anonymous
Not applicable

Curious if anyone know of a way to use the VBA SelectionSet to only select orhogonal lines. I know it's possible using the FILTER command and the "Normal Vector" property. But I want to be able to do it in the code.

 

Perhaps there is a way to access the FILTER command programtically?

 

Thanks!

0 Likes
Accepted solutions (1)
778 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

I stand corrected. The Normal Vector property will let me select straight lines. Not nexxessarily orhogonal lines.

0 Likes
Message 3 of 4

kasperwuyts
Collaborator
Collaborator
Accepted solution
Start Pseudocode:

for each item in current layout
if item is a line then
if item.angle is 0, 90, 180, or 270 then
add line to selection set
End if
End if
next

End pseudocode

Best regards
Kasper Wuyts
_______________________________________________________________________________
If this post solves your problem, clicking the 'accept as solution' button would be greatly appreciated.
0 Likes
Message 4 of 4

Anonymous
Not applicable
Thanks! Slapping myself for not thinking about the angle property. I was trying to filter everything out on the front end rather than just doing it on the backend (or adding them to the selection set in this case).
0 Likes