Jump to content

Recommended Posts

Posted

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?

Posted

Consider the SendCommand() Method.

Posted

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..

  • Like 1
Posted

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) & ")) "

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...