VPlayer question

VPlayer question

Anonymous
Not applicable
247 Views
5 Replies
Message 1 of 6

VPlayer question

Anonymous
Not applicable
Has anyone figured out a work around in VBA to freeze and thaw layers in
viewports (VPLayer)?
We freeze and thaw layers in viewports in paper space to set up layouts for
structural plans and have made icon menus for
groups of layers such as *-1, *-2 etc for floors and such. Anyway, I've
made a really usefull layer "group" manager to turn on and off these groups
while working on the model - i.e. switch easilly back and forth between
floors with several layers assigned to each floor. I need to have the
vplayer capability to set up the sheets. I don't want to mess with plot and
no plot because I don't want to see the layers. VPlayer makes it all a
little more error proof prior to plotting. Anyway thats the scenario...If I
can freeze and thaw in viewports then I can get rid of all kinds of icon
clutter and have a tight little program. P.S. My layer group manager is
modeless in 2000i untill I close it, so I had reall trouble with
sendcommand.
Any help would be appreciated.
Thanks,
Joe
0 Likes
248 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Have a look at vbXtender.arx. It's free and open source. The
ViewportEx class exposes tons of functionality for the paper space
viewport object, including the ability to control layer visibility.

--
http://www.acadx.com
Win an autographed copy of
"Mastering AutoCAD 2000 Objects"
by Dietmar Rudolph

"Joe Hoffmayer" wrote in message
news:C1F51E1DDB2A02BD2CCC57F5A9E15555@in.WebX.maYIadrTaRb...
> Has anyone figured out a work around in VBA
> to freeze and thaw layers in viewports (VPLayer)?
0 Likes
Message 3 of 6

Anonymous
Not applicable
Frank,
Thanks for the info...
I have not figured out how exactly to use it yet. I've know about this for
a while and never really wanted to
stray from what comes in the AutoCAD box. Now this begs the question,
should I bother to get into VB?
I do a lot of engineering calculations and drafting that rely heavilly on
A2Ki, Excel, Word and Access. Should I
stray from VBA and get into VB and C++?
Anyway, I will try to use vbXtender, then ask questions.
Thanks,
Joe

"Frank Oquendo" wrote in message
news:D609F09D288813D2DD91B291D3419E0B@in.WebX.maYIadrTaRb...
> Have a look at vbXtender.arx. It's free and open source. The
> ViewportEx class exposes tons of functionality for the paper space
> viewport object, including the ability to control layer visibility.
>
> --
> http://www.acadx.com
> Win an autographed copy of
> "Mastering AutoCAD 2000 Objects"
> by Dietmar Rudolph
>
> "Joe Hoffmayer" wrote in message
> news:C1F51E1DDB2A02BD2CCC57F5A9E15555@in.WebX.maYIadrTaRb...
> > Has anyone figured out a work around in VBA
> > to freeze and thaw layers in viewports (VPLayer)?
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
I wouldn't go anywhere near C++ without a real compelling reason.
However, VB makes good "middleware". You can use VB to roll all your
logic into an ActiveX DLL, eliminating the problems associated with
trying to maintain a library of routines that are used in different
environments.

However, when it comes to AutoCAD VB is not going to give you any
additional leverage over VBA. There's just too much missing from the
object model hence vbXtender and the like. If you do decide to try it
out, don't hesitate to drop me an email or post here.

--
http://www.acadx.com

"Joe Hoffmayer" wrote in message
news:1D2F713364CFCC27F16E3FC0156DC06D@in.WebX.maYIadrTaRb...
> Frank,
> Thanks for the info...
> I have not figured out how exactly to use it yet. I've know about
this for
> a while and never really wanted to
> stray from what comes in the AutoCAD box. Now this begs the
question,
> should I bother to get into VB?
> I do a lot of engineering calculations and drafting that rely
heavilly on
> A2Ki, Excel, Word and Access. Should I
> stray from VBA and get into VB and C++?
> Anyway, I will try to use vbXtender, then ask questions.
> Thanks,
> Joe
0 Likes
Message 5 of 6

Anonymous
Not applicable
Frank,

Can he also use the ActiveX in VisualLISP to access the functions in the
vbXtender?

--
Rodney McManamy
President
MACSolids
Maximizing AutoCAD Solids
rmcmanamy@macsolids.com
"Frank Oquendo" wrote in message
news:18FE19077ECDA9EC11C5FD53ADB7E266@in.WebX.maYIadrTaRb...
> I wouldn't go anywhere near C++ without a real compelling reason.
> However, VB makes good "middleware". You can use VB to roll all your
> logic into an ActiveX DLL, eliminating the problems associated with
> trying to maintain a library of routines that are used in different
> environments.
>
> However, when it comes to AutoCAD VB is not going to give you any
> additional leverage over VBA. There's just too much missing from the
> object model hence vbXtender and the like. If you do decide to try it
> out, don't hesitate to drop me an email or post here.
>
> --
> http://www.acadx.com
>
> "Joe Hoffmayer" wrote in message
> news:1D2F713364CFCC27F16E3FC0156DC06D@in.WebX.maYIadrTaRb...
> > Frank,
> > Thanks for the info...
> > I have not figured out how exactly to use it yet. I've know about
> this for
> > a while and never really wanted to
> > stray from what comes in the AutoCAD box. Now this begs the
> question,
> > should I bother to get into VB?
> > I do a lot of engineering calculations and drafting that rely
> heavilly on
> > A2Ki, Excel, Word and Access. Should I
> > stray from VBA and get into VB and C++?
> > Anyway, I will try to use vbXtender, then ask questions.
> > Thanks,
> > Joe
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
No. For some reason, the extender classes (everything ending
in "EX") do not operate properly under VisualLISP. The
problem lies in passing an object reference to the extender
class. Let's say we have a ViewportEx object named vx and an
AcadPViewport object named v.

In VB/VBA:

Set vx.Viewport = v

In VLISP:

(vlax-put-property vx 'Viewport v)

The VLISP example bombs with the error message "Library not
registered". I don't know where the problem is so I haven't
been able to fix it. However, I would like to point out that
vbXtender is largely redundant in the LISP environment since
LISP has access to just about everything exposed by
vbXtender.

--
http://www.acadx.com

"Rodney McManamy" wrote in
message
news:059147288D703D15B5C37C453F771744@in.WebX.maYIadrTaRb...
> Frank,
>
> Can he also use the ActiveX in VisualLISP to access the
functions in the
> vbXtender?
>
> --
> Rodney McManamy
> President
> MACSolids
> Maximizing AutoCAD Solids
0 Likes