Sundar Posted March 18, 2013 Posted March 18, 2013 Hi all, I need to use trim and boundary command in VBA..But the entities should be passed from code to the command. (i.e) selection of entities for trimming and the portion to be trimmed off should be sent from code to the sendcommand..How to pass it in sendcommand.any suggestions? Quote
Sundar Posted March 18, 2013 Author Posted March 18, 2013 I can use sendcommand method for passing trim command..but how to pass the objects say entities from a selection set to sendcommand method and another entity which is to be trimmed off.. 1 Quote
BlackBox Posted March 18, 2013 Posted March 18, 2013 I'm no expert on VBA, but this syntax was easily found in a quick Google search: ** Untested ** ThisDrawing.SendCommand "_trim (handent " & Chr(34) & "10a" & Chr(34) & ") (handent " & Chr(34) & "10b" & Chr(34) & ") (list (handent " & Chr(34) & "10b" & Chr(34) & ") '(" & pt(0) & " " & pt(1) & " " & pt(2) & ")) " Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.