Visual LISP, AutoLISP and General Customization

Reply
*Wawzonek, Mitchell
Message 1 of 6 (147 Views)

WBLOCK - Lisp problem

147 Views, 5 Replies
12-08-2000 04:56 AM
In AC2000, typing

WBLOCK will give a certain dialog box, the WRITE BLOCK dialog box

-WBLOCK will give another -- the CREATE DRAWING FILE dialog box

Calling it from Autolisp like this:

(command"wblock""~") will give type (2) above.

--------------------

Is there a way for force Autolisp to call the FIRST style (WRITE BLOCK)
style ???
*Craig, Wayne
Message 2 of 6 (147 Views)

Re: WBLOCK - Lisp problem

12-08-2000 05:41 AM in reply to: *Wawzonek, Mitchell
(initdia)
(command "_.WBLOCK")

"Mitchell Wawzonek" wrote in message
news:7EA420054E819021993B66A892270860@in.WebX.SaUCah8kaAW...
> In AC2000, typing
>
> WBLOCK will give a certain dialog box, the WRITE BLOCK dialog box
>
> -WBLOCK will give another -- the CREATE DRAWING FILE dialog box
>
> Calling it from Autolisp like this:
>
> (command"wblock""~") will give type (2) above.
>
> --------------------
>
> Is there a way for force Autolisp to call the FIRST style (WRITE BLOCK)
> style ???
>
*Furman, Paul
Message 3 of 6 (147 Views)

Re: WBLOCK - Lisp problem

12-08-2000 05:50 AM in reply to: *Wawzonek, Mitchell
You'll probably get better advice in the customization group but anyhow
here's an idea from a sort of similar routine I have where you use GETFILED
to browse files first & then perform the insert separately. There should be
a MAKEFILED dialogue too or something similar.

;IL Insert from Library
(defun c:IL()
(setq LFILE (getfiled "Select file to insert" "//PROJECTS/_Library/" "DWG"
8))
(Command "_.insert" LFILE )
(princ)
)
*Pi
Message 4 of 6 (147 Views)

Re: WBLOCK - Lisp problem

12-08-2000 03:31 PM in reply to: *Wawzonek, Mitchell
Hi Mitch....
Boy, would you be in trouble with my college tutor for calling "wblock" !!
It came up recently and he was very adamant that WBLOCK does Not equal "write-block," heh heh.
Just kidding around Mitch, but what I say above is true, I swear it.
Pete....

--

"Mitchell Wawzonek" wrote in message news:7EA420054E819021993B66A892270860@in.WebX.SaUCah8kaAW...
> In AC2000, typing
>
> WBLOCK will give a certain dialog box, the WRITE BLOCK dialog box
>
> -WBLOCK will give another -- the CREATE DRAWING FILE dialog box
>
> Calling it from Autolisp like this:
>
> (command"wblock""~") will give type (2) above.
>
> --------------------
>
> Is there a way for force Autolisp to call the FIRST style (WRITE BLOCK)
> style ???
>
*Wawzonek, Mitchell
Message 5 of 6 (147 Views)

Re:

12-11-2000 03:55 AM in reply to: *Wawzonek, Mitchell
Wayne

Many thanks for the tip !

By the way, I couldn't find (initdia) documented in the AC2K online
help......

"Wayne Craig" wrote in message
news:smileyvery-happy:826E474515CC8418D5711494E07D288@in.WebX.SaUCah8kaAW...
> (initdia)
> (command "_.WBLOCK")
>
> "Mitchell Wawzonek" wrote in message
> news:7EA420054E819021993B66A892270860@in.WebX.SaUCah8kaAW...
> > In AC2000, typing
> >
> > WBLOCK will give a certain dialog box, the WRITE BLOCK dialog box
> >
> > -WBLOCK will give another -- the CREATE DRAWING FILE dialog box
> >
> > Calling it from Autolisp like this:
> >
> > (command"wblock""~") will give type (2) above.
> >
> > --------------------
> >
> > Is there a way for force Autolisp to call the FIRST style (WRITE BLOCK)
> > style ???
> >
>
*Bell, R. Robert
Message 6 of 6 (147 Views)

Re:

12-12-2000 01:09 AM in reply to: *Wawzonek, Mitchell
Seems like your college tutor needs to go back to school!

From AutoCAD's Command Reference:

Writes objects or a block to a new drawing file

Command line: wblock

AutoCAD® displays the Write Block dialog box.
Entering -wblock at the Command prompt displays prompts on the command line.

--
R. Robert Bell, MCSE
Xtending the Power
www.acadx.com

"Pi" wrote in message
news:17A39CFD9EFAA5539C2090DFA29C03B3@in.WebX.SaUCah8kaAW...
| Hi Mitch....
| Boy, would you be in trouble with my college tutor for calling "wblock"
!!
| It came up recently and he was very adamant that WBLOCK does Not equal
"write-block," heh heh.
| Just kidding around Mitch, but what I say above is true, I swear it.
| Pete...

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community