Community
AutoCAD MEP Forum
Welcome to Autodesk’s AutoCAD MEP Forums. Share your knowledge, ask questions, and explore popular AutoCAD MEP topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom commands/tools

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
214 Views, 2 Replies

custom commands/tools

OK...admittedly I am not a command line/lisp/programmer type, but do OK with
scripts on occasion.

in attempting to create a customized tool, I have copied the duct add tool -
2x to create a "SupplyDuctTool" and a "ReturnDuctTool"

I understand that these are all custom commands - in particular the duct
tool uses
^C^C_AecbDuctAdd

interstingly at the command prompt is
Command: _AecbDuctAdd Start point or
[SYstem/SHape/SIze/Elevation/Offset/Match]: DBOX
Start point or [SYstem/SHape/SIze/Elevation/Offset/Match]: DBOX
Start point or [SYstem/SHape/SIze/Elevation/Offset/Match]: Next point or

could someone explain in 50 words or less:
where the two DBOX entries are coming from?

If I wanted to script this I would type something like
^C^C_AecbDuctAdd SY Return
with a space at the end of return
which gives
Command: _AecbDuctAdd Start point or
[SYstem/SHape/SIze/Elevation/Offset/Match]: SY
System name or [?] : Return DBOX
System Return DBOX not found.Start point or
[SYstem/SHape/SIze/Elevation/Offset/Match]: DBOX


Why does the custom command portion not let me put a space where it should
be to return the command back to the command line or dialog box? - when I
type the space where it should be in the custom comand and OK back to the
palette, then go back and check the properties, the space has been truncated

is there a piece I am missing or can I just not do this with the custom
command?
thanks
David
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

DBox is an internal call to refresh the ductadd dialog. It has no affect on
anything that you need to "feed" the command.

Rather than scripting it the way you are trying it you may have better luck
entering it as a lisp routine. Try using

^C^C(command "_AecbDuctAdd" "sy" "Return") as the command.

It doesn't let you put in a space because the system name can be a string
with a space in it. It doesn't know when you are "finished" typing. Using
the lisp version it reads the close quote as "you're done" so isn't waiting
on additional input from you. This is to hand the case where you want to
name the system "3rd floor East Wing Return".

hth

jason

"DdDD" wrote in message
news:0B59BE84324FC264B8C310E005D1D7D7@in.WebX.maYIadrTaRb...
> OK...admittedly I am not a command line/lisp/programmer type, but do OK
with
> scripts on occasion.
>
> in attempting to create a customized tool, I have copied the duct add
tool -
> 2x to create a "SupplyDuctTool" and a "ReturnDuctTool"
>
> I understand that these are all custom commands - in particular the duct
> tool uses
> ^C^C_AecbDuctAdd
>
> interstingly at the command prompt is
> Command: _AecbDuctAdd Start point or
> [SYstem/SHape/SIze/Elevation/Offset/Match]: DBOX
> Start point or [SYstem/SHape/SIze/Elevation/Offset/Match]: DBOX
> Start point or [SYstem/SHape/SIze/Elevation/Offset/Match]: Next point or
>
> could someone explain in 50 words or less:
> where the two DBOX entries are coming from?
>
> If I wanted to script this I would type something like
> ^C^C_AecbDuctAdd SY Return
> with a space at the end of return
> which gives
> Command: _AecbDuctAdd Start point or
> [SYstem/SHape/SIze/Elevation/Offset/Match]: SY
> System name or [?] : Return DBOX
> System Return DBOX not found.Start point or
> [SYstem/SHape/SIze/Elevation/Offset/Match]: DBOX
>
>
> Why does the custom command portion not let me put a space where it should
> be to return the command back to the command line or dialog box? - when I
> type the space where it should be in the custom comand and OK back to the
> palette, then go back and check the properties, the space has been
truncated
>
> is there a piece I am missing or can I just not do this with the custom
> command?
> thanks
> David
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Thanks Jason
did the trick, I guess I will have to get more familiar with lisp
David

"jason martin [Autodesk]" wrote in message ...
snip...
> Rather than scripting it the way you are trying it you may have better
luck
> entering it as a lisp routine. Try using
>
> ^C^C(command "_AecbDuctAdd" "sy" "Return") as the command.
>snip...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost