Send entity "to back"...

Send entity "to back"...

Anonymous
Not applicable
718 Views
7 Replies
Message 1 of 8

Send entity "to back"...

Anonymous
Not applicable
Dear all,

Did anybody invent anything smarter for sending selected entity "to back"
than using plain SendCommand? What mechanism does it use? What part of DWG
keeps track of "what's above what" and what layer is the bottomost? I'm
writing a TLB using VB and any sort of SendCommand seems quite ugly and
quite out-of-process... you know what I mean...

Thanks in advance for possible tips,
Maksim Sestic
0 Likes
719 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
Hello,
I believe the draw order is determined by the order in which the objects are created. Another option is to copy the items you want in front and then delete them.
0 Likes
Message 3 of 8

Anonymous
Not applicable
Lorier,

 

I was just curious about internals
of DRAWORDER command, as I can't any smart substitution for it. If I copy
objects then I'm changing their handlers, so it's not the solution I'm looking
for.

 

Regards,

Maksim Sestic


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hello,

I believe the draw order is determined by the order in which the objects
are created. Another option is to copy the items you want in front and then
delete them.
0 Likes
Message 4 of 8

Anonymous
Not applicable
how do you do it with send command? I thought there was no way to change the
display order from VBA at all.


"Maksim Sestic" wrote in message
news:710F1B79EC54304859352DB07F239B15@in.WebX.maYIadrTaRb...
> Dear all,
>
> Did anybody invent anything smarter for sending selected entity "to back"
> than using plain SendCommand? What mechanism does it use? What part of DWG
> keeps track of "what's above what" and what layer is the bottomost? I'm
> writing a TLB using VB and any sort of SendCommand seems quite ugly and
> quite out-of-process... you know what I mean...
>
> Thanks in advance for possible tips,
> Maksim Sestic
>
>
0 Likes
Message 5 of 8

Anonymous
Not applicable
I don't understand what you are trying to do.

The SendCommand is used to send things to the AutoCAD command line, such as
a "hide" command.

Since AutoCAD is a 3D program you can change the elevation of certian
objects with
the .Elevation property or just change the Z coordinates of the object to
move it above
or below another object.

Phil Custer, P.E. Custer Services, Inc.
custer@landfillgas.com


"Mike Daugird" wrote in message
news:1206476FFA9ADBED956B6F4307BEF37D@in.WebX.maYIadrTaRb...
> how do you do it with send command? I thought there was no way to change
the
> display order from VBA at all.
>
>
> "Maksim Sestic" wrote in message
> news:710F1B79EC54304859352DB07F239B15@in.WebX.maYIadrTaRb...
> > Dear all,
> >
> > Did anybody invent anything smarter for sending selected entity "to
back"
> > than using plain SendCommand? What mechanism does it use? What part of
DWG
> > keeps track of "what's above what" and what layer is the bottomost? I'm
> > writing a TLB using VB and any sort of SendCommand seems quite ugly and
> > quite out-of-process... you know what I mean...
> >
> > Thanks in advance for possible tips,
> > Maksim Sestic
> >
> >
>
>
0 Likes
Message 6 of 8

Anonymous
Not applicable
I hope it help you.

"Phil Custer" escreveu na mensagem
news:D12D458F819E9733B8501EDAC8ABEBBF@in.WebX.maYIadrTaRb...
> I don't understand what you are trying to do.
>
> The SendCommand is used to send things to the AutoCAD command line, such
as
> a "hide" command.
>
> Since AutoCAD is a 3D program you can change the elevation of certian
> objects with
> the .Elevation property or just change the Z coordinates of the object to
> move it above
> or below another object.
>
> Phil Custer, P.E. Custer Services, Inc.
> custer@landfillgas.com
>
>
> "Mike Daugird" wrote in message
> news:1206476FFA9ADBED956B6F4307BEF37D@in.WebX.maYIadrTaRb...
> > how do you do it with send command? I thought there was no way to change
> the
> > display order from VBA at all.
> >
> >
> > "Maksim Sestic" wrote in message
> > news:710F1B79EC54304859352DB07F239B15@in.WebX.maYIadrTaRb...
> > > Dear all,
> > >
> > > Did anybody invent anything smarter for sending selected entity "to
> back"
> > > than using plain SendCommand? What mechanism does it use? What part of
> DWG
> > > keeps track of "what's above what" and what layer is the bottomost?
I'm
> > > writing a TLB using VB and any sort of SendCommand seems quite ugly
and
> > > quite out-of-process... you know what I mean...
> > >
> > > Thanks in advance for possible tips,
> > > Maksim Sestic
> > >
> > >
> >
> >
>
>
0 Likes
Message 7 of 8

Anonymous
Not applicable
> I don't understand what you are trying to do.
While modifying the elevation may be a workaround in most cases, you
must be sure to reset the elev back to zero or you will cause other
problems. The point to the question is how come the ability to define
display order is missing from the api when it is available thru the
AutoCAD gui?

As I posted earlier, use the unsupported library ADSKUnSupp2000 for 2000
to 2002 and ADSKUnSupp2004 for 2004. This is better than the
sendcommand. Tony T's ACADX may do it as well.


--
___________________________
Mike Tuersley
AutoCAD Clinic
Rand IMAGINiT Technologies
0 Likes
Message 8 of 8

Anonymous
Not applicable
Phil,

I was just trying to figure out how DRAWORDER command functions internally.
It's possible to use SendCommand to perform the draworder and send the
(previously created) selection set "to back" or "to front", neverthless of
how selected objects' layers are initially ordered. Alas, there's no exposed
object functionality regarding draworder... nor any hint of how ACAD stores
implemented drawing order of objects within the drawing... I guess Mike's
answer (ADSKUnSupp library) will do the job right.

Thanks,
Maksim Sestic

"Phil Custer" wrote in message
news:D12D458F819E9733B8501EDAC8ABEBBF@in.WebX.maYIadrTaRb...
> I don't understand what you are trying to do.
>
> The SendCommand is used to send things to the AutoCAD command line, such
as
> a "hide" command.
>
> Since AutoCAD is a 3D program you can change the elevation of certian
> objects with
> the .Elevation property or just change the Z coordinates of the object to
> move it above
> or below another object.
>
> Phil Custer, P.E. Custer Services, Inc.
> custer@landfillgas.com
>
>
> "Mike Daugird" wrote in message
> news:1206476FFA9ADBED956B6F4307BEF37D@in.WebX.maYIadrTaRb...
> > how do you do it with send command? I thought there was no way to change
> the
> > display order from VBA at all.
> >
> >
> > "Maksim Sestic" wrote in message
> > news:710F1B79EC54304859352DB07F239B15@in.WebX.maYIadrTaRb...
> > > Dear all,
> > >
> > > Did anybody invent anything smarter for sending selected entity "to
> back"
> > > than using plain SendCommand? What mechanism does it use? What part of
> DWG
> > > keeps track of "what's above what" and what layer is the bottomost?
I'm
> > > writing a TLB using VB and any sort of SendCommand seems quite ugly
and
> > > quite out-of-process... you know what I mean...
> > >
> > > Thanks in advance for possible tips,
> > > Maksim Sestic
> > >
> > >
> >
> >
>
>
0 Likes