selection to the DIV command

selection to the DIV command

Anonymous
Not applicable
326 Views
2 Replies
Message 1 of 3

selection to the DIV command

Anonymous
Not applicable
HI Everyone,
I need to divide a polyline in a number of pieces (using DIV) and put
a block on the divide points.
Using VB ThisDrawing.SendCommand ("DIV" & vbCr & "selection " & vbCr ) not
works.
My question is " how can I pass a selection to the DIV command prompt."
using VB.
Any idea will be very helpfull
Thanks
Edvin
0 Likes
327 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
thisdrawing.sendcommand("DIV" & vbcr & "LAST "& vbcr)>For the last created
entity
thisdrawing.sendcommand("DIV" & vbcr & "PREVIOUS "& vbcr)>For previous
selectionset
all >all entities.

I can make some addition to your question."how can i pass a selectionset to
lisp applications>if its possible"

"sss" wrote in message
news:A493D2E87D8C47C134DF4B0774009D22@in.WebX.maYIadrTaRb...
> HI Everyone,
> I need to divide a polyline in a number of pieces (using DIV) and put
> a block on the divide points.
> Using VB ThisDrawing.SendCommand ("DIV" & vbCr & "selection " & vbCr )
not
> works.
> My question is " how can I pass a selection to the DIV command prompt."
> using VB.
> Any idea will be very helpfull
> Thanks
> Edvin
>
0 Likes
Message 3 of 3

Anonymous
Not applicable


 

Hmmmm, I think that DIVIDE command does not accept multiple objects.

One way of passing a selection to DIVIDE using VBA is to do the following:

1. Have the user select an object using VBA,

2. retrieve the handle string of that object and store it in a variable,

3. pass that handle string alongwith the sendcommand as :

(command "divide" (handent <<handlestring>>)
"b" <<no. of segments>> "") & vbcr

sss wrote:

HI Everyone,

I need to divide a polyline in a number of pieces (using DIV) and put

a block on the divide points.

Using VB  ThisDrawing.SendCommand ("DIV" & vbCr & "selection
" & vbCr ) not

works.

My question is "  how can I pass a selection to the DIV command
prompt."

using VB.

Any idea will be very helpfull

Thanks

Edvin

0 Likes