I am making a skill file to change line width.
But It needs to change according to current command, "Add Connect" or "Add Line".
So I want to know how to get a procedding command.
Please let me know.
Thanks in advance.
I am not sure if their is a way to get a preceeding command using skill because most of axl functions work during idle mode (or no command is active).
but regarding changing line width, you can use axlDBCreateLine.
axlSetFindFilter(?enabled `("ALL" "clines" "lines") ?onButtons `("noALL" "clines" "lines"))
point = axlLastPick(nil)
lineDbid = car(axlGetSelSet())
(foreach item lineDbid->segments axlDBCreateLine(item->startEnd, preferedWidth, item->layer) ) axlDeleteObject(lineDbid)
note: preferedWidth is variable for width you wan to change
Hope this helps
Thanks for your prompt response.