Delete points crashes DC when run twice in a group.

Started by bdeck, May 09, 2017, 08:48:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

See Attached drawing.

DC 26.2 (32 bit 3d max, win7) crashes very reliably when I follow the directions in the drawing. Lost a days work in the crash, so decided to look into it. Is this unique to my system?

Here's the delpts macro that caused the crash, run from the command line.
>DeletePoints
{
}
end


Here's a fix that DID NOT avoid the crash:  (Edit 5/10)

>DeletePoints
{
}
>deselect
{
}
>selectprevious
{
}
end



bdeck

Oops, on retry, the fix above does not work reliably. 

The crash comes when using the delete points command when
1)  no points are set,
2)  a group is selected.

Below is a solution that seems to work better.

Any ideas?

If Not Sys(345) Then end

>setselectedpoints   ' put selected points in buffer
{
}
if sys(1)<1 then          ' check buffer count
message "no points selected"
end
endif
>DeletePoints
{
}
>deselect    'erase vestigial point marks
{
}
>selectprevious
{
}
end