Toolbar command for plines

Toolbar command for plines

Anonymous
Not applicable
982 Views
5 Replies
Message 1 of 6

Toolbar command for plines

Anonymous
Not applicable

 

I am trying to create a toolbar for different widths of plines. I have assigned two so far. they are on the same layer and color. When I create the second (using CUI) the first takes on those properties as well. I am calling them P1, P2, etc. Below is what I have. Can someone push me in a better direction?

^C^C(setq pwid (getvar "plinewid"));plinewid;.065;_pline;(while (> (getvar "cmdactive") 0) (command pause))(setvar "plinewid" pwid)

P2 has a width of .125, everything else is the same. Below is a screen shot of my CUI.CUI_Sample.PNG

 

 

0 Likes
983 Views
5 Replies
Replies (5)
Message 2 of 6

Moshe-A
Mentor
Mentor

@Anonymous hi,

 

it sounds like you are modifying P1 button with 0.125 width value. make sure you have 2 buttons.

 

moshe

 

0 Likes
Message 3 of 6

Anonymous
Not applicable

Thanks for the reply. The width is actually .0625 on P1. I took the screen shot after it changed. Everywhere there is "Polyline1" or "P1" on this screen is changed to "P2" on the other button. I have two buttons. I started each with the Pline command. I have different icons for each button. It changes to whichever one I hit "Apply" on.CUI_Sample2.PNG

 

0 Likes
Message 4 of 6

Anonymous
Not applicable

I just noticed that this changed my standard Draw, Polyline command in the CUI. I changed something that should be something that disassociates it from the standard pline command. I don't know what it is.

0 Likes
Message 5 of 6

Moshe-A
Mentor
Mentor

careful when modifying acad.cuix. each save autocad create a bak file so you can go one step back.

 

0 Likes
Message 6 of 6

scot-65
Advisor
Advisor
It looks like you are trying to change properties of the
defined toolbar button itself (top-left pane has the highlight).
[The hint here is that a toolbar is showing in the top-right pane
when it should be the icon table]

Switch the highlight to a line located in the command list
(lower-left pane).

If "Polyline2" command name is not in the lower-left pane,
create a new command.

[BTW: In the past, if a line in the top-left pane is highlighted
anything in and below the Command list was grayed out so
as not to confuse the user, but AutoDesk removed this feature]

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes