How to text for VLX loaded?

How to text for VLX loaded?

Anonymous
Not applicable
361 Views
7 Replies
Message 1 of 8

How to text for VLX loaded?

Anonymous
Not applicable
This maybe simple but for some reason it is eluding me.
I am trying to test to see if a vlx file is loaded with this.

(IF (NOT (MEMBER "test.vlx" (vlx))) (load "text.vlx"))

This is a modified version of what I use for a couple arx files I have but
the VLX returns an error. I probable could just test for a function but I
wanted to see how to text a vlx.

Thanks.

--
Rob Starz
[email protected]
Plogv 3.0 (plot logging) for r14 Updated release!!!
Plogv2000 (plot logging) for 2000 New release!!!
ADT Curtainwall Suite NOW AVAILABLE!!!
ADT Restroom Suite!!! NOW AVAILABLE!!!
***Tools for Architectural Desktop coming soon**
http://members.aol.com/stardsign/main.htm
StarDsign cad solution
0 Likes
362 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
That's because there is no VLX function. VLISP does have a function that can
detect loaded seperate name-space VLX files (VL-VLX-LOADED-P) but that's
about it. Perhaps you can do something with the ATOMS-FAMILY function.

Rob Starz wrote in message
news:[email protected]...
> This maybe simple but for some reason it is eluding me.
> I am trying to test to see if a vlx file is loaded with this.
>
> (IF (NOT (MEMBER "test.vlx" (vlx))) (load "text.vlx"))
>
> This is a modified version of what I use for a couple arx files I have but
> the VLX returns an error. I probable could just test for a function but I
> wanted to see how to text a vlx.
>
> Thanks.
>
> --
> Rob Starz
> [email protected]
> Plogv 3.0 (plot logging) for r14 Updated release!!!
> Plogv2000 (plot logging) for 2000 New release!!!
> ADT Curtainwall Suite NOW AVAILABLE!!!
> ADT Restroom Suite!!! NOW AVAILABLE!!!
> ***Tools for Architectural Desktop coming soon**
> http://members.aol.com/stardsign/main.htm
> StarDsign cad solution
>
>
0 Likes
Message 3 of 8

Anonymous
Not applicable
Download a copy of the latest AcadX from my web site.

It has a method called GetLoadedLispApps, which returns
a list of loaded .lsp/.fas/.vlx/.mnl files for each document.

Rob Starz wrote:
>
> This maybe simple but for some reason it is eluding me.
> I am trying to test to see if a vlx file is loaded with this.
>
> (IF (NOT (MEMBER "test.vlx" (vlx))) (load "text.vlx"))
>
> This is a modified version of what I use for a couple arx files I have but
> the VLX returns an error. I probable could just test for a function but I
> wanted to see how to text a vlx.
>
> Thanks.
>
> --
> Rob Starz
> [email protected]
> Plogv 3.0 (plot logging) for r14 Updated release!!!
> Plogv2000 (plot logging) for 2000 New release!!!
> ADT Curtainwall Suite NOW AVAILABLE!!!
> ADT Restroom Suite!!! NOW AVAILABLE!!!
> ***Tools for Architectural Desktop coming soon**
> http://members.aol.com/stardsign/main.htm
> StarDsign cad solution

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* [email protected] */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 4 of 8

Anonymous
Not applicable
Use (vl-list-loaded-vlx) instead of (vlx)

--
Achim Dabrunz

Rob Starz schrieb:
>
> This maybe simple but for some reason it is eluding me.
> I am trying to test to see if a vlx file is loaded with this.
>
> (IF (NOT (MEMBER "test.vlx" (vlx))) (load "text.vlx"))
>
> This is a modified version of what I use for a couple arx files I have but
> the VLX returns an error. I probable could just test for a function but I
> wanted to see how to text a vlx.
>
> Thanks.

0 Likes
Message 5 of 8

Anonymous
Not applicable
I'm afraid this only works for separate-namespace VLX files.

Achim Dabrunz wrote:
>
> Use (vl-list-loaded-vlx) instead of (vlx)
>
> --
> Achim Dabrunz
>
> Rob Starz schrieb:
> >
> > This maybe simple but for some reason it is eluding me.
> > I am trying to test to see if a vlx file is loaded with this.
> >
> > (IF (NOT (MEMBER "test.vlx" (vlx))) (load "text.vlx"))
> >
> > This is a modified version of what I use for a couple arx files I have but
> > the VLX returns an error. I probable could just test for a function but I
> > wanted to see how to text a vlx.
> >
> > Thanks.
>
>

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* [email protected] */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 6 of 8

Anonymous
Not applicable
Tony Tanzillo schrieb:
>
> I'm afraid this only works for separate-namespace VLX files.



Oops - I belive that I've never build other ones ... The question is : Why it dosen't work for the other ones ??

--
Achim Dabrunz
0 Likes
Message 7 of 8

Anonymous
Not applicable
Not sure, other than perhaps because they're the only
kind that are 'unloadable'.

Achim Dabrunz wrote:
>
> Tony Tanzillo schrieb:
> >
> > I'm afraid this only works for separate-namespace VLX files.
>
>
>
> Oops - I belive that I've never build other ones ... The question is : Why it dosen't work for the other ones ??
>
> --
> Achim Dabrunz

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* [email protected] */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 8 of 8

Anonymous
Not applicable
That worked. Thanks Tony.

--
Rob Starz
[email protected]
Plogv 3.0 (plot logging) for r14 Updated release!!!
Plogv2000 (plot logging) for 2000 New release!!!
ADT Curtainwall Suite NOW AVAILABLE!!!
ADT Restroom Suite!!! NOW AVAILABLE!!!
***Tools for Architectural Desktop coming soon**
http://members.aol.com/stardsign/index.htm <
StarDsign cad solution
0 Likes