Jump to content

Trim command through VBA


Sundar

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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